/* --- STYLES FROM IndexOld.html --- */

/* General Styling */
body {
    background-color: #E6E0F8;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 20px;
    color: #333;
}
/* Header Styling */
header {
    text-align: center;
    padding: 20px;
}
h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5em;
    color: #5D4037;
    margin: 0;
}
.subtitle {
    font-size: 1.2em;
    color: #795548;
    margin-top: 5px;
}
/* Timetable Grid Layout */
.timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}
/* Day Column Styling */
.day-column {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

/* Day Header Styling */
.day-header {
    position: relative;
    /* z-index: 1; <-- REMOVED this line to fix dropdown overlap */
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2em;
    color: #884513; /* Updated to new theme brown */
}

/* Brush Stroke Pseudo-element */
.day-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -120px;
    bottom: -120px;
    left: -10px;
    right: -10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

/* Assign brush stroke images */
.monday::before       { background-image: url('graphics/DayBlue.png'); }
.tuesday::before      { background-image: url('graphics/DayBlue2.png'); }
.wednesday::before    { background-image: url('graphics/DayPurple.png'); }
.thursday::before     { background-image: url('graphics/DayGreen.png'); }
.friday::before       { background-image: url('graphics/DayOrange.png'); }
.saturday::before     { background-image: url('graphics/DayPurple.png'); }
.sunday::before       { background-image: url('graphics/DayRed.png'); }

/* Event Card Styling */
.event-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* This line tells the browser to animate both properties smoothly */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

/* MODIFICATION: Add hover effect to the link wrapper */
.event-link:hover .event-card {
    transform: translateY(-5px);
    cursor: pointer;
    /* THIS IS THE CRUCIAL LINE THAT WAS MISSING */
    box-shadow: 0 8px 16px rgba(142, 68, 173, 0.3); /* Purple-ish shadow with more opacity */
}

/* NEW: Style for the link wrapper */
.event-link {
    text-decoration: none;
    color: inherit;
}

.time {
    font-weight: 700;
    font-size: 1.3em;
    color: #333;
    margin: 0 0 5px 0;
}
.name {
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    color: #5D4037;
    margin: 0 0 10px 0;
}
.details p {
    margin: 5px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.activity {
    font-style: italic;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px !important;
}

/* Icon Styling */
.details .location-icon::before { content: '📍'; margin-right: 8px; }
.details .cost-icon::before { content: '💰'; margin-right: 8px; }
.details .info-icon1::before { content: '🎟️'; margin-right: 8px; }
.details .info-icon2::before { content: '👶'; margin-right: 8px; }
.details .info-icon3::before { content: '🗓️'; margin-right: 8px; }
.details .info-icon4::before { content: '💸'; margin-right: 8px; }


/* --- STYLES FROM EventOld.html (scoped to .event-page) --- */

/* Scoped body tag to only apply flex layout to event page */
body.event-page {
    display: flex;
    justify-content: center;
}
.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 800px;
    width: 100%;
    padding: 20px 30px 30px 30px;
    margin: 20px;
}
/* Scoped h1 to apply specific font size only to event page */
.event-page h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2em;
    color: #5D4037;
    margin-top: 0;
    margin-bottom: 5px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.detail-item { font-size: 1.1em; line-height: 1.5; }
.detail-item strong { color: #5D4037; }
.info-section { margin-top: 20px; }
.info-section h3 {
    font-family: 'Fredoka', sans-serif;
    color: #795548;
    border-bottom: 2px solid #E6E0F8;
    padding-bottom: 5px;
}
.info-section p, .info-section a {
    font-size: 1.05em;
    line-height: 1.6;
    word-break: break-all;
}
/* Scoped link styles to only apply to links on the event page */
.event-page a {
    color: #8E44AD;
    text-decoration: none;
}
.event-page a:hover { text-decoration: underline; }
.back-link {
    display: inline-block;
    margin-bottom: 25px;
    font-weight: bold;
}


/* --- STYLES FOR providers.html --- */

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; 
    margin-top: 15px;
}

.provider-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; 
    box-sizing: border-box;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(142, 68, 173, 0.3);
}

.provider-card h4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    color: #5D4037;
    margin: 0 0 10px 0;
}

.provider-card p {
    margin: 5px 0;
    font-size: 0.95em;
    line-height: 1.4;
    flex-grow: 1; 
}

.provider-contact-links {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px 15px; 
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: auto; 
}

.provider-contact-links a {
    color: #8E44AD;
    text-decoration: none;
    font-weight: bold;
}

.provider-contact-links a:hover {
    text-decoration: underline;
}

/* Make provider page container transparent */
body.providers-page .container {
    background-color: transparent;
    box-shadow: none;
}

/* --- NEW: PROVIDER PAGE HEADER --- */
/* Applies the blue brush stroke to all provider category headers */
.category-header-blue::before {
    background-image: url('graphics/DayBlue.png');
}

/* --- NEW: PROVIDER LINK ICONS --- */
/* Prepends icons to the provider contact links */
.provider-website::before {
    content: '🌐';
    margin-right: 6px;
}
.provider-facebook::before {
    content: 'ⓕ';
    margin-right: 6px;
}
.provider-email::before {
    content: '✉️';
    margin-right: 6px;
}
.provider-telephone::before {
    content: '📞';
    margin-right: 6px;
}

/* ================================================= */
/* Back to Home Button                               */
/* ================================================= */
.back-link {
    display: inline-block; /* Keeps it in the flow */
    padding: 8px 16px; /* Creates the button shape */
    margin: 10px 0 15px 20px; /* Positions it */
    
    background-color: #F7D284; /* Theme Yellow */
    color: #884513; /* Theme Brown */
    
    font-family: 'Fredoka', sans-serif; /* Use the header font for punch */
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    
    border: none;
    border-radius: 20px; /* This creates the "pill" shape */
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.back-link:hover {
    background-color: #E7A45C; /* Theme Orange */
    color: #FFFFFF;
    text-decoration: none; /* Remove any default underline on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Noticeboard Styles --- */
#noticeboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
    min-height: 100px; /* Prevents it from collapsing while loading */
}

.notice-card {
    position: relative;
    /* MODIFIED: A darker, more saturated parchment/beige */
    background-color: #F0E2B6; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 25px 15px 15px 15px; /* Extra padding at the top for the "pin" */
    
    transform: rotate(var(--card-rotation, 0deg)); 
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.notice-card:hover {
    transform: rotate(var(--card-rotation, 0deg)) scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10; 
}

/* This creates the "Pin" emoji at the top */
.notice-card::before {
    content: '📌';
    position: absolute;
    top: 2px;
    left: 50%;
    
    transform: translateX(-50%) rotate(var(--pin-rotation, 0deg));
    filter: hue-rotate(var(--pin-color-angle, 0deg));
    
    font-size: 1.8em;
    opacity: 0.9;
}

.notice-card img {
    /* Set to 75% width and centered */
    width: 75%;
    display: block;
    margin: 0 auto;
    
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

/* Text that goes WITH an image */
.notice-card .notice-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

/* Text that appears with NO image */
.notice-card .notice-text-no-image {
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.4;
    color: #884513; /* Theme brown */
    text-align: center;
    padding: 10px 0 0 0; /* A bit of padding */
    margin: 0;
}
/* --- End Noticeboard Styles --- */

/* ================================================= */
/* Footer Styles                                     */
/* ================================================= */
footer {
    text-align: center;
    padding: 25px 20px; /* Add breathing room */
    margin-top: 40px; /* Space above the footer */
    width: 100%;
    
    /* A very light separator line */
    border-top: 1px solid #dcd6f0; 
}

footer p {
    margin: 0;
    font-size: 0.9em;
    color: #795548; /* A subtle, on-theme brown */
}

/* This is the hidden admin link */
footer .admin-link {
    text-decoration: none; /* No underline */
    color: inherit; /* Use the same brown color */
    cursor: pointer;
}

/* A subtle hover, just for you */
footer .admin-link:hover {
    color: #8E44AD; /* Theme purple */
}