/* ==========================================================================
   Cooperation Brands Page Styling - cooperation.css
   1:1 High Fidelity Design with Responsive Layout & Smooth Interactions
   ========================================================================== */

/* --- Reset & Global Variables --- */
:root {
  --bg-color: #FFFFFF;
  --text-main: #333333;
  --text-sub: #8C8C8C;
  --card-bg: #FFFFFF;
  --card-border: #F0F0F0;
  --card-border-hover: #E0E0E0;
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* --- Container --- */
.cooperation-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 80px 10px;
}

/* --- Header Section --- */
.cooperation-header {
  text-align: center;
  margin-bottom: 50px;
}

.cooperation-title {
  font-size: 26px;
  font-weight: 700;
  color: #262626;
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cooperation-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 1.5px;
  word-spacing: 4px;
}

/* --- Brand Grid Layout --- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* --- Brand Card --- */
.brand-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.brand-card:active {
  transform: translateY(-1px);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg,
.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Responsive Breakpoints --- */

/* Laptop / Small Desktop (1024px) */
@media screen and (max-width: 1024px) {
  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .brand-card {
    height: 110px;
    padding: 14px 20px;
  }

  .cooperation-header {
    margin-bottom: 40px;
  }

  .cooperation-title {
    font-size: 24px;
  }
}

/* Tablet (768px) */
@media screen and (max-width: 768px) {

  .cooperation-container {
    padding: 40px 10px;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .brand-card {
    height: 100px;
    padding: 12px 16px;
  }

  .cooperation-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .cooperation-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
  }
}

/* Mobile (480px) */
@media screen and (max-width: 480px) {

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .brand-card {
    height: 90px;
    padding: 10px 12px;
  }

  .cooperation-header {
    margin-bottom: 30px;
  }

  .cooperation-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .cooperation-subtitle {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
}

/* Extra Small Mobile (340px) */
@media screen and (max-width: 340px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}