@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Math&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --navy: #003366;
    --navy-deep: #001F3F;
    --navy-mid: #0f4f85;
    --green: #8cb63e;
    --lime: #DBE64C;
    --bg-light: #f4f4f4;
    --text-dark: #333;
    --white: #ffffff;
}

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

body {
    font-family: "Poppins", "Open Sans", sans-serif;
    color: var(--text-dark);
    background: linear-gradient(rgba(0, 31, 63, 0.04), rgba(0, 31, 63, 0.04)), var(--bg-light);
    line-height: 1.6;
    opacity: 0;
    animation: pageFade 0.45s ease forwards;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
.header-titles h1 {
    font-size: clamp(1.25rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 0.2rem;
}

.header-titles p {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
}

.condensed {
    font-family: "Poppins", sans-serif;
    letter-spacing: -0.02em;
    transform: scaleX(0.92);
}

main h1,
main h2,
main h3,
.sidebar-box h3 {
    color: var(--navy);
}

main h1 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

main h2 {
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

main h3 {
    padding-bottom: 0.5rem;
    /* margin-bottom: 0.5rem; */
}

/* --- Header --- */
header {
    background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-mid) 40%, var(--green) 90%, var(--lime) 100%);
    font-family: "Poppins", "Open Sans";
    color: var(--white);
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-bottom: 2px solid var(--white);
}

.logo {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* --- Navigation --- */
nav {
    background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-mid) 40%, var(--green) 85%, var(--lime) 100%);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.7rem 1rem;
    margin: 0.2rem 0.2rem;
    font-weight: bold;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.38);
    color: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav a.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, var(--lime) 100%);
    color: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.main-nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    overflow: hidden;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--white);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.open span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* --- Hero Banner --- */
.hero-banner {
    width: 100%;
    height: 250px;
    background-image: url("Untitled.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-style: italic;
}

.imgbox {
    display: grid;
    height: 100%;
}

.center-fit {
    max-width: 100%;
    max-height: 100vh;
    margin: auto;
}

.programme-figure {
    margin: 1.5rem 0 0;
    width: 100%;
}

.programme-schedule {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    border: 1px solid rgba(0, 51, 102, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

/* --- List Styling --- */
ul {
    list-style-position: inside;
    margin: 0;
    padding-left: 0;
    padding-bottom: 10px;
}

ul ul {
    list-style-position: inside;
    margin-left: 1.5rem;
    padding-bottom: 0;
}

/* --- Main Content --- */
main {
    background: var(--white);
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item {
    margin-bottom: 1.5rem;
}

.news-date {
    font-weight: bold;
    color: #d9534f;
}

main a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.25s ease;
}

main a:hover {
    color: var(--lime);
}

/* --- Sidebar --- */
aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-box {
    background: var(--navy);
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--lime);
}

.sidebar-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar-box ul {
    list-style-type: none;
    color: var(--white);
}

.sidebar-box ul li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--white);
}

.sidebar-box ul li span {
    font-weight: bold;
    display: block;
    color: var(--white);
}

.sidebar-box ul ul {
    list-style-position: inside;
    margin-left: 0;
    padding-bottom: 0;
}

/* --- Buttons --- */
.indico-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--navy);
    color: var(--white);
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 999px;
    margin-top: 1rem;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.indico-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: var(--lime);
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: #ccc;
    text-decoration: underline;
    margin: 0 10px;
    transition: color 0.25s ease;
}

footer a:hover {
    color: var(--lime);
}

.venue-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.venue-link-item {
    background: #f8fafc;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-radius: 10px;
    padding: 1rem;
}

.venue-link-item h3 {
    color: var(--navy);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.venue-link-item p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.venue-link-item a {
    font-weight: 600;
}

.map-preview {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
}

.map-preview img {
    transition: transform 0.25s ease;
}

.map-preview-hint {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.65rem 0.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-preview:hover img,
.map-preview:focus-visible img {
    transform: scale(1.025);
}

.map-preview:hover .map-preview-hint,
.map-preview:focus-visible .map-preview-hint {
    opacity: 1;
    transform: translateY(0);
}

.map-preview:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

@media (pointer: coarse) {
    .map-preview-hint {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-preview img,
    .map-preview-hint {
        transition: none;
    }

    .map-preview:hover img,
    .map-preview:focus-visible img {
        transform: none;
    }
}

/* --- Map --- */
.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.35s ease;
    }

    .main-nav.open .nav-links {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .container {
        grid-template-columns: 1fr;
    }

    .venue-links {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
