/* ================ 
Global Styles 
================ */
* {
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

body {
    background-color: rgb(201, 232, 252);
    font-family: "Patrick Hand", cursive;
}

main {
    position: relative;
/*    top: 150px; */
    margin: 40px auto;
    padding: 20px 30px 40px 30px;
    background-color: #FFFFFF;
    width:min(1200px,90%);
    border-radius: 4px;
    align-self: center;
}

section {
    margin: 20px 10px;
}


/* ==================== 
Header and Navigation 
==================== */
header {
    background-color: darkred;
}

header a {
    text-decoration: none;
}

.logo span {
    font-size: 32px;
    font-weight: bold;
    color: whitesmoke;
}

nav {
    background-color: lightcoral;
    box-shadow: 0 1px 5px black;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 10px;
  /*  font-size: 100%;
    font-weight: bold;
    margin: 2px;
    flex-wrap: wrap; */ 
}
nav li {
    margin: 0;
    
 /* min-height: 40px;  
    width: 25%;
    padding: 0;
    border: 4px solid black;
    
    
    align-items: center; */
    background-color: lightcoral;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    text-decoration: none;
    color: black;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
    font-size: 20px;
}

nav a:hover {
    color: whitesmoke;
    border-bottom: 2px solid whitesmoke;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid darkred;
    background-color: darkred;
    text-transform: uppercase;
}

.logo img {
    width: 60px;
    padding: 4px;
}

.logo span {
    font-size:clamp(1.6rem,5vw,2rem);
    font-weight: bold;
    color: whitesmoke;
}

/* =========================
   COMMUNITY DROPDOWN
   ========================= */

.dropdown {
    position: relative;
    z-index: 10;
}
/* Community button */

.dropdown-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;

    background: none;
    border: none;

    color: black;
    font-size: 20px;
    font-family: inherit;

    cursor: pointer;

    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
}

.dropdown-button:hover {
    color: whitesmoke;
    border-bottom: 2px solid whitesmoke;
}

.dropdown-button span {
    font-size: 0.8em;
    margin-left: 5px;
}

/* Dropdown menu */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background-color: #ffffff;
    min-width: 180px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    list-style: none;

    z-index: 1000;
} 

/* Dropdown links */

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: black;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
}


/* Hover effect */

.dropdown-menu a:hover {
    background-color: #f2f2f2;
    color: black;
}


/* Show dropdown */

.dropdown.open .dropdown-menu {
    display: block;
}

/* =========================
   COMMUNITY HUB PAGE
========================= */
/* COMMUNITY SECTIONS */

.community-section {
    margin-bottom: 45px;
}

.community-section h2 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #8b0000;
}

.community-section h3 {
    margin-bottom: 8px;
}

.community-section p {
    line-height: 1.6;
}

/* COMMUNITY CENTRE CARDS */

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.community-card {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.community-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.community-card p {
    margin-bottom: 0;
}

/* YOUTH CLUBS */

.youth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.youth-grid .community-card {
    text-align: center;
}

.youth-grid .community-card h3 {
    margin-bottom: 5px;
}

.youth-grid .community-card p {
    font-size: 1.1rem;
}

/* =========================
   COMMUNITY COMMITTEE
   ========================= */

/* ================ 
Profile Cards
================ */
.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.contact-detail-card {
    background-color: burlywood;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-detail-card h2 {
    margin: 15px 0 5px;
}

.contact-detail-card p {
    margin: 10px 0;
}

.committee-card {
    background-color: #f5f5f5;
    border: 2px solid #a90000;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.committee-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.committee-card p {
    max-width: 700px;
    margin: 12px auto;
}

.committee-card .button {
    display: inline-block;
    margin-top: 15px;
}

/* Community page for MOBILE responsive */
@media (max-width: 900px) {

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .youth-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

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

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

    .contact-details {
        grid-template-columns: 1fr;
    }
}

/* ================ 
    Hero Section
================ */
.hero {
    position: relative;
    margin-bottom: 30px;
}

.hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
}

.hero-text h1 {
    margin: 0 0 10px;
}

.hero-text p {
    margin: 0;
}

/* ================ 
 Home page buttons
================ */
.quick-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.quick-links a {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    background-color: lightgreen;
    border: 2px solid darkblue;
    text-align: center;
    text-decoration: none;
    color: black;
}

.quick-links a:hover {
    transform: translateY(-3px);
}

.quick-links h2 {
    margin-top: 0;
}

@media (max-width: 600px) {

    .quick-links {
        flex-direction: column;
    }

    .quick-links a {
        max-width: none;
    }

}

/* ================ 
Home page notices 
================ */
.notices {
    margin-top: 40px;
}

.notices + .notices {
    margin-top: 20px;
}

.notices article {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-left: 5px solid darkred;
}

.notices h3 {
    margin-top: 0;
}

/* ================ 
Introduction facility links for contact houses 
================ */

.facility-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px auto;
}

.facility-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 60px;
    padding: 12px 20px;

    background-color: #8f0000;
    color: white;

    text-decoration: none;
    text-align: center;

    border-radius: 8px;

    font-weight: bold;
}

.facility-links a:hover {
    background-color: #b00000;
}

/* ================ 
Slider for contact houses 
================ */
.slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.4s ease;
}

.slides img {
    width: 100%;
    min-width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.6);
    color: white;

    font-size: 25px;
    cursor: pointer;

    z-index: 2;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.previous {
    left: 15px;
}

.next {
    right: 15px;
}

.dots {
    text-align: center;
    margin: 15px 0 25px;
}

.dot {
    display: inline-block;

    width: 10px;
    height: 10px;

    margin: 0 5px;

    background-color: #ccc;
    border-radius: 50%;
}

.dot.active {
    background-color: #8f0000;
}

.facility {
    max-width: 1000px;
    margin: 0 auto 70px;
}

.facility h2 {
    text-align: center;
    margin-bottom: 25px;
}

.facility-image {
    max-width: 700px;
    margin: 0 auto;
}

.facility-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.facility-info {
    max-width: 700px;
    margin: 30px auto;
}

.facility-info h3 {
    margin-bottom: 10px;
}

.facility-info ul {
    padding-left: 20px;
    line-height: 1.8;
}

.facility-info li {
    margin-bottom: 5px;
}

/* ================ 
Buttons 
================ */
#button-group {
    display: flex;

}

.availability {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 30px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 10px;
    border: 2px solid #8f0000;
}

.availability h2 {
    margin-bottom: 10px;
}

.availability p {
    margin-bottom: 20px;
}

.button.book {
    display: inline-block;
    padding: 14px 35px;
    background-color: #8f0000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
}

.button.book:hover {
    background-color: #b00000;
}

.large-button {
    font-size: 4rem;
    text-decoration: none;
    width: 70%;
}


/* ================ 
Images
================ */
.timetable {
    min-width: 900px;
}

.calendar-wrap {
    overflow-x: auto;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.poster-item {
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.poster-item summary {
    padding: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    list-style-position: inside;
}

.poster-item summary:hover {
    background-color: #eeeeee;
}

.poster-item img {
    display: block;
    width: 100%;
    height: auto;
    padding: 0 20px 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .poster-grid {
        grid-template-columns: 1fr;
    }
}

/* ================
 Regular Activities
 ================*/

 .activity-days {
    margin-top: 30px;
}

.activity-day {
    margin-bottom: 15px;
    background-color: #f5f5f5;
    border-left: 5px solid darkred;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.activity-day summary {
    padding: 20px;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    list-style-position: inside;
}

.activity-day summary:hover {
    background-color: #eeeeee;
}

.activity-content {
    padding: 0 25px 25px;
}

.activity-content h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.activity-content p {
    margin-top: 5px;
    margin-bottom: 10px;
}

/* ================ 
Profile Cards
================ */
.profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.profile {
    background-color: burlywood;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    object-position: center 10%;
}

img.uwo-headshot {
    object-position: 60%;
}

.profile h2 {
    margin: 15px 0 5px;
}

.profile p {
    margin: 10px 0;
}
/*
.profile .role {
    font-weight: bold;
    margin-top: 0;
}
*/
.profile a {
    display: inline-block;
    margin-top: 10px;
}

/* ================ 
Components
================ */


.introduction {
    text-align: center;
    margin-bottom: 40px;
}

.introduction h1 {
    margin-bottom: 15px;
}

.introduction p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}




/* =========================
   FAQs
   ========================= */
.faq {
    max-width: 900px;
    margin: 50px auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq details {
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #f8f8f8;
}

.faq summary {
    padding: 18px 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
}

.faq details p {
    padding: 0 20px 20px 20px;
    margin: 0;
    line-height: 1.6;
}

/* =======================
  What's on
========================*/

.whats-on-links {
    margin-top: 40px;
}

.whats-on-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.whats-on-card {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.whats-on-card h3 {
    margin-top: 0;
}

.whats-on-card p {
    line-height: 1.6;
    margin-bottom: 25px;
}

@media (max-width: 700px) {

    .whats-on-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .whats-on-card {
        padding: 20px;
    }

}

/* =========================
   Footer
   ========================= */

footer {
    background-color: darkred;
    color: whitesmoke;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* =========================
   ORGANISATION CARDS
   ========================= */

.organisations {
    max-width: 1200px;
    margin: 0 auto;
}

.organisations > h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* =========================
   ORGANISATION DROPDOWNS
   ========================= */

.organisations details {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.organisations summary {
    padding: 20px 25px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #f5f5f5;
    border-left: 6px solid #8b0000;
    
    list-style-position: inside;
}

.organisations summary:hover {
    background-color: #eeeeee;
}

.organisations details[open] summary {
    background-color: #eeeeee;
}

/* CARD GRID */

.organisation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* INDIVIDUAL CARD */

.organisation-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
}

.organisation-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.organisation-card p {
    line-height: 1.5;
    margin-bottom: 20px;
}


/* WEBSITE BUTTON */

.organisation-card a {
    display: inline-block;
    margin-top: auto;
    padding: 10px 15px;

    background-color: #8b0000;
    color: white;
    text-decoration: none;
    text-align: center;

    border-radius: 6px;
    font-weight: bold;
}

.organisation-card a:hover {
    background-color: #5f0000;
}


/* =========================
   TABLET Organisation Cards
   ========================= */

@media (max-width: 900px) {

    .organisation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   MOBILE Organisation Cards
   ========================= */

@media (max-width: 600px) {

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

    .organisation-card {
        padding: 20px;
    }

}

/* ===================================================================================
Start of copied code 
Learn this at a later date - just using as a placeholder to get website ready to launch
Menu button - hidden on desktop 
====================================================================================*/

.menu-toggle {
    display: none;
}


/* MOBILE */
@media (max-width: 600px) {

    .menu-toggle {
        display: block;
        margin: 10px auto;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        color: whitesmoke;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    nav ul.show {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .profiles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile {
        padding: 20px;
    }

    .profile img {
        width: 110px;
        height: 110px;
    }

    .logo span {
        font-size: 20px;
    }

    .logo img {
        width: 55px;
    }

}
/* ===================================================================================
End of copied code 
====================================================================================*/

/* ================================
   LOCAL AREA PAGE
   ================================ */

.local-area > section:not(.introduction) {
    background-color: #f5f5f5;
    padding: 30px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.local-area > section:not(.introduction) h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid darkred;
}

.local-info-block {
    margin-top: 30px;
}

.local-info-block h3 {
    margin-bottom: 8px;
}

.local-info-block p {
    margin-top: 0;
}

.local-info-block ul {
    margin-top: 0;
}

.local-info-block a {
    color: darkred;
    font-weight: bold;
}

/* ====================
   Everyday Essentials
===================== */

.local-section {
    margin-bottom: 40px;
}

.local-section h2 {
    border-bottom: 2px solid darkred;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Dropdowns */

.local-section details {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

/* Dropdown headings */

.local-section summary {
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.local-section summary:hover {
    background-color: #eeeeee;
}

/* Divider when dropdown is open */

.local-section details[open] summary {
    border-bottom: 1px solid #ddd;
}

/* Individual businesses */

.local-section details > div {
    padding: 18px 25px;
    border-bottom: 1px solid #ddd;
}

.local-section details > div:last-child {
    border-bottom: none;
}

.local-section details h4 {
    margin: 0 0 5px 0;
}

.local-section details p {
    margin: 5px 0;
}

/* Directions button */

.local-section .directions-button {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 12px;
    background-color: darkred;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.local-section .directions-button:hover {
    background-color: #8b0000;
}

/* Mobile */

@media (max-width: 700px) {

    .local-section summary {
        padding: 18px 20px;
    }

    .local-section details > div {
        padding: 16px 20px;
    }

}

/*========================
   Booking form page
========================*/
.form-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
}

.form-sections {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #8b0000;
    border-radius: 8px;
}

.form-sections legend {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0 10px;
}

.form-sections input[type="text"],
.form-sections input[type="email"],
.form-sections input[type="tel"],
.form-sections input[type="date"],
.form-sections input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid lightcoral;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.form-sections input[type="radio"],
.form-sections input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.form-sections > label {
    display: block;
    margin-bottom: 5px;
}

.form-sections input[type="radio"] + label,
.form-sections input[type="checkbox"] + label {
    display: inline;
    margin-right: 15px;
}

.form-sections h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 10px;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 3px 0 0 0;
}

.checkbox-option label {
    display: inline;
}

/* Terms and Conditions */

.form-sections details {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.form-sections summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
}

.form-sections details p {
    line-height: 1.5;
    margin-bottom: 15px;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
}

.agreement input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 0;
}

.agreement label {
    display: inline;
    margin: 0;
}

/* Specific input widths */

#number-of-nights {
    width: 150px;
}

#mobile-number {
    max-width: 250px;
}

#arrival-date,
#departure-date {
    max-width: 250px;
}

#reason-of-booking {
    max-width: 500px;
}

#guest1 {
    max-width: 500px;
}

#petbreed {
    max-width: 400px;
}

#signiture {
    max-width: 500px;
}

/* Submit button */

#submit-request {
    width: auto;
    padding: 10px 25px;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

#submit-request:hover {
    background-color: #a00000;
}