/* ---------- Add to style.css ---------- */

/* Option A: Background on body (recommended) */
body {
    background: #0b0b0b;
    /* fallback color */
    background-image: url('/assets/img/main_logo2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    /* ... rest of existing body styles ... */
}

/* Make canvas fully transparent so background shows through */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
    /* Remove any background from canvas */
}

/* ----- main card ----- */
.portal {
    position: relative;
    z-index: 10;
    max-width: 780px;
    width: 100%;
    background: rgba(20, 10, 30, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 3.5rem 1rem 3.5rem 1rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(180, 80, 200, 0.15), 0 0 0 1px rgba(200, 130, 220, 0.2);
    border: 1px solid rgba(210, 140, 230, 0.15);
    transition: box-shadow 0.2s;
}

h1 {
    font-family: 'Franklin Gothic Medium', 'Franklin Gothic', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 3.2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #d9b0ff 0%, #f8b0d0 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(200, 120, 240, 0.2);
}

.subhead {
    font-family: 'Roboto', 'Franklin Gothic Medium', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #cab0e6;
    margin-bottom: 2rem;
    border-left: 3px solid #d9a0f0;
    padding-left: 1.2rem;
    background: linear-gradient(90deg, #e6c0ff20, transparent);
}

.description {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d6c4ea;
    margin-bottom: 2.5rem;
    padding: 0.6rem 1rem;
    background: rgba(180, 120, 210, 0.05);
    border-radius: 2rem 0.5rem 2rem 0.5rem;
    border: 1px solid rgba(200, 130, 220, 0.15);
}

.event-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 1.8rem;
}

.event-card {
    background: rgba(30, 15, 40, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 2rem 0.8rem 2rem 0.8rem;
    padding: 1rem 1.8rem;
    border: 1px solid rgba(200, 130, 230, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
}

.event-card:hover {
    background: rgba(60, 30, 80, 0.5);
    border-color: #c98edb;
    box-shadow: 0 0 20px rgba(190, 120, 220, 0.1);
    transform: scale(1.01);
}

.event-year {
    font-family: 'Franklin Gothic Medium', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    color: #f2c8ff;
    min-width: 60px;
    letter-spacing: 0.5px;
}

.event-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #dbc6f0;
    flex: 1;
}

.event-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #f0b8e0;
    text-decoration: none;
    border-bottom: 1px dashed #b482d0;
    padding-bottom: 1px;
    transition: 0.2s;
    margin-left: auto;
    white-space: nowrap;
}

.event-link:hover {
    color: #ffc8f0;
    border-bottom: 1px solid #eaaaff;
    letter-spacing: 0.3px;
}

.highlight-note {
    font-family: 'Roboto', 'Franklin Gothic Medium', sans-serif;
    font-weight: 300;
    background: rgba(180, 80, 200, 0.08);
    border-radius: 2rem;
    padding: 0.8rem 1.5rem;
    margin-top: 1.8rem;
    display: inline-block;
    border: 1px solid rgba(210, 130, 230, 0.2);
    color: #dbb8f0;
    font-size: 0.95rem;
    backdrop-filter: blur(2px);
}

.highlight-note strong {
    color: #f2b0e6;
    font-weight: 500;
}

.footer-meta {
    margin-top: 2.2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8f74aa;
    text-align: right;
    border-top: 1px solid rgba(200, 130, 220, 0.1);
    padding-top: 1rem;
    letter-spacing: 0.5px;
}

/* ----- background canvas ----- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* ----- responsive ----- */
@media (max-width: 550px) {
    .portal {
        padding: 2rem 1.2rem;
        border-radius: 2.5rem 0.8rem 2.5rem 0.8rem;
    }
    h1 {
        font-size: 2.4rem;
    }
    .subhead {
        font-size: 1rem;
        padding-left: 0.8rem;
    }
    .event-card {
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
    }
    .event-link {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }
}

/* ---------- Add to style.css ---------- */

/* Subpage specific styles */
.subpage .portal {
    max-width: 820px;
    /* Slightly wider for image content */
}

/* Image container styles */
.image-container {
    margin: 1.5rem 0 2rem 0;
    border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(210, 140, 230, 0.15);
    background: rgba(20, 10, 30, 0.3);
    position: relative;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    /* Maintains aspect ratio */
    max-height: 500px;
    /* Prevents images from being too tall */
    object-fit: cover;
    /* Crops to fill container while maintaining ratio */
    object-position: center;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* Image caption */
.image-caption {
    padding: 0.8rem 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #b09ac8;
    background: rgba(20, 10, 30, 0.4);
    border-top: 1px solid rgba(210, 140, 230, 0.1);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Gallery grid for multiple images */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0 2rem 0;
}

.image-gallery .image-container {
    margin: 0;
}

.image-gallery .image-container img {
    max-height: 300px;
}

/* Side-by-side image with text */
.image-text-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0 2rem 0;
    flex-wrap: wrap;
}

.image-text-row .image-container {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.image-text-row .text-content {
    flex: 1;
    min-width: 200px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #d6c4ea;
    line-height: 1.7;
}

.image-text-row .text-content p {
    margin-bottom: 0.8rem;
}

/* Full-width hero image */
.hero-image {
    margin: -2rem -2.5rem 2rem -2.5rem;
    /* Extends to card edges */
    border-radius: 3.5rem 1rem 0 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(210, 140, 230, 0.15);
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-text-row {
        flex-direction: column;
        gap: 1rem;
    }

    .image-text-row .image-container {
        width: 100%;
    }

    .image-text-row .text-content {
        width: 100%;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .hero-image {
        margin: -1.5rem -1.2rem 1.5rem -1.2rem;
        border-radius: 2.5rem 0.8rem 0 0;
    }

    .hero-image img {
        max-height: 250px;
    }

    .image-container img {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .image-gallery .image-container img {
        max-height: 200px;
    }
}