
.logo {
  display: flex;
  align-items: center;            /* ស្មើគ្នាតាមដេក */
  gap: 10px;                      /* ចន្លោះរវាង logo និង h1 */
}

.logo img {
  height: 50px;                   /* កំណត់ទំហំ logo */
  width: auto;
}

.logo h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

    h2{
        font-family: "Odor Mean Chey", serif;
        font-weight: 400;
        font-style: normal;
        text-align: center;
        font-size: 2.8rem;
        margin: 20px 0 40px;
        color: #e9c46a;
        text-shadow: 0 0 10px rgba(233, 196, 106, 0.5);
        letter-spacing: 2px;
      }
    
    .line{
      width: 90%;
      border-bottom: 3px solid white;
      margin-left: 5%;
    }
    .containerc {
      max-width: 90%;
      margin: 20px auto;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(650px, 1fr));
      gap: 20px;
    }

    .cardc {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      background: #111;
      box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    }
    .cardc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.8), transparent, rgba(0,0,0,0));
}

    .cardc img.bg {
      width: 100%;
      height: 270px;
      display: block;
      border-radius: 10px;
    }

    .overlay {
      position: absolute;
      bottom: 20px;
      left: 20px;
      display: flex;
      flex-direction: column;
      align-items: flex-start; /* logo + button aligned left */
      gap: 6px;
    }

    .logo1 {
      width: 150px;   /* adjust size as needed */
      height: auto;
      display: block;
    }

    .btn {
      background: #fbc02d;
      color: #000;
      font-weight: bold;
      padding: 10px 20px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      margin-left: 20px;
    }

    .btn:hover {
      background: #ffeb3b;
      transform: scale(105%);
      transition: background 1s ease;
    }
    .sec1 button{
      font-family: "Odor Mean Chey", serif;
      font-weight: 400;
      font-style: normal;
    }
/* Mobile Responsive Header */
/* Responsive adjustments for cockfight cards, grid, images, and text */
@media (max-width: 1024px) {
  .containerc {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
  }
  .cardc img.bg {
    height: 200px;
  }
  .logo1 {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .containerc {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 98%;
  }
  .cardc img.bg {
    height: 270px;
    width: 100%;
    display: flex;
  }
  
  .logo1 {
    width: 100px;
  }
  h2 {
    font-size: 2rem;
  }
  .btn {
    font-size: 15px;
    padding: 8px 16px;
    margin-left: 10px;
  }
  .overlay {
    left: 10px;
    bottom: 10px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .containerc {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 100%;
    margin: 10px auto;
  }
  .cardc {
    border-radius: 6px;
  }
  .cardc img.bg {
    width: 100%;
    height: 270px;
    border-radius: 6px;
    display: flex;
  }
  .logo1 {
    width: 70px;
  }
  h2 {
    font-size: 1.2rem;
    margin: 10px 0 20px;
  }
  .btn {
    font-size: 13px;
    padding: 6px 10px;
    margin-left: 4px;
  }
  .overlay {
    left: 4px;
    bottom: 4px;
    gap: 2px;
  }
  .line {
    width: 98%;
    margin-left: 1%;
  }
}

/* Ensure images and containers never overflow */
.cardc img.bg, .logo1 {
  max-width: 100%;
  height: auto;
  display: block;
}
