/* ============================================== */
/* --- 7. DRESS CODE SECTION (REDESIGN FINAL) --- */
/* ============================================== */

/* Main section wrapper */
.dress-code {
  display: flex;
  flex-wrap: wrap;           /* Allows stacking on mobile */
  align-items: center;
  justify-content: center;
  
  /* Generous padding for breathing room */
  padding: clamp(6rem, 10vw, 8rem) clamp(2rem, 5vw, 10rem);
  gap: clamp(2rem, 8vw, 10rem); 
  margin: 0 auto; 
  max-width: 1400px; 
  box-sizing: border-box;
}

/* --- LEFT CONTAINER (IMAGE) --- */
.dress-code-container-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; 
}

/* Image container that defines the round shape and style */
.dress-code-img-wrapper {
    position: relative; /* 🔥 missing piece */
    width: clamp(200px, 28vw, 350px);
    aspect-ratio: 3 / 4;
    overflow: hidden;

    border-radius: 200px 200px 20px 20px;
    background-color: #f7f7f7;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(149, 184, 214, 0.2);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-img-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(66, 106, 141, 0.15);
}

.dress-code-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.dress-code-container-left .rounded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
    display: block;
}


/* --- RIGHT CONTAINER (TEXT) --- */
.dress-code-container-right {
  max-width: 600px;
  width: 100%;
  margin-left: clamp(2rem, 4vw, 4rem); 
}

/* Title styling with gradient accent */
.dress-code-container-right h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #7b9ebc, #426A8D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Styling for the main paragraph (Formal Attire) */
.dress-code-main-rule {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem); 
    color: #426A8D;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Notice for the "White is reserved" rule */
.dress-code-main-rule .white-notice {
    font-style: italic;
    color: #6C8198; 
    display: block; 
    margin-top: 1rem;
}

/* Styling for the practical callouts (Grass, Coat) */
.dress-code-practical-note {
    /* Subtle divider line above each note */
    border-top: 1px solid #E6EBF0; 
    padding: 1rem 0;
}

.dress-code-practical-note p {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem); 
    color: #6C8198; 
    margin: 0;
    line-height: 1.8;
}

/* --- BUTTON (Suggestions) --- */
.suggestion-button {
  /* Pill shape and color */
  display: inline-block;
  text-decoration: none;
  background-color: #95B8D6; 
  color: #FFFFFF;
  border: 1px solid #95B8D6;
  border-radius: 50px; 
  
  width: auto; 
  padding: clamp(0.6rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem); 
  
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 700; 
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  
  margin-top: 2rem; 
}

.suggestion-button:hover {
    background-color: #7b9ebc; 
    border-color: #95B8D6;
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(66, 106, 141, 0.4);
}
.button-suggestion{
    display: none;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  .dress-code {
    flex-direction: column;
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) 5%; 
    gap: 3rem;
  }
  
  .dress-code-img-wrapper {
      margin: 0 auto;
  }

  .dress-code-container-right {
      text-align: center;
      margin-left: 0;
      margin-top: 2rem; 
  }

  .dress-code-main-rule,
  .dress-code-practical-note {
      text-align: left;
      /* Indent text slightly for better mobile appearance */
      padding-left: 10%; 
      padding-right: 10%;
  }
  
  .suggestion-button {
      margin: 2rem auto 0; /* Center button */
  }
}
