
    .ou-form legend {
      max-width: 100%;
      font-weight: 700;
      color: #333;
      font-size: 14px !important;
      font-size: 1.4rem !important;
      line-height: 1.428 !important;
      font-family: 'Open Sans', sans-serif;
      width: 100%;
    }

    /* Masonry layout using CSS columns */
    .student-grid {
      column-count: 3;
      column-gap: 20px;
      margin: 30px 0;
    }

    .card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center !important;
      transition: transform 0.7s ease;
    }

    /* Card styles with reduced size */
    .student-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 20px rgba(139, 3, 44, 0.1);
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease;
      display: inline-block;
      width: 100%;
      margin-bottom: 20px;
      break-inside: avoid;
      border: 1px solid rgba(240, 194, 48, 0.2);
    }

    .student-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(139, 3, 44, 0.2);
    }

    /* Image carousel - reduced height */
    .card-image {
      position: relative;
      height: 350px;
      overflow: hidden;
      background-color: #f8f8f8;
    }

    /* Modern accessible festive placeholder design */
    .image-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(139, 3, 44, 0.08), rgba(240, 194, 48, 0.18));
      color: #8b032c;
      transition: background 0.4s ease;
      position: relative;
      overflow: hidden;
    }

    /* Static decorative background */
    .image-placeholder::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image:
        radial-gradient(circle, rgba(240, 194, 48, 0.4) 3px, transparent 3px),
        radial-gradient(circle, rgba(139, 3, 44, 0.3) 2px, transparent 2px);
      background-size: 40px 40px, 30px 30px;
      background-position: 0 0, 15px 15px;
      opacity: 0.15;
    }

    /* Enhanced placeholder elements */
    .placeholder-icon {
      font-size: 12rem;
      margin-bottom: 5px;
      position: relative;
      z-index: 2;
      color: #8b032c;
    }

    .placeholder-text {
      font-size: 2.4rem;
      font-weight: 800;
      color: #8b032c;
      margin-bottom: 15px;
      position: relative;
      z-index: 2;
      letter-spacing: 1px;
      text-align: center;
      padding: 0 15px;
      line-height: 1.2;
    }

    .placeholder-decoration {
      font-size: 1.6rem;
      font-weight: 600;
      color: #f0c230;
      position: relative;
      z-index: 2;
      letter-spacing: 1px;
    }

    /* Specific reduced height for cards with placeholders */
    .card-image:has(.image-placeholder) {
      height: 280px;
    }

    /* Fallback for browsers that don't support :has() */
    .placeholder-card .card-image {
      height: 280px;
    }

    /* Ensure images are always centered at all screen sizes */
    .card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center !important;
      transition: transform 0.7s ease;
    }

    .student-card:hover .card-image img {
      transform: scale(1.08);
    }

    /* Enhanced image overlay and controls */
    .image-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
      z-index: 1;
      transition: opacity 0.4s ease;
    }

    /* Loading animation */
    .loading-animation {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 0;
      display: none;
    }

    .loader {
      width: 60px;
      height: 60px;
      border: 5px solid #f3f3f3;
      border-top: 5px solid #8b032c;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 20px;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .loading-animation p {
      color: #666;
      font-weight: 500;
    }

    /* Card content - reduced padding */
    .card-content {
      padding: 15px;
      display: flex;
      flex-direction: column;
      background: linear-gradient(to bottom, #fff, #fcfcfc);
    }

    .student-header {
      margin-bottom: 8px;
      border-bottom: 1px dashed rgba(139, 3, 44, 0.1);
      padding-bottom: 8px;
    }

    .student-name {
      color: #8b032c;
      font-weight: 700;
      margin-bottom: 3px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow:hidden;
      padding-bottom: 3px;
    }

    .student-pronouns {
      color: #666;
      margin-bottom: 4px;
    }

    .student-details {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }

    /* Modern simplified badge styling with emojis */
    .detail-badge {
      padding: 5px 12px;
      border-radius: 20px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      transition: all 0.25s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
      display: inline-flex;
      align-items: center;
      margin-right: 6px;
      margin-bottom: 6px;
      position: relative;
    }

    .detail-badge:hover {
      transform: translateY(-2px);
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    }

    /* School badge styling with emoji */
    .school-badge {
      background: linear-gradient(135deg, #8b032c, #a3032c);
      color: white;
    }

    .school-badge::before {
      content: "🎓 ";
      margin-right: 4px;
    }

    /* Major badge styling with emoji */
    .major-badge {
      background: linear-gradient(145deg, #f0c230, #e0a800);
      color: #333;
      font-weight: 700;
    }

    .major-badge::before {
      content: "📚 ";
      margin-right: 4px;
    }

    /* Enhanced Shout-out label styling */
    .shoutout-label {
      font-size: 14px;
      font-weight: 700;
      color: #8b032c;

      letter-spacing: 0.8px;
      margin-bottom: 12px;
      padding: 8px 15px;
      text-align: center;
      background: linear-gradient(135deg, rgba(139, 3, 44, 0.05), rgba(240, 194, 48, 0.08));
      border-radius: 15px;
      border: 1px solid rgba(139, 3, 44, 0.15);
      position: relative;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(139, 3, 44, 0.08);
      transition: all 0.3s ease;
    }

    /* Add a subtle shine effect */
    .shoutout-label::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.5s ease;
    }

    .shoutout-label:hover::before {
      left: 100%;
    }

    /* Add decorative elements */
    .shoutout-label::after {
      /* content: "💝";*/
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      opacity: 0.7;
    }

    /* Message section - reduced padding */
    .message-section {
      position: relative;
      padding: 10px;
      background-color: #f9f9f9;
      border-radius: 8px;
      box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
      height: auto;
      margin-top: 8px;
    }

    .message-text {
      color: #444;
      position: relative;
      padding: 0 15px;
      line-height: 1.5;
      height: auto;
      overflow: visible;
    }

    /* Adjust quote marks */
    .message-text:before,
    .message-text:after {
      position: absolute;
      color: #f0c230;
      opacity: 0.6;
    }

    .message-text:before {
      content: '"';
      top: -8px;
      left: -3px;
    }

    .message-text:after {
      content: '"';
      bottom: -12px;
      right: -3px;
    }

    /* No message styling with two-line signature */
    .no-message {
      text-align: center;
      padding: 15px 0;
    }

    .no-message-text {
      color: #666;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .graduation-icon {
      font-size: 1.8rem;
      color: #f0c230;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Two-line handwritten-style signature */
    .signature-container {
      margin-top: 15px;
      text-align: center;
      position: relative;
    }

    .signature-line1 {
      font-style: italic;
      color: #8b032c;
      display: block;
      line-height: 1.2;
    }

    .signature-line2 {
      font-style: italic;
      color: #8b032c;
      display: block;
      line-height: 1.1;
    }

    /* For browsers that don't support script fonts */
    @supports not (font-family: 'Brush Script MT') {

      .signature-line1,
      .signature-line2 {
        font-style: italic;
        font-weight: 500;
      }
    }

    /* Carousel functionality */
    .carousel-item {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.7s ease;
    }

    .carousel-item.active {
      opacity: 1;
    }

    /* Carousel controls */
    .carousel-controls {
      position: absolute;
      bottom: 15px;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      z-index: 2;
    }

    .carousel-indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .carousel-indicator.active {
      background-color: white;
      transform: scale(1.3);
      box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }

    /* Improved carousel navigation buttons */
    .carousel-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.85);
      color: #8b032c;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 0;
      font-weight: bold;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    /* Always display carousel buttons on hover */
    .student-card:hover .carousel-nav {
      opacity: 1;
    }

    .carousel-nav:hover {
      background-color: white;
      transform: translateY(-50%) scale(1.15);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .carousel-prev {
      left: 15px;
    }

    .carousel-next {
      right: 15px;
    }

    /* Error message */
    .error-message {
      text-align: center;
      padding: 40px;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
      color: #8b032c;
      grid-column: 1 / -1;
      border: 1px dashed rgba(139, 3, 44, 0.2);
    }

    /* Force center positioning at all breakpoints */
    @media (max-width: 1200px) {
      .student-grid {
        column-count: 3;
      }

      .card-image {
        height: 350px;
      }

      .card-image:has(.image-placeholder) {
        height: 280px;
      }

      .card-image img {
        object-position: center center !important;
      }

      .placeholder-text {
        font-size: 2.2rem;
      }
    }

    @media (max-width: 768px) {
      .student-grid {
        column-count: 2;
      }

      .card-image {
        height: 350px;
      }

      .card-image:has(.image-placeholder) {
        height: 250px;
      }

      /* Show carousel navigation on mobile */
      .carousel-nav {
        opacity: 0.8;
        width: 32px;
        height: 32px;
      }

      .card-image img {
        object-position: center center !important;
      }

      .placeholder-text {
        font-size: 2rem;
      }

      .shoutout-label {
        font-size: 12px;
        padding: 6px 12px;
        letter-spacing: 0.6px;
      }

      .shoutout-label::after {
        font-size: 12px;
        right: 8px;
      }
    }

    @media (max-width: 576px) {
      .student-grid {
        column-count: 1;
      }

      .card-image {
        height: 320px;
      }

      .card-image:has(.image-placeholder) {
        height: 250px;
      }

      .card-image img {
        object-position: center center !important;
      }

      .shoutout-label {
        font-size: 11px;
        padding: 5px 10px;
        letter-spacing: 0.5px;
      }

      .shoutout-label::after {
        font-size: 11px;
        right: 6px;
      }
    }

    /* Accessibility enhancements */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* High contrast focus styles for better accessibility */
    button:focus,
    a:focus,
    .carousel-nav:focus,
    .carousel-indicator:focus {
      outline: 3px solid #f0c230;
      outline-offset: 2px;
    }

    /* Search box styling */
    .search-container {
      max-width: 600px;
      margin: 20px auto;
      padding: 0 15px;
    }

    .search-box {
      position: relative;
      margin-bottom: 10px;
    }

    #search-input {
      width: 100%;
      padding: 12px 40px;
      border-radius: 30px;
      border: 1px solid rgba(139, 3, 44, 0.2);
      background-color: white;
      font-size: 16px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    #search-input:focus {
      outline: none;
      border-color: #8b032c;
      box-shadow: 0 4px 15px rgba(139, 3, 44, 0.15);
    }

    .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #8b032c;
      font-size: 18px;
    }

    .clear-search-btn {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #666;
      cursor: pointer;
      font-size: 16px;
      padding: 0;
      display: none;
      width: 20px;
      height: 20px;
      line-height: 20px;
      text-align: center;
    }

    .clear-search-btn:hover {
      color: #8b032c;
    }

    .search-stats {
      font-size: 14px;
      color: #666;
      margin-bottom: 20px;
      text-align: center;
    }

    .no-results {
      grid-column: 1 / -1;
      text-align: center;
      padding: 40px;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
      color: #8b032c;
      margin: 20px 0;
      border: 1px dashed rgba(139, 3, 44, 0.2);
    }
