/* Import Atkinson Hyperlegible from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --mind-orange: #f0ad4e;
    --mind-dark: #2c3e50;
}


body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

.poster-container {
    /* 1. Fluid Width with a Cap */
    width: 95vw;                /* Uses 95% of the viewport width on small screens */
    max-width: 90%;           /* Never grows larger than a standard A4 */
    
    /* 2. Maintain A4 Proportions */
 
    height: auto;               /* Allows height to be calculated based on width */
    
    /* 3. Layout and Aesthetics */
    padding: 5%;                /* Use percentage-based padding for scaling */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: white;
    border-top: 15px solid var(--mind-orange);
    
    /* 4. Overflow Handling */
    overflow-y: auto;           /* Adds a scrollbar if text overflows on tiny screens */
    margin: 20px auto;          /* Centers the poster on the webpage */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 24pt;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: var(--mind-dark);
    line-height: 1.1;
}

.hero-image {
    width: 100%;
    max-height: 80mm; /* Prevents image from squeezing out the text */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-strip {
    display: flex;
    justify-content: space-between;
    background: #f4f4f4;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 13pt;
    margin-bottom: 20px;
    border-radius: 4px;
}

.main-content {
    display: flex;
    gap: 30px;
   
    min-height: 0;
    margin-bottom: 20px;
}

.overview, .speakers {
    display: flex;
    flex-direction: column;
}

.overview { flex: 2; }
.speakers { flex: 1.2; }



h3 {
    margin-top: 0;
    font-size: 14pt;
    color: var(--mind-orange);
    text-transform: uppercase;
    border-bottom: 2px solid var(--mind-dark);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.overview p {
    font-size: 11.5pt;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.speakers ul {
    padding-left: 20px;
    margin: 0;
    font-size: 10.5pt;
}

.info-section {
    margin-top: 20px; /* Space between the speakers list and the new header */
}

/* Specifically target the header in this section to reduce the gap below the line */
.info-section h3 {
    margin-bottom: 4px; /* Reduced from previous 10px */
}

/* Remove the top margin from the paragraph to bring it closer to the line */
.info-section p {
    margin-top: 0;
    font-size: 10.5pt;
    line-height: 1.4;
  
}



footer {
    display: flex;

    gap: 15px;
    padding-top: 15px;
    border-top: 3px solid var(--mind-dark);

}

.qr-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    font-size: large;
}

.qr-code {
    width: 90px;
    height: 90px;
}

.funder-logos {
    display: flex;
    flex-direction: row;    /* Horizontal alignment */
    justify-content: center; /* Spreads logos to fill the full width */
    align-items: center;    /* Centers logos of different heights vertically */
    width: 100%;            /* Essential to fill the horizontal space */
    padding: 0mm;
    margin: 0mm;
}

.funder-logo {
    max-height: 80px;
    width: 80px;
    margin: 0mm 5mm;
    filter: grayscale(100%);
    opacity: 0.9;
}

@media print {
    body { background: none; padding: 0; }
    @page { size: A4; margin: 0; }
    .poster-container {
        width: 210mm;
        height: 297mm;
        border-top: 15px solid var(--mind-orange) !important;
    }
}

/* --- MOBILE RESPONSIVE FIX --- */
@media screen and (max-width: 768px) {
    .poster-container {
        /* 1. Disable fixed proportions */
        height: auto;           
        aspect-ratio: auto;     
        width: 95%;             
        padding: 20px;
        overflow: visible;      /* Allows content to flow naturally */
    }
    
/* 2. Stack the two-column layout into one column */
    .main-content {
        flex-direction: column; 
        gap: 25px;
    }

    /* 3. Adjust the footer for narrow screens */
    footer {
        margin-top: 30px;       /* Spacing after the text ends */
    }

    .qr-row {
        flex-direction: column; /* Stack QR code above text */
        text-align: center;
        align-items: center;
    }

/* Updated Logo Section */
    .funder-logos {
        flex-direction: column; /* Changes horizontal row to vertical stack */
        align-items: center;    /* Centers the logos horizontally in the stack */
        gap: 25px;              /* Increases vertical spacing between stacked logos */
        width: 100%;
    }

    .funder-logo {
        max-height: 50px;       /* Increased from 25px to make them more legible */
        width: auto;
        filter: grayscale(100%);
        opacity: 0.9;
    }
}