*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: visible;
}

main {
    padding-top: 1rem;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Georgia;
    background: #fff;
    overflow-x: visible;
    /*min-height: 100vh;
    display: grid;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: Georgia;*/
}


nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
}

nav > ul:not(.sidebar) {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}

nav li {
    height: 50px;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}

nav a:hover {
    /*background-color: #f0f0f0;*/
    background-color: rgba(0, 0, 0, 0.1);
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
    justify-content: flex-start;
}

.sidebar a {
    width: 100%;
}

.menu-button{
    display: none;
}

header {
    min-height: 70vh;
    background-image: url('../images/tbc_pic_front_angle2.jpeg');
    /*background-repeat: no-repeat;*/
    background-size: cover;
    background-position: center;
    /*background-color: transparent;
    height: 800px;*/
    place-items: center;
    text-align: center;
    display: grid;
    /*flex-direction: column;
    justify-content: center;*/
    padding: 4rem 1rem;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

header h1 {
    position: relative;
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/*.about-us-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: #f4f4f4;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.about-us-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}*/

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 1rem;
}

.about-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;

    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /*max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;*/
}

.about-split img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    /*border-radius: 10px;
    margin-bottom: 2rem;*/
}

.about-text {
    text-align: left;
}

.about-text h2 {
    margin-bottom: 0.75rem;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 52ch;
}

.about-text address h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    text-align: center;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border:  1px solid rgba(0,0,0,0.12);
    width: 100%;
    box-sizing: border-box;
}

.activity-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
}

.activity-content h3 {
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.activity-content p {
    margin: 0;
    line-height: 1.4;
}

.activity-content ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 600px) {
    header {
        min-height: 45vh;
        padding: 3rem 1rem;
    }
}

@media (max-width: 800px) {
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block; 
    }
}

@media (max-width: 400px) {
    .sidebar{
        width: 100%;
    }
}

@media (max-width: 800px) {
    .about-split {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .about-split img {
        height: 240px;
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 900px) {
    .activity-card {
        max-width: 520px;
        margin: 0 auto;
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
    }

    .activity-content h3 {
        margin-top: 0.75rem;
    }

    .activity-card img {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 1000px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

/*@media (max-width: 800px) {
    .about-us-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }
}*/

/* This is to see what is out of line
* { outline: 1px solid rgba(255,0,0,0.15); }
*/
footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
}
