 body {
      background-image: url('resimler/background.jpeg');
      background-position: center;
      background-attachment: fixed;
      background-size: cover;
      background-repeat: no-repeat;
      min-height: 100vh;
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    p {
      font-size: 0.9em;
      line-height: 1.4;
    }

    body::-webkit-scrollbar {
      display: none;
    }

    .card-container {
      margin-top: 20px;
      margin-bottom: 20px;
    }

    .card {
      position: relative;
      margin: 10px auto;
      width: 100%;
      /* max-width: 18rem; Removed max-width to let grid control it, or keep it but ensure density */
      height: 20rem;
      /* Reduced height */
      background-color: transparent;
      border: none;
      perspective: 1000px;
    }

    .card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.8s;
      transform-style: preserve-3d;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
      border-radius: 15px;
    }

    .card:hover .card-inner {
      transform: rotateY(-180deg);
    }

    .card-front,
    .card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-radius: 15px;
      padding: 1rem;
      /* Reduced padding slightly */
    }

    .card-front {
      background: rgba(248, 249, 250, 0.95);
      color: #333;
    }

    .card-back {
      background: linear-gradient(135deg, #374259 0%, #2a3245 100%);
      color: white;
      transform: rotateY(180deg);
      text-align: center;
      /* Ensure centering */
    }

    .card-back h4 {
      margin-bottom: 0.5rem;
      font-weight: 700;
      font-size: 1.1rem;
      color: #fca311;
      /* Modern Amber/Orange */
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .card-back p {
      font-size: 0.8rem;
      margin-bottom: 1rem;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 6;
      /* Reduced line clamp for shorter card */
      line-clamp: 6;
      -webkit-box-orient: vertical;
      width: 100%;
      /* Ensure full width for centering to work if needed */
    }

    /* Animation for the button */
    .card-back a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-decoration: none;
      background-color: #BB2D3B;
      padding: 8px 16px;
      border-radius: 25px;
      margin-top: auto;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.2s;
    }

    .card:hover .card-back a {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.3s;
    }

    .card-back a i {
      max-width: 0;
      opacity: 0;
      margin-left: 0;
      transition: all 0.3s ease;
      overflow: hidden;
      white-space: nowrap;
    }

    .card-back a:hover i {
      max-width: 20px;
      /* Adjust based on icon size */
      opacity: 1;
      margin-left: 8px;
    }

    .card-back a:hover {
      background-color: #a02632;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .navbar-custom {
      background-color: rgba(248, 249, 250, 0.95);
      backdrop-filter: blur(5px);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .box-image-container {
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      border: 3px solid #c8d1e6;
      width: 8rem;
      /* Smaller image container */
      height: 8rem;
      margin-bottom: 1rem;
      background: white;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .box-image {
      width: 70%;
      height: 70%;
      object-fit: contain;
    }

    .card-front h4 {
      font-weight: 700;
      font-size: 1.1rem;
      text-transform: uppercase;
      color: #374259;
    }