* {
    font-family: 'Poppins', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-container {
    position: relative;
    height: 100vh;
    
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5%;
    color: white;
}
.main-container div {
    margin-left: 68px;
}

header {
    height: 210px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    padding: 0;
    margin: 0;
    align-items: center;
}

.navbar {
    max-width: 100%;
    margin: 0 50px;
    display: flex;
    height: auto;
    padding: 2rem 5%;
}

.navbar-brand {
    position: relative;
    left: 0;
    width: auto;
    color: #00205b;
}

.navbar-nav {
    position: absolute;
    right: 150px;
    display: flex;
    flex-direction: row;
}

.navbar-nav .nav-item .nav-link {
    position: relative;
    transition: 0.3s;
    font-weight: 400;
    border-radius: 50%;
    border: 2px solid #fefefe;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    margin-left: 8px;
    color: #fefefe;
}

.navbar-brand .logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-content h1 {
    font-size: 4rem;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 1px 1px 1px black;
    text-transform: uppercase;
}
.header-content p {
    font-size: 1.2rem;
    white-space: nowrap;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 1px black;
}
.main-container > div > p:nth-child(3) {
    margin-bottom: 80px;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
}

.cta-button {
    font-weight: 600;
    background-color: #ffbd59;
    color: #00308c;
    padding: 14px 100px;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    text-decoration: none;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1500px !important;
    }
}

/* @media (max-width: 768px) {
    header {
        height: 60px;
        margin: 0;
        position: fixed;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-nav li {
        margin: 0;
    }

    .navbar-nav li a {
        text-transform: uppercase;
        font-weight: 600;
        display: block;
        padding: 15px;
        border-radius: 0;
        background-color: transparent;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
        font-size: 14px;
    }
} */

/* .highlight */
.sliding-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: top;
    height: 1.2em;
    color: #ffbd59;
}

.text-items {
    display: block;
    position: relative;
    top: 0;
    animation: slide 12s linear infinite;
}

@keyframes slide {
    0%, 20% {
        top: 0;
    }
    25%, 45% {
        top: -1.2em;
    }
    50%, 70% {
        top: -2.4em;
    }
    75%, 95% {
        top: -3.6em;
    }
    100% {
        top: 0;
    }
}


/* ------------------------------------------------------------------- */

/* Event Card */

.events-section {
    background-color: #fff;
    padding: 50px 0;
}

.events-title {
    text-align: center;
    margin-bottom: 90px;
}

.events-title h2 {
    font-size: 2.5em;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-block;
}

.events-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #FFD700;
    width: 50%;
    margin: 0 auto;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    flex-basis: calc(33.333% - 20px);
    margin-bottom: 30px;
    /* background-color: #fff; */
    overflow: hidden;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
}

.event-info {
    /* padding: 15px; */
    border-top: #00308c solid 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-details {
    flex-grow: 1;
}
.event-details svg {
    color: #00308c;
    margin-right: 8px;
}

.event-info p {
    margin: 5px 0;
    font-size: 0.9em;
    font-weight: 500;
    color: #666;
}

.event-info .location,
.event-info .timer {
    display: flex;
    align-items: center;
}

.event-info .location i,
.event-info .timer i {
    margin-right: 5px;
}

.event-info .location i {
    color: #007bff;
}

.event-info .timer i {
    color: #28a745;
}

.event-info .btn {
    padding: 8px 15px;
    font-weight: 600;
    background-color: #ffbd59;
    color: #00308c;
    border-radius: 0;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.event-info .btn:hover {
    background-color: #FFC000;
}

.event-info .btn:focus {
    outline: 0;
    box-shadow: none !important;
}

.event-image {
    position: relative;
    margin-bottom: 6px;
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-image h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
}

@media (max-width: 900px) {
    .event-card {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .event-card {
        flex-basis: 100%;
    }
}


/* Contact */
.contact-title {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title h2 {
    font-size: 2.5em;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-block;
}

.contact-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #FFD700;
    width: 50%;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-container p {
    max-width: 40%;
    width: 100%;
    text-align: center;
}
.contact-container .btn {
    padding: 8px 15px;
    font-weight: 600;
    background-color: #ffbd59;
    color: #00308c;
    border-radius: 0;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}
.contact-container .btn:hover {
    background-color: #FFC000;
}
.contact-container .btn:focus {
    outline: 0;
    box-shadow: none !important;
}
/* Contact */

.footer {
    background-color: #00205B;
    color: white;
    padding: 20px 15%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    /* padding: 0 5%; */
}

.footer-column {
    flex: 1;
    margin: 0;
    padding: 10px;
}

.footer-column p a {
    color: white !important;
    text-decoration: none;
}

.footer h3 {
    color: #ffde59;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.footer p, .footer ul li {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer ul li a {
    color: white;
    text-decoration: none;
}

.footer .logo-container {
    max-width: 200px;
}

/* Social icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    list-style: none;
    padding: 0;
    max-width: 180px;
    margin-left: 0;
}

.icon {
    margin-left: 0 !important;
}
/* Social icons */

.footer .social-icons {
    display: flex;
    justify-content: flex-end;
}

.footer .social-icons a {
    color: white;
    margin-left: 20px;
    font-size: 20px;
}

.copyright {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}
.copyright a {
    color: white !important;
    text-decoration: none;
}
.footer .copyright {
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    padding-top: 10px;
  }

/* Media queries for responsive design */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: row;
        justify-content: center;
    }

    .navbar-nav .nav-item .nav-link {
        margin: 5px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .main-container > div > p:nth-child(3) {
        margin-bottom: 40px;
    }

    .cta-button {
        padding: 12px 60px;
    }

    .event-card {
        flex-basis: calc(50% - 20px);
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }

    .footer .social-icons {
        justify-content: flex-start;
    }

    .footer .social-icons a {
        margin-left: 0;
        margin-right: 15px;
    }
}

@media (min-width: 768px) {
    .footer .social-icons {
        display: flex;
        justify-content: flex-start;
    }

    .footer .social-icons a {
        margin-right: 20px;
        font-size: 20px;
    }

    .footer .copyright {
        text-align: center;
        margin-top: 10px;
        font-size: 14px;
    }

    .footer hr {
        margin: 10px 0;
    }
}

@media (max-width: 767px) {
    header {
        height: auto;
        position: fixed;
        background-color: #00205b;
        padding: 5px 10px;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 0;
        margin: 0;
    }

    .navbar-brand {
        position: static;
        left: auto;
        width: auto;
    }

    .logo-svg {
        height: 28px;
        width: auto;
    }

    .navbar-nav {
        position: static;
        right: auto;
    }

    .navbar-nav .nav-item .nav-link {
        border: none;
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }

    /* Hide these elements on mobile */
    .navbar-toggler,
    .navbar-collapse {
        display: none !important;
    }
    .navbar-brand .logo-img {
        height: 30px;
    }

    /* Ensure the social icons container doesn't wrap */
    #collapsibleNavbar {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .events-title {
        margin-bottom: 45px;
    }

    .events-title h2 {
        font-size: 1.5em;
    }

    .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 80px 20px;
        /* margin: 40px 0; */
    }

    .main-container > div {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Ensure the button container takes full width */
    .main-container > div > p:last-of-type {
        width: 100%;
    }

    .header-content h1 {
        font-size: 2rem;
        white-space: normal;
        margin-bottom: 20px;
    }

    .header-content p {
        font-size: 1rem;
        white-space: normal;
        margin-bottom: 10px;
    }

    .main-container > div > p:nth-child(3) {
        margin-bottom: 40px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        white-space: normal;
        text-align: center;
        display: inline-block;
        margin: 0 auto;
    }

    .events-container {
        padding: 0 10px;
    }

    .event-card {
        flex-basis: 100%;
    }

    .contact-container p {
        max-width: 100%;
    }

    .footer {
        padding: 20px 15px;
    }

    .footer h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer p, .footer ul li {
        font-size: 12px;
    }

    .footer .social-icons {
        display: inline;
    }

    .footer .social-icons a {
        font-size: 20px;
        margin-right: 12px;
    }

    .social-icons {
        display: inline;
        max-width: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-column {
        margin: 0 !important;
        flex: none;
        width: 100%;
    }

    .contact-title h2 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
}



/*  HOME:  OTHER PAGES */
.page-header {
    background: linear-gradient(135deg, #00205b 0%, #0046c7 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ffbd59;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
}
/*  HOME:  OTHER PAGES */


/*  GLOBAL */

.cta-home-page {
    font-weight: 800;
    background-color: #ffbd59;
    color: #00308c;
    padding: 14px 16px;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
}
.cta-home-page:hover {
    text-decoration: none;
}

/*  GLOBAL */




/* FIX EVENT PAGES / select badge / register */
.event-container {
    padding-top: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    background-blend-mode: overlay;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    font-family: 'Roboto', Arial, sans-serif;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 50px;
    padding: 0 5%;
}

.content-wrapper h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.badge-selection-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    margin-top: 100px;
}


.event-date, .event-location {
    font-size: 1.5rem;
    margin-bottom: 2px !important;
    text-transform: uppercase;
    font-weight: 600;
}
.event-description {
    font-size: 1.1rem;
    margin: 20px 0 30px;
    line-height: 1.6;
    max-width: 800px;
}

@media (max-height: 890px) {
    .badge-selection-content {
        margin-top: 160px;
    }

}

@media (max-height: 800px) {
    .event-container {
        justify-content: flex-start; /* Align content to the top on low-height screens */
        padding-top: 120px; /* Add more padding to prevent overlap */
    }

    .content-wrapper {
        padding-top: 80px; /* Reduce padding for low-height screens */
    }

    .event-date, .event-location {
        font-size: 1rem; /* Further reduce font size */
    }

    .event-description {
        font-size: 0.9rem; /* Further reduce font size */
    }

    .badge-selection-content {
        margin-top: 160px;
    }

    .content-wrapper h1 {
        font-size: 3rem;
    }
}

/* Media query for very low-height screens (e.g., 720p) */
@media (max-height: 720px) {
    .event-container {
        padding-top: 100px; /* Further reduce padding */
    }

    .event-date, .event-location {
        font-size: 0.9rem; /* Further reduce font size */
    }

    .event-description {
        font-size: 0.8rem; /* Further reduce font size */
    }

    .badge-selection-content {
        margin-top: 160px;
    }
}

@media (max-width: 767px) {
    .event-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 80px 20px;
    }

    .event-container > div {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .event-container > div > p:last-of-type {
        width: 100%;
    }
    .event-container > div > p:nth-child(3) {
        margin-bottom: 40px;
    }

    .content-wrapper h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .event-container {
        background-attachment: scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-quality;
    }

    .badge-selection-content {
        margin-top: 40px;
    }

    /*  View event page  */
    .event-date, .event-location {
        font-size: 1.2rem;
    }
    .event-description {
        font-size: 1rem;
    }
}
/* FIX EVENT PAGES / select badge / register */
