/* ==========================================================================
   1. Global Resets & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Serif', 'Palatino', Georgia, serif;
    color: #362828;
    line-height: 1.6;
    font-size: 16px;
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. Typography & Shared Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.red-title {
    color: #C91C1C;
    font-weight: normal;
    text-align: center;
}

.section-text {
    text-align: center;
    margin-bottom: 2rem;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 5rem;
    margin-bottom: 10px;
}

.header-list {
    font-size: larger;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #C91C1C;
}

/* ==========================================================================
   4. Layout Component: Grid
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 20px auto 0;
    text-align: center;
}

/* ==========================================================================
   5. Interactive Components: Slideshow & Buttons
   ========================================================================== */
.slideshow {
    max-width: 100%;
    height: 80vh;
    position: relative;
    margin: 0 auto;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow img.active {
    opacity: 1;
}

.recruit-cta {
    background-color: #fff;
    text-align: center;
}

.recruit-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #C91C1C;
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;
    font-family: 'Serif', 'Palatino', Georgia, serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.recruit-btn:hover {
    background-color: #1c0233;
}

/* ==========================================================================
   6. Forms & Inputs
   ========================================================================== */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #BF7777;
    font-family: 'Serif', 'Palatino', Georgia, serif;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border: 2px solid #615cab;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background-color: #C91C1C;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: 'Serif', 'Palatino', Georgia, serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #2f4c57;
}

/* ==========================================================================
   7. Navigation Menu Drawer (Mobile Overlay)
   ========================================================================== */
.openbtn {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #57a2c7;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    z-index: 100;
    /* Increased to stay over elements */
}

.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

.menu {
    transform: translateX(100%);
    transition: transform .5s ease;
    background-color: #ddd;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.95;
    /* Fixed incorrect percentage value */
}

.menu.active {
    transform: translateX(0);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
footer {
    background-color: #C91C1C;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* ==========================================================================
   9. Media Queries (Mobile Responsive)
   ========================================================================== */
@media (max-width: 640px) {
    .menu-grid {
        display: block;
    }

    .menu-item img {
        margin: 0 auto 10px;
        /* Centered layout for smaller viewports */
        display: block;
    }

    .access h2 {
        text-align: center;
        color: #C91C1C;
    }

    .recruit-staff {
        text-align: center;
        margin-bottom: 10px;
    }
}

.section-title {

    text-align: center;
}