body {
    margin: 0;
    font-family: "Lato", Arial, sans-serif;
    background: #F5F1E6;
    color: #222;
}

/* ============================
   HERO + HEADER WITH INLINE LOGO
   ============================ */

.hero {
    background: url('templar-banner.jpg') center/cover no-repeat;
    padding: 40px 20px; /* reduced to fit text + logo nicely */
    color: #fff;
    background-color: #004040; /* fallback */
}

/* Container for text + logo */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;   /* keeps text + logo centered as a group */
    gap: 20px;
    flex-wrap: nowrap;         /* prevents logo from jumping above/below */
}

/* Text block */
.header-text {
    text-align: center;
}

.header-text h1 {
    margin: 0;
    font-size: 2rem;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 1.1rem;
}

/* Logo image */
.logo {
    width: 100px;   /* adjust as needed */
    height: auto;
}

/* Default desktop size */
.logo {
    width: 100px;
    height: auto;
}

/* Medium screens (tablets) */
@media (max-width: 900px) {
    .logo {
        width: 80px;
    }

    .header-text h1 {
        font-size: 1.7rem;
    }
}

/* Small screens (phones) */
@media (max-width: 600px) {
    .header-content {
        flex-wrap: wrap; /* allows text and logo to stack if needed */
        gap: 10px;
    }

    .logo {
        width: 70px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text p {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .logo {
        width: 60px;
    }

    .header-text h1 {
        font-size: 1.3rem;
    }
}

.small-hero {
    padding: 80px 20px;
}

/* ============================
   NAVIGATION
   ============================ */

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #000;
    padding: 10px;
    margin: 0;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    color: #C9A44C;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    border-bottom: 2px solid #C9A44C;
}

/* ============================
   MAIN CONTENT
   ============================ */

main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.intro,
.events-preview,
.content {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-left: 5px solid #7A0A0A;
}

h1, h2, h3 {
    font-family: "Playfair Display", "Times New Roman", serif;
}

/* ============================
   BUTTONS
   ============================ */

.button,
button {
    display: inline-block;
    background: #7A0A0A;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.button:hover,
button:hover {
    background: #5b0707;
}

/* ============================
   OFFICER LIST
   ============================ */

.officer-list {
    list-style: none;
    padding-left: 0;
}

.officer-list li {
    margin-bottom: 5px;
}

/* ============================
   GALLERY
   ============================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border: 3px solid #7A0A0A;
}

/* ============================
   FORMS
   ============================ */

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

/* ============================
   FOOTER
   ============================ */

footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #C9A44C;
    font-size: 0.9rem;
}
/* Default desktop size */
.logo {
    width: 100px;
    height: auto;
}

/* Medium screens (tablets) */
@media (max-width: 900px) {
    .logo {
        width: 80px;
    }

    .header-text h1 {
        font-size: 1.7rem;
    }
}

/* Small screens (phones) */
@media (max-width: 600px) {
    .header-content {
        flex-wrap: wrap; /* allows text and logo to stack if needed */
        gap: 10px;
    }

    .logo {
        width: 70px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text p {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .logo {
        width: 60px;
    }

    .header-text h1 {
        font-size: 1.3rem;
    }
}

