@layer base {
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }

  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
}

@layer base {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 2s ease-out;
}

/* Use this format to change hero backgrounds across pages */
.home .hero-bg {
    background-image: url('../assets/images/linkedInBackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.ASTRA .hero-bg {
    background-image: url('../assets/images/ASTRA/Hero_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.SPAROW .hero-bg {
    background-image: url('../assets/images/SPAROW/SPAROW\ 25-26\ Team\ DBF.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.outreach .hero-bg {
    background-image: url('../assets/images/Outreach/Outreach_Hero_Image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.balloonsat .hero-bg {
    background-image: url('../assets/images/BalloonSat/balloonSatImage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.trantor .hero-bg {
    background-image: url('../assets/images/Trantor/TrantorTeamPicture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cansat .hero-bg {
    background-image: url('../assets/images/CanSat/cansatBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.twomonth .hero-bg {
    background-image: url('../assets/images/Two\ Month/TwoMonth_BG_2026.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.spaceflight .hero-bg {
    background-image: url('../assets/images/SpaceFlight/SpaceFlight_BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.ham .hero-bg {
    background-image: url('../assets/images/HAM/HAM_BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.history .hero-bg {
    background-image: url('../assets/images/Committees/History/History_Committee_Hero_Image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Default hero background */
.hero-bg {
    background-image: url('../assets/images/space.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.8), rgba(35, 30, 127, 0.8));
    z-index: 1;
}

.hero-bg > * {
    position: relative;
    z-index: 2;
}

/*constitution dropdown*/
.cx-fold {
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    padding: 0.3rem;
    background: white;
    transition: all 0.2s ease;
}

.cx-fold[open] {
    background: #f9fafb; /* gray-50 */
    border-color: #9ca3af; /* gray-400 */
}

.cx-fold-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
}

.cx-fold-chevron {
    transition: transform 0.2s ease;
}

.cx-fold[open] .cx-fold-chevron {
    transform: rotate(180deg);
}

.cx-fold-body {
    margin-top: 0.4rem;
    color: #4b5563; /* gray-600 */
    line-height: 1.6;
}