:root {
    --bg-color: white;
    --text-color: black;
    --shadow-color: rgba(0, 0, 0, 0.12);
    --logo-color: #28166C;
}

/* Detect dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #171717;
        --text-color: #f5f5f5;
        --shadow-color: rgba(245, 245, 245, 0.12);
        --logo-color: #D0CCDD;
    }
}

* {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Helvetica;
}

/* Top navigation container */
#top-nav {
    width: 90vw;
    margin: 24px auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;

    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow-color);
}

/* All links */
#top-nav > a {
    font-size: 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Hover */
#top-nav > a:hover {
    color: #0077ff;
    transform: translateY(-2px);
}

/* Logo */
#top-nav > a:first-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

#top-nav > a > p {
    margin-left: 0;
    font-size: 32px;
    font-style: oblique;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: var(--logo-color);
}

/* Logo image */
#top-nav > a:first-child img {
    height: 56px;
    width: 56px;
    border-radius: 8px;
}

/* Register button */
#top-nav > a:last-child {
    margin-left: auto; /* push button to right */
}

#top-nav button {
    padding: 10px 22px;
    font-size: 24px;
    font-weight: 600;

    border: none;
    border-radius: 999px;
    cursor: pointer;

    background: linear-gradient(135deg, #0077ff, #005bb5);
    color: #ffffff;

    transition: transform 0.2s ease;
}

main {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
}

h1 {
    font-size: 10vh;
    line-height: 1; 
    text-align: center; 
    margin: 0;
    font-style: oblique;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: var(--logo-color);
}

h2 {
    font-size: 5vh;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px; 
}

#introduction {
    width: 95vw;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 40px; 
    padding: 40px;
}

/* The text column */
#introduction div:first-child {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    flex: 1 1 300px; 
    justify-content: center;
}

/* The image column */
#introduction div:last-child {
    display: flex;
    flex-direction: column; 
    align-items: center;
    flex: 1 1 300px; 
    gap: 10px;
}

#introduction p {
    font-size: clamp(20px, 30px, 150px);
    margin: 0;
    line-height: 1.1;
}

#introduction img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#introduction caption {
    font-size: 100%;
    text-align: center;
    color: var(--text-color);
}

#introduction button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #0077ff;
    color: white;
    cursor: pointer;
}

#introduction button:hover {
    background-color: #005bb5;
}

#sponsors div{
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

#sponsors div a {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sponsors div a img {
    width: 40vw;
    height: auto;
}

#sbc-cluster {
    width: clamp(100px, 95vw, 95vw);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow-color);
    margin: 20px;
}

#sbc-cluster p{
    margin-left: 10px;
    margin-right: 10px;
    text-align: center;
    font-size: clamp(20px, 30px, 150px);
}

/* Section container */
#bench-apps {
    width: 95vw;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; 
    gap: 40px; 
    padding: 40px;
}

#bench-apps h2 {
    text-align: center;
    font-size: 5vh;
    margin: 0;
}

#bench-apps > p {
    text-align: center;
    margin: 0 auto;
    line-height: 1.6;
    font-size: clamp(20px, 30px, 150px);
}

#bench-apps-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* image column */
#bench-apps-content > div:first-child {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Image */
#bench-apps-content img {
    max-width: 45vw;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Caption */
#bench-apps-content caption {
    font-size: 0.9rem;
    text-align: center;
}

/* Dropdown column */
#bench-apps-content > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#bench-apps details {
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: transform 0.3s ease;
}

#bench-apps details:hover {
    transform: translateY(-2px);
}

#bench-apps summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

#bench-apps summary::-webkit-details-marker {
    display: none;
}

#bench-apps summary::after {
    content: "›";
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

#bench-apps details[open] summary::after {
    transform: rotate(90deg);
}

#bench-apps details p {
    margin-top: 12px;
    line-height: 1.6;
}

#bench-apps details p a {
    color: blue;
    font-style: italic;
}

/* Quote section container */
#quote {
    width: 85vw;
    margin: 80px auto;
    padding: 40px;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow-color);

    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Blockquote styling */
#quote blockquote {
    margin: 0;
    padding-left: 24px;
    border-left: 4px solid #0077ff;

    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
}

#quote blockquote b {
    font-weight: 700;
    color: #0077ff;
}

/* Person section */
#quote-person {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* profile image */
#quote-person img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* Name and title */
#quote-person p {
    margin: 0;
    font-weight: 600;
}

#quote-person span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
}

#faq {
    width: 75vw;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq h2 {
    font-size: 5vh;
    margin-bottom: 10px;
    text-align: center;
}

#faq > p {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(20px, 30px, 150px);
}

/* Details card */
#faq details {
    max-width: 100%;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: transform 0.3s ease;
}

/* Hover lift */
#faq details:hover {
    transform: translateY(-2px);
}

/* Clickable header */
#faq summary {
    list-style: none; /* remove default marker */
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Remove default triangle */
#faq summary::-webkit-details-marker {
    display: none;
}

/* Custom chevron */
#faq summary::after {
    content: "›";
    font-size: 1.5rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* Rotate chevron when open */
#faq details[open] summary::after {
    transform: rotate(90deg);
}

/* Answer text */
#faq details p {
    margin-top: 15px;
    line-height: 1.6;
}

/* Sign-up card */
#sign-up {
    margin: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Heading */
#sign-up h2 {
    font-size: 5vh;
    margin: 0;
}

/* Supporting text */
#sign-up p {
    line-height: 1.6;
}

/* Call-to-action button */
#sign-up a button {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px; /* pill-shaped */
    background: linear-gradient(135deg, #0077ff, #005bb5);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
#sign-up a button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.35);
}

/* Bottom navigation container */
#bottom-nav {
    width: 90vw;
    margin: 24px auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;

    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow-color);
}

/* Links */
#bottom-nav > a {
    font-size: 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Hover */
#bottom-nav > a:hover {
    color: #0077ff;
    transform: translateY(-2px);
}

/* Logo */
#bottom-nav > a img {
    height: 48px;
    width: auto;
    display: block;
}

/* Follow us section */
#bottom-nav > div {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

#bottom-nav > div p {
    margin: 0;
    font-size: 24px;
}

#bottom-nav > div a {
    display: flex;
    align-items: center;
    justify-content: center;
}

#bottom-nav > div img {
    height: 36px;
    width: 36px;
    transition: transform 0.2s ease;
}

/* Hover effects */
#bottom-nav > div a:hover img {
    transform: translateY(-2px);
}

footer p {
    font-size: 20px;
}