.container.template-pages h2 {
  font-size: 1.3em !important;
}
/* Grid Container - Updated for 3 columns */
.schools-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 24px 0;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

div#school-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 24px 0;
  animation: fadeIn 0.5s ease-in;
}

/* School Card */
.school-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.school-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* School Image Header */
.school-card-header {
  position: relative;
  z-index: 0;
}

.school-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.school-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.school-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.1) 0%,
    rgba(0, 82, 163, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.school-card:hover .school-image-overlay {
  opacity: 1;
}

/* Level Badge */
.school-level-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #0066cc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* School Name Container */
.school-name-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 3;
}

.school-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.school-name a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
  display: inline-block;
}

.school-name a:hover {
  color: #e0f2ff;
}

.school-name a::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: #ffffff;
  transition: width 0.3s ease;
  margin-top: 4px;
}

.school-name a:hover::after {
  width: 100%;
}

/* Card Body */
.school-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Info Grid */
.school-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-item-full {
  grid-column: 1 / -1;
}

.info-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  color: #0066cc;
  border-radius: 8px;
  font-size: 15px;
  display: none;
}

.info-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 11px;
  font-weight: 700 !important;
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
  word-wrap: break-word;
}

.address-link,
.contact-link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.address-link:hover,
.contact-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Action Buttons */
.school-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e9ecef;
}
.school-actions i {
  display: none;
}
.btn-action {
  width: auto;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #13304d;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.btn-secondary:hover {
  background: #0066cc;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-tertiary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.btn-tertiary:hover {
  background: #e9ecef;
  color: #212529;
  transform: translateY(-2px);
}

.btn-action i {
  font-size: 15px;
}

/* Toggle Details */
.school-details-toggle {
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
}

.btn-toggle-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.btn-toggle-details:hover {
  background: #e9ecef;
  color: #212529;
}

.btn-toggle-details[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.btn-toggle-details i {
  transition: transform 0.3s ease;
  font-size: 13px;
}

/* Expanded Details */
.school-details-expanded {
  padding: 14px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 10px;
}

.school-details-expanded[hidden] {
  display: none;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.detail-item i {
  color: #6c757d;
  width: 18px;
  text-align: center;
}

.detail-label {
  font-weight: 600;
  color: #495057;
}

.detail-value {
  color: #212529;
}

.detail-link {
  color: #0066cc;
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 80px 24px;
  color: #6c757d;
  grid-column: 1 / -1;
}

.no-results-message i {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.3;
}

.no-results-message h3 {
  font-size: 24px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 8px;
}

.no-results-message p {
  font-size: 16px;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .schools-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1200px) {
  .schools-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .school-image {
    height: 220px;
  }

  .school-name {
    font-size: 21px;
  }

  .info-value {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .schools-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .school-image {
    height: 200px;
  }

  .school-name {
    font-size: 22px;
  }

  .school-card-body {
    padding: 22px;
  }

  .info-value {
    font-size: 14px;
  }

  .btn-action {
    font-size: 14px;
    padding: 12px 16px;
  }

  .school-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .school-card-body {
    padding: 20px;
  }

  .school-name-container {
    padding: 20px;
  }

  .school-image {
    height: 180px;
  }
}

/* Loading State */
.school-card.loading {
  animation: cardPulse 1.5s ease-in-out infinite;
}

@keyframes cardPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Print Styles */
@media print {
  .schools-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .school-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  .btn-action,
  .btn-toggle-details {
    display: none;
  }
}
