body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background-color: #ffffff; /* fallback */
    color: white;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
    135deg,
    #5CDBE1, /* uniq blue */
    #FFA9CB  /* uniq pink */
    );
}

body.legal-page {
    background: #1C2643; /* uniq-navy */
    color: #ffffff;
}

body.legal-page::before {
    display: none; /* removes gradient background */
}

body.legal-page h1, body.legal-page h2 {
    color: #ffffff;
}

body.legal-page .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.navbar{
    position: sticky;
    top: 0;
    z-index: 100;

    background: transparent
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container{
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo{
    height: 32px;
    width: auto
}

.nav-toggle{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; 
}

.nav-toggle span{
    display: block;
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background-color: #1C2643;
    margin: 3px 0;
}

.nav-menu{
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu a{
    text-decoration: none;
    color: #1C2643;
    font-weight: bold;
    font-size: 1rem;
}

.nav-menu a:hover{
    text-decoration: underline;
}

.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 0 24px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

img.icon {
    width: 120px; 
    height: auto;
    padding: 10px;
    filter: drop-shadow(0 2px 2px rgba(28, 38, 67, 0.25));
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);

    width: 30px;
    height: 30px;
    border-radius: 50%;

    border: 2px solid #1C2643;
    display: flex;
    align-items: center;
    justify-content: center;

    animation: bounce 2s infinite;
}

.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #1C2643;
    border-bottom: 2px solid #1C2643;
    border-radius: 2px;
    transform: rotate(45deg);
    margin-top: -4px;
}

.section {
    height: calc(100vh - 64px);
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    margin: 0 auto;
}

.section h2 {
    margin-bottom: 50px;
}

.card-section {
    height: 70%;
    width: 100%;
}

.card-grid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Accordion container */
.card-accordion {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.card-accordion .card:not(.active) {
    width: 80px;
    cursor: pointer;
    transform-origin: center;
}

.card-accordion .card:not(.active) .card-content {
    min-height: 100%;
}

.card-accordion .card:not(.active) .card-image,
.card-accordion .card:not(.active) .card-content p,
.card-accordion .card:not(.active) .card-header h4 {
    display: none;
}

.card-accordion .card:not(.active) .card-header {
    transform: rotate(90deg);
    white-space: nowrap;
    text-align: center;
}

.card-accordion .card:not(.active) .card-header h3 {
    margin-bottom: 0px;
    text-decoration: underline;
}

.card-accordion .card:not(.active) h3::after {
    content: " ›"
}

/* Collapsed state */
.card-accordion .card-image,
.card-accordion .card-content p {
    display: none;
}

/* Expanded state */
.card-accordion .card.active .card-image {
    display: block;
}

.card-accordion .card.active .card-content p {
    display: block;
}

/* Keep header visible always */
.card-accordion .card-content {
    background-color: #1C2643;
    color: white;
}

.panel {
    border-radius: 25px;
    height: 70%;
    width: 100%;
    background-color: #1C2643;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel h2, .panel h3 {
    color: white;
}

.panel p {
    max-width: 900px;
    text-align: center;
}

.no-jobs {
    padding-top: 50px;
}

.card {
    width: 100%;
    height: 100%;
    border: 4px solid #1C2643;
    border-radius: 25px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
  
    background: transparent;
}

.card-image {
    display: flex;
    justify-content: center; 
    align-items: flex-end; 

    width: 100%;
    flex: 1 1 50%; 
    min-height: 0; 
}

.bg-img{
    position: relative;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
}

.bg-gym {
    background-image: url('assets/gym-bg.png');
}

.bg-support {
    background-image: url('assets/support-bg-v2.png');
}

.bg-bus-inq {
    background-image: url('assets/business-inquiry-bg-v2.png');
}

.bg-careers {
    background-image: url('assets/careers-bg.png');
}

.card-image {
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);

    max-height: 95%;
    max-width: 95%;
}

.about-us-img {
    top: 55% !important;
    max-height: 100% !important;
}

.card-content {
    flex: 0 0 auto;
    min-height: 35%;

    background-color: #1C2643;
    color: white;
}

.card-content h3 {
    margin-top: 0px;
    font-weight: normal;
    color: white;
}

.card-content h4 {
    color: white;
}

.card-content p {
    padding: 0 20px 0 20px;
}

.card-header {
    padding: 20px 20px 20px 20px
}

h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1C2643;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #1C2643
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1C2643;
}

h4 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
    margin-top: 0px;
    color: #1C2643;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto 20px auto;
}

a {
    color: #5CDBE1
}

footer {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 20px 0px;
    color: white;
    background-color: #1C2643;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo img {
    max-width: 160px;
    color: white;
    margin: auto;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-social {
    flex-direction: row;
    margin: auto;
}

.footer-social a {
    font-weight: 500;
}

.footer-divider {
    max-width: 1200px;
    margin: 5px auto;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    opacity: 0.7;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    /* Navbar adjustments for mobile */
    .nav-toggle{
        display: block;
    }

    .nav-menu{
        position: absolute;
        top: 100%;
        right: 24px;

        flex-direction: column;
        gap: 16px;

        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        padding: 16px 24px;

        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

}

@media (max-width: 550px) {

    h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    h3 {
        font-size: 1rem;
    }

    .section h2{
        margin-bottom: 10px
    }

    .section {
        justify-content: flex-start;
        padding: 10px 10px;
        height: 88vh;
        margin-bottom: 40px;
    }

    .active {
        height: 100% !important;
    }

    .nav-container {
        padding: 10px 24px;
    }

    .nav-logo {
        height: 22px;
    }

    .nav-toggle {
        padding: 0px;
    }

    .nav-toggle span {
        width: 20px;
        height: 3px;
    }

    .card-section {
        height: 100%;
    }

    .card-content p {
        font-size: 0.9rem;
        padding: 0 5px 0 5px;
        margin: 0 auto 10px auto;
    }

    .card-header{
        padding: 5px 5px 0px 5px;
    }

    .card-accordion {
        flex-direction: column; 
    }

    .card-accordion .card {
        width: 97.5%;  
        height: auto; 
        transform: none; 
        cursor: default; 
    }

    .card-accordion .card:not(.active) .card-header {
        transform: rotate(0deg);
        white-space: nowrap;
        text-align: center;
        padding-bottom: 5px;
    }

    .card-accordion .card:not(.active) {
        width: 97.5%;
        min-height: 25px
    }
    
}
