/* ============================= */
/* BASE STYLES AND RESET         */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Helvetica Now', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #6aaec6, #eec3fa);
    padding-bottom: 60px;
}

/* ============================= */
/* COLOR VARIABLES               */
/* ============================= */

:root {
    --primary-1: #6aaec6;
    --primary-2: #cfb8ff;
    --primary-3: #eec3fa;
    --secondary: #8b52ff;
}

/* ============================= */
/* MAIN NAVIGATION BAR           */
/* ============================= */

nav {
    background: var(--primary-2);
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav h1 {
    color: white;
    font-size: 1.5em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5em;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-3);
}

/* ============================= */
/* PAGE LAYOUT & TYPOGRAPHY      */
/* ============================= */

.container {
    max-width: 1100px;
    margin: 2em auto;
    padding: 0 1em;
    padding-bottom: 4rem;
}

h1, h2, h3 {
    color: var(--secondary);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* ============================= */
/* CAROUSEL SECTION              */
/* ============================= */

.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2em auto;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--primary-1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.carousel-content {
    display: flex;
    gap: 2em;
    align-items: center;
}

.carousel-content img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
}

.text-block {
    max-width: 400px;
}

.text-block h2 {
    color: var(--secondary);
    margin-bottom: 0.5em;
}

.text-block p {
    font-size: 1em;
    color: #333;
}

#nextBtn,
#prevBtn {
    position: absolute;
    bottom: 1em;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 4px;
}

#nextBtn {
    right: 1em;
}

#prevBtn {
    left: 1em;
}

#nextBtn:hover,
#prevBtn:hover {
    background: var(--primary-2);
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1em;
}

.thumbnails img {
    cursor: pointer;
    border: 2px solid var(--primary-1);
    border-radius: 4px;
    transition: border 0.3s ease;
}

.thumbnails img:hover {
    border: 2px solid var(--secondary);
}

/* ============================= */
/* NAVIGATION BAR WITH DROPDOWNS */
/* ============================= */

.navbar {
    background-color: var(--primary-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    position: relative;
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a {
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 40px;
    color: black;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #8b52ff;
    color: #fff;
}

nav.navbar a.logo-link:hover {
    background-color: transparent !important;
    color: inherit !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.logo-container {
    max-height: 90px;
    display: flex;
    align-items: center;
}

.logo-link img {
    max-height: 80px;
    height: auto;
    width: auto;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: #cfb8ff;
    z-index: 1000;
    min-width: 200px;
    white-space: nowrap;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.nested-dropdown {
    position: relative;
}

.nested-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    background-color: #eec3fa;
    min-width: 160px;
    z-index: 1001;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.25rem;
}

.nested-dropdown:hover > .nested-menu {
    display: block;
}

.nested-dropdown .nested-menu .nested-dropdown:hover > .nested-menu {
    display: block;
    position: absolute;
    right: 100%;
    top: 0;
}

/* ============================= */
/* INFO BOXES                    */
/* ============================= */

.info-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin: 2em 5em;
    justify-content: center;
}

.info-box {
    width: 40%;
    background-color: #221f22;
    padding: 1.5em;
    border-radius: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    overflow: hidden;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.info-box h2 {
    color: var(--secondary);
    margin-bottom: 0.5em;
}

.info-box p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #fff;
}

.info-box img {
    width: 80%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

/* ============================= */
/* EMBED MEDIA                   */
/* ============================= */

.embed-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.embed-item {
    flex: 1 1 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
}

.media-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================= */
/* ACCESSIBILITY & TOGGLES       */
/* ============================= */

.menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.menu-icon {
    width: 40px;
    height: auto;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-3);
    outline-offset: 2px;
}

/* ============================= */
/* THREE COLUMNS SECTION         */
/* ============================= */

.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: transparent;
    color: #ffffff;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.column {
    background-color: transparent;
    padding: 0 2rem;
    position: relative;
}

.column:hover {
    transform: translateY(-5px);
}

.column h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.column p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #000000;
}

.column .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.column .button:hover {
    background-color: #733bdc;
}

.column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.column-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* ============================= */
/* SPONSOR SECTION               */
/* ============================= */

.sp-section {
    padding: 4rem 2rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: #222;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.sp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.sp-card {
    background-color: transparent;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    width: 300px;
}

.sp-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.sp-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    display: block;
}
