/* General Body Styling */
html, body {
    height: 100%;
    font-family: Palatino, URW Palladio L, serif;
    font-weight: 600;
    display: grid;
    place-items: start center; /* Align content at the top of the page */
    padding: 0;
    margin: 0;
    color: #333; /* Darker text color for contrast */
}
.background {
      background-image: url('../images/background_beige.jpg'); /* Adjust if needed */
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 100vh;
}

/* Adjusting the Main Content Section */
main {
    padding: 1.5rem;
    margin-top: 2rem; /* Add a little space between the menu and content */
}

/* Main Section Header Styling */
main > h1 {
    font-size: 2.25rem; /* Larger header for better visibility */
    margin-bottom: 1.5rem;
    color: #2a2a2a; /* Dark color for readability */
    text-align: center;
    font-weight: 700;
}

/* Accordion Styling */
.accordion {
    --circle-x: 1.8rem;
    --circle-y: 0;
    --circle-r: 200%;
    --circle-bg: #fff8e1; /* Lighter background for the accordion */
    background-color: var(--circle-bg);
    color: #2a2a2a;
    max-width: 56ch;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    display: grid;
    grid-template-rows: 0fr 0fr;
    transition: grid-template-rows 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
}

.accordion:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Accordion Content Styling */
.accordion .content {
    padding: 1.25rem;
    font-size: 1.1rem; /* Increase the size of the content */
    line-height: 1.6;
    background-color: #fdf6e3; /* Slightly different background for content */
    border-radius: 8px;
    opacity: 0.9;
}

/* Accordion Title Styling */
.accordion .title a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a2a2a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.accordion .title a:hover {
    color: #ff5722; /* Color change on hover */
}

.accordion .title a::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background: url("https://upload.wikimedia.org/wikipedia/commons/2/23/Font_Awesome_5_solid_chevron-down.svg") no-repeat center center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.accordion:target .title a::before {
    transform: rotate(180deg); /* Rotate chevron icon when section is expanded */
}

/* Ensure the navbar has some margin/padding for better alignment */
.navbar {
    padding: 0.75rem 1rem; /* Adjust padding around the navbar */
}

/* Align navbar items and manage spacing */
.navbar-nav {
    display: flex;
    justify-content: flex-end; /* Aligns navbar items to the right */
    gap: 1rem; /* Adds space between the items */
}

/* Adjust the navbar brand (logo) position */
.navbar-brand {
    font-size: 1.5rem; /* Adjust logo size */
    color: #333; /* Set logo color */
}

/* Adjust the navbar links */
.nav-link {
    font-weight: bold;
    color: #333;
    padding: 0.5rem 1rem;
}

/* On hover, change color of links */
.nav-link:hover {
    color: #555; /* Slightly darker color on hover */
}

/* Adjust the navbar toggler on smaller screens */
.navbar-toggler {
    border-color: transparent; /* Make toggler icon background transparent */
}


/* Footer and Links Styling */
menu {
    background-color: #ffebcd;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

/* Media Query for Screens 768px and below (Tablets and small devices) */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 14px;
    }

    main {
        width: 100%;
        padding: 0 1rem;
    }

    /* Adjust accordion content and titles */
    .accordion {
        margin-bottom: 0.5rem;
        max-width: 100%;
    }

    .accordion .title a {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .accordion .content {
        font-size: 1rem;
    }

    /* Navbar adjustments for smaller screens */
    nav {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }
}

/* Media Query for Small Mobile Devices */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .accordion .title a {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .accordion .content {
        font-size: 0.9rem;
    }

    .menu {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}
