/* CSAM Page Styles */

/* Main Container */
.csam-main-container {
  background: white;
  width: 100%;
  min-width: 480px;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* CSAM Section */
.csam-section {
  width: 100%;
  position: relative;
  min-height: 65vh;
  padding-bottom: 10vh;
}

.csam-content {
  max-width: 60%;
  padding-left: 4.75vw;
  padding-top: 4.75vw;
}

.csam-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #0F1B4B;
  margin: 0;
  text-align: left;
  position: relative;
}

.csam-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  margin: 20px 0 0 0;
  text-align: left;
}

/* Decorative Rectangles */
.rect-25 {
  position: absolute;
  display: block;
  width: 115px;
  height: 276px;
  left: calc(-115.2px / 3); /* -1/3 of its width */
  top: calc(-276px / 6);
  background: rgba(101, 29, 148, 0.1);
  border-radius: 20px;
  z-index: -1;
}

.rect-26 {
  position: absolute;
  display: block;
  width: 28vw;
  height: 125px;
  left: 60%;
  top: calc(-125px / 6);
  background: rgba(15, 27, 75, 0.1);
  border-radius: 20px;
  z-index: -1;
}

/* Decorative Lines - CSAM Section */
.line-1 {
  position: absolute;
  width: 6px;
  height: 50vh;
  left: 76.04vw;
  top: 30vh;
  background: rgba(101, 29, 148, 0.6);
  border-radius: 3px;
  z-index: 10;
}

.line-2 {
  position: absolute;
  width: 6px;
  height: 48vh;
  left: 80.52vw;
  top: 20vh;
  background: rgba(15, 27, 75, 0.6);
  border-radius: 3px;
  z-index: 10;
}

.line-3 {
  position: absolute;
  width: 12.03vw;
  height: 6px;
  right: 0px;
  top: 55vh;
  background: rgba(15, 27, 75, 0.6);
  border-radius: 3px;
  z-index: 10;
}

.line-4 {
  position: absolute;
  width: 28.02vw;
  height: 6px;
  right: 0px;
  top: 58vh;
  background: rgba(101, 29, 148, 0.6);
  border-radius: 3px;
  z-index: 10;
}

/* CSAM 2025 Section */
.csam2025-container {
  width: 100%;
  background: #F5F5F7;
  padding: 64px 4.75vw;
  display: flex;
  flex-direction: column;
  gap: 50px;
  box-sizing: border-box;
  transition: gap 0.3s ease;
  overflow: hidden;
}

.csam2025-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.csam2025-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  user-select: none;
}

.csam2025-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #0F1B4B;
  margin: 0;
  text-align: left;
}

.csam2025-arrow {
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.csam2025-divider {
  width: 100%;
  height: 3px;
  background: #0F1B4B;
  border-radius: 1.5px;
}

.csam2025-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  transition: all 0.3s ease;
}

/* White Card Container */
.csam2025-card {
  width: 100%;
  background: transparent;
  border-radius: 30px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Image Boxes */
.csam2025-image {
  flex: 0 1 auto;
  min-width: 560px;
  min-height: auto;
  aspect-ratio: 620.5/709;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}

/* Game Button Container */
.csam2025-game-container {
  flex: 0 1 auto;
  min-width: 560px;
  min-height: auto;
  aspect-ratio: 620.5/709;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.csam2025-game-link {
  text-decoration: none;
  width: 560px;
}

.csam2025-game-button {
  width: 100%;
  padding: 1rem;
  background: #FFFFFF;
  border: 2px solid rgba(15, 27, 75, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 34px;
  color: #0F1B4B;
  text-align: center;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.csam2025-game-button:hover {
  transform: scale(1.05);
  border-color: rgba(15, 27, 75, 1);
}

/* Bottom Decorations */
.decorations-container {
  width: 100%;
  background: white;
  display: flex;
  flex-direction: column;
}

.decoration-spacer-128 {
  height: 128px;
}

.decoration-spacer-42 {
  height: 42px;
}

.decoration-spacer-86 {
  height: 86px;
}

.decoration-spacer-32 {
  height: 32px;
}

.decoration-spacer-64 {
  height: 64px;
}

.decoration-line {
  height: 6px;
  border-radius: 3px;
}

.decoration-line.purple-66 {
  width: 66.67%;
  background: rgba(101, 29, 148, 0.6);
  margin-left: auto;
}

.decoration-line.navy-75 {
  width: 75%;
  background: rgba(15, 27, 75, 0.6);
  margin-left: auto;
}

.decoration-line.navy-16 {
  width: 16.67%;
  background: rgba(15, 27, 75, 0.6);
}

.decoration-line.purple-56 {
  width: 56.25%;
  background: rgba(101, 29, 148, 0.6);
}

/* Mobile Styles - Media Query for screens < 640px */
@media (max-width: 640px) {
  /* Main Container */
  .csam-main-container {
    min-width: 100%;
  }

  /* CSAM Section */
  .csam-section {
    min-height: auto;
    padding-bottom: 5vh;
  }

  .csam-content {
    max-width: 90%;
    padding-left: 5vw;
    padding-top: 3rem;
  }

  .csam-title {
    font-size: 24px;
  }

  .csam-description {
    font-size: 16px;
  }

  /* Hide decorative rectangles on mobile */
  .rect-25,
  .rect-26 {
    display: none;
  }

  /* Hide decorative lines on mobile */
  .line-1,
  .line-2,
  .line-3,
  .line-4 {
    display: none;
  }

  /* CSAM 2025 Section */
  .csam2025-container {
    padding: 32px 5vw;
    gap: 30px;
  }

  .csam2025-title {
    font-size: 20px;
  }

  .csam2025-content {
    gap: 30px;
  }

  /* White Card Container */
  .csam2025-card {
    padding: 0.5rem;
    gap: 1rem;
  }

  /* Image Boxes - smaller on mobile */
  .csam2025-image {
    min-width: 280px;
    min-height: 280px;
  }

  /* Game Button Container */
  .csam2025-game-container {
    min-width: 280px;
    min-height: 280px;
  }

  .csam2025-game-link {
    width: 280px;
  }

  .csam2025-game-button {
    font-size: 16px;
    line-height: 24px;
    padding: 0.75rem;
  }

  /* Bottom Decorations - adjust spacing */
  .decoration-spacer-128 {
    height: 64px;
  }

  .decoration-spacer-42 {
    height: 20px;
  }

  .decoration-spacer-86 {
    height: 40px;
  }

  .decoration-spacer-32 {
    height: 16px;
  }

  .decoration-spacer-64 {
    height: 32px;
  }
}
