@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap");

body,
.animschool-font {
  font-family: "Open Sans", Arial, sans-serif;
  background: #f6f8fa;
}

.animschool-header {
  font-family: "Montserrat", Arial, sans-serif;
  color: #1a3a5b;
  font-weight: 700;
  letter-spacing: 1px;
}

.animschool-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  border: none;
  box-shadow:
    0 4px 24px 0 rgba(26, 58, 91, 0.08),
    0 1.5px 4px 0 rgba(26, 58, 91, 0.04);
  overflow: hidden;
  min-height: 340px;
}

.animschool-card .left {
  background: linear-gradient(135deg, #e3f0ff 0%, #f6f8fa 100%);
  border-right: 2px solid #e3f0ff;
  min-height: 100%;
}

.animschool-card .right {
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

.animschool-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1rem;
  height: 100%;
}

.animschool-img-grid .img-wrap {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.animschool-img-grid img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  border: 2px solid #e3f0ff;
  background: #e3f0ff;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(26, 58, 91, 0.08);
}

.animschool-img-grid img:hover {
  box-shadow: 0 4px 16px 0 #1a3a5b33;
  border-color: #1a3a5b;
}

.animschool-btn {
  border-radius: 2rem;
  font-weight: 600;
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0.5px;
  padding-left: 1.25em;
  padding-right: 1.25em;
}

.animschool-btn-info {
  background: #1a3a5b;
  color: #fff;
  border: none;
}

.animschool-btn-info:hover {
  background: #2e5c8a;
  color: #fff;
}

.animschool-btn-contact {
  background: #f9b233;
  color: #1a3a5b;
  border: none;
}

.animschool-btn-contact:hover {
  background: #f7a600;
  color: #fff;
}

.animschool-title {
  color: #f9b233;
  font-size: 1.1em;
  font-weight: 600;
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 0.25em;
}

.animschool-bio {
  color: #1a3a5b;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.animschool-card .left .rounded-circle {
  border: 3px solid #f9b233;
  box-shadow: 0 2px 8px 0 #1a3a5b22;
}

/* Media type overlay indicators */
.media-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(26, 58, 91, 0.85);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
  z-index: 10;
}

.media-overlay.video::before {
  content: "▶";
  font-size: 0.85em;
}

.media-overlay.image::before {
  content: "🖼";
  font-size: 0.85em;
}

.img-wrap {
  position: relative;
}
.top-tags {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(26, 58, 91, 0.12);
  padding: 1rem 0;
  margin-bottom: 2rem;
  font-family: "Montserrat", Arial, sans-serif;
}

.top-tags .tags-header {
  margin-bottom: 0.5rem;
}

.top-tags .filter-label {
  font-weight: 700;
  color: #1a3a5b;
  margin-right: 1rem;
}

.top-tags .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.tag-checkbox-wrapper {
  display: inline-block;
}

.tag-filter-btn {
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  transition: all 0.2s;
}

.tag-filter-btn .badge {
  font-size: 0.7rem;
}

.tag-filter-checkbox:checked + .tag-filter-btn {
  background-color: #1a3a5b;
  color: #fff;
  border-color: #1a3a5b;
}

.tag-filter-checkbox:checked + .tag-filter-btn .badge {
  background-color: #f9b233 !important;
  color: #1a3a5b !important;
}

#selectedTagsDisplay {
  background: #e3f0ff;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border-left: 3px solid #1a3a5b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-tags .tags-header .row > div {
    margin-bottom: 0.5rem;
  }

  .top-tags .tags-header .col-md-4:last-child {
    text-align: left !important;
  }
}

/* Open for Work Ribbon — Top-left corner banner */
.open-for-work-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.open-for-work-ribbon span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: absolute;
  top: 32px;
  left: -50px;
  width: 220px;
  padding: 0.4rem 0;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: center center;
  box-shadow: 0 3px 10px 0 rgba(40, 167, 69, 0.4);
  line-height: 1.2;
}

/* Open for Work Badge — Modal inline */
.open-for-work-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 2px 8px 0 rgba(40, 167, 69, 0.3);
}

/* Open for Work filter button active state */
#filterOpenForWork.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-color: #28a745;
  box-shadow: 0 2px 8px 0 rgba(40, 167, 69, 0.3);
}
