




/* === SITE HEADER (LOGO + NAV) === */
header {
    background: inherit !important;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-title-text {
    font-family: 'Museo900-Regular';
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 0.8rem;
    color: var(--color-text);
    text-align: center;
}

header img.logo {
    height: 65px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* === QUIZ HERO SECTION === */
.kviz-hero {
    background: var(--color-primary);
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    position: relative;
}


.kviz-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 1rem 0 0.2rem;
    color: var(--color-text);
}

.kviz-hero h2 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0;
    letter-spacing: 0.5px;
}

/* === MAIN CONTENT === */
main {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 65%;
    margin: 0 auto;
}

.button {
    display: inline-block;
    background: var(--color-secondary);
    color: #fff;
    font-weight: bold;
    padding: 0.8rem 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.1s ease;
}

.button:hover {
    transform: scale(1.03);
}

main p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.pub_text{
    font-size: smaller;
}

.selector-box {
    background: var(--color-primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.selector-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.selectors {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

select {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background: var(--color-text);
    color: white;
}

/* === FOOTER === */
footer {
    background: inherit !important;
    padding: 4rem 2rem 3rem;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    border-top: 1px solid #ccc;
}

footer h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.social-icons, .partners {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer img.icon {
    height: 48px;
    width: 48px;
}

footer img.partner-logo {
    height: 60px;
}

.info-section-wrapper {
    width: 100%;
    background: var(--color-primary);
}

.info-section {
    max-width: 65%;
    margin: 0 auto;
    background: transparent !important; /* allow wrapper to color it */
    padding: 4rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.info-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    max-width: 100%;
    flex-wrap: nowrap;
}

.info-text {
    flex: 1 1 50%;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

.info-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.info-image {
    text-align: center;
}

.info-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    border: 4px solid var(--color-primary);
}

.info-image video {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    border: 4px solid var(--color-primary);
}

.description{
}

.search-bar {
    display: flex;
    max-width: 400px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    height: 60px;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 0 1.5rem;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    background: transparent;
    color: var(--color-text);
    height: 100%;
}

.kviz-hero img {
    max-width: 400px; height: auto;
}

.search-bar input::placeholder {
    color: var(--color-text);
    opacity: 0.5;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.lang-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-btn .flag-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.lang-btn:hover .flag-icon {
    transform: scale(1.1);
    border-color: var(--color-text);
}

.lang-btn.active .flag-icon {
    border-color: var(--color-primary);
}


@media (max-width: 768px) {
    /* Main container width */
    main {
        max-width: 95%;
        padding: 1rem;
    }

    /* Hero text smaller */
    .kviz-hero h1 {
        font-size: 2rem;
    }

    .kviz-hero h2 {
        font-size: 1rem;
    }

    /* Button smaller */
    .button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Selector box smaller */
    .selector-box {
        padding: 1rem;
    }

    .selector-box h3 {
        font-size: 1.1rem;
    }

    .selectors {
        flex-direction: column;
        gap: 0.8rem;
    }

    select {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    /* Results grid becomes 1 column */
    .results-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 0.8rem;
    }

    /* Pagination buttons smaller */
    #pagination button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Info section stack vertically */
    .info-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .info-text h2 {
        font-size: 1.5rem;
    }

    .info-text {
        font-size: 0.95rem;
    }

    .info-image img {
        max-width: 90%;
    }

    .info-image video {
        max-width: 90%;
    }

    /* Search bar smaller */
    .search-bar {
        height: 50px;
    }

    .search-bar input {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .kviz-hero img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .nav-links a {
        font-size: 0.85rem;
        gap: 1rem;
    }

    header img.logo {
        height: 3.5rem;
    }

    /* Language buttons smaller */
    .lang-btn .flag-icon {
        width: 1.5rem;
        height: 1rem;
    }


    header {
        padding: 0.5rem 1rem;
    }

    .pub_text{
        font-size: medium;
    }


}

@media (max-width: 320px) {
    .selector-box {
        padding: 0.8rem;
    }

    .selectors {
        flex-direction: column;
        gap: 0.5rem;
    }

    .selectors select {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

}

/* === UPCOMING CAROUSEL === */

.upcoming-section {
    width: 100%;
    padding: 3rem 0;
    background: inherit !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* THIS centers everything perfectly */
}

.carousel-wrapper-all {
    width: 100%;
    max-width: 65%;     /* matches HERO width! */
    margin: 0 auto;
}

.upcoming-heading {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.upcoming-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* consistent spacing */
}
.upcoming-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 auto;
    width: 1033px;
    position: relative;
}

.event-tile {
    width: 275px;        /* restore correct width */
    min-height: 225px;   /* restore correct height */
    flex-shrink: 0;      /* stops squishing */
    border-radius: 16px;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.carousel-track {
    display: flex;
    gap: 2rem;           /* restore spacing between tiles */
    transition: transform 0.4s ease;
}

.event-title {
    font-size: 1.6rem;
    margin: 0;
}

.event-date {
    margin: 0.4rem 0 1.5rem;
    opacity: 0.8;
}

.event-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
}

.event-hidden {
    display: none;
    color: #fff;
    margin-top: 1rem;
    line-height: 1.4;
}

.carousel-arrow {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

/* svg inside the button */
.carousel-arrow img {
    width: 36px;
    height: 36px;
}

/* Left arrow rotates 180 degrees */
.left-arrow img {
    transform: rotate(180deg);
}


@media (max-width: 768px) {
    .left-arrow { left: -10px; }
    .right-arrow { right: -10px; }
}

.carousel-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 1700px) {
    .carousel-wrapper {
        width: 700px; /* fits 2 tiles fully */
    }
    .carousel-track {
        gap: 1.5rem;   /* reduced spacing */
    }

    .event-tile {
        width: 48%;
        box-sizing: border-box;
        padding: 1rem;
        min-width: 240px;
    }
}

@media (max-width: 1100px) {

    /* wrapper becomes fluid */
    .carousel-wrapper {
        width: 100%;
        max-width: 323px;
        min-width: 240px;
    }

    /* track gap must scale too */
    .carousel-track {
        gap: 1rem;     /* instead of 2rem (32px) */
    }

    /* tile must be fluid width */
    .event-tile {
        width: 100%;        /* tile matches wrapper */
        padding: 1rem;      /* slightly smaller padding so content fits */
        box-sizing: border-box;
        min-width: 240px;
    }
}


/* Cookies */

.cookie-island {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    background: #ffffff;
    color: #35546b;
    padding: 14px 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    z-index: 9999;
    box-shadow:
        0 14px 40px rgba(53, 84, 107, 0.18),
        0 4px 10px rgba(53, 84, 107, 0.10);
}

.cookie-island span {
    white-space: nowrap;
}

.cookie-accept {
    background: #ffd24d;
    color: #1f3a4a;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 0 #e6b93c;
    transition: transform .15s ease, box-shadow .15s ease;
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #e6b93c;
}

.cookie-accept:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #e6b93c;
}

@media (max-width: 600px) {
    .cookie-island {
        bottom: 16px;
        padding: 14px 16px;
        font-size: 13px;
        max-width: calc(100% - 32px);
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }

    .cookie-island span {
        white-space: normal;
        line-height: 1.35;
    }

    .cookie-accept {
        width: 100%;
        padding: 10px 0;
        font-size: 14px;
    }
}
