* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
}
/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Navbar Styling */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    z-index: 1000;
}

#navbar.scrolled {
    background-color: #97e6f9e6;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.2s;
}

nav a:hover {
    color: #555;
}

/* Hero Section */
#hero-main {
    background: url('bg.JPG') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    text-shadow: rgb(0, 0, 0) 3px 0px 0px, rgb(0, 0, 0) 2.83487px 0.981584px 0px, rgb(0, 0, 0) 2.35766px 1.85511px 0px, rgb(0, 0, 0) 1.62091px 2.52441px 0px, rgb(0, 0, 0) 0.705713px 2.91581px 0px, rgb(0, 0, 0) -0.287171px 2.98622px 0px, rgb(0, 0, 0) -1.24844px 2.72789px 0px, rgb(0, 0, 0) -2.07227px 2.16926px 0px, rgb(0, 0, 0) -2.66798px 1.37182px 0px, rgb(0, 0, 0) -2.96998px 0.42336px 0px, rgb(0, 0, 0) -2.94502px -0.571704px 0px, rgb(0, 0, 0) -2.59586px -1.50383px 0px, rgb(0, 0, 0) -1.96093px -2.27041px 0px, rgb(0, 0, 0) -1.11013px -2.78704px 0px, rgb(0, 0, 0) -0.137119px -2.99686px 0px, rgb(0, 0, 0) 0.850987px -2.87677px 0px, rgb(0, 0, 0) 1.74541px -2.43999px 0px, rgb(0, 0, 0) 2.44769px -1.73459px 0px, rgb(0, 0, 0) 2.88051px -0.838247px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
#hero {
    background: url('bg.JPG') no-repeat center/cover;
    background-position: 0px 20%;
    height: 40vh;
    color: #fff;
    text-shadow: rgb(0, 0, 0) 3px 0px 0px, rgb(0, 0, 0) 2.83487px 0.981584px 0px, rgb(0, 0, 0) 2.35766px 1.85511px 0px, rgb(0, 0, 0) 1.62091px 2.52441px 0px, rgb(0, 0, 0) 0.705713px 2.91581px 0px, rgb(0, 0, 0) -0.287171px 2.98622px 0px, rgb(0, 0, 0) -1.24844px 2.72789px 0px, rgb(0, 0, 0) -2.07227px 2.16926px 0px, rgb(0, 0, 0) -2.66798px 1.37182px 0px, rgb(0, 0, 0) -2.96998px 0.42336px 0px, rgb(0, 0, 0) -2.94502px -0.571704px 0px, rgb(0, 0, 0) -2.59586px -1.50383px 0px, rgb(0, 0, 0) -1.96093px -2.27041px 0px, rgb(0, 0, 0) -1.11013px -2.78704px 0px, rgb(0, 0, 0) -0.137119px -2.99686px 0px, rgb(0, 0, 0) 0.850987px -2.87677px 0px, rgb(0, 0, 0) 1.74541px -2.43999px 0px, rgb(0, 0, 0) 2.44769px -1.73459px 0px, rgb(0, 0, 0) 2.88051px -0.838247px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.5rem;
}

/* === New isolated Senior Buddies team cards CSS === */

.sb-team-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sb-team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.sb-team-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-left: 5px solid #97e6f9e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.sb-team-card:hover {
    cursor: pointer;
}

.sb-team-card img {
    width: 150px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.sb-team-info {
    padding: 15px;
    flex: 1;
}

.sb-team-info h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
}

.sb-team-info h4 {
    margin: 5px 0 10px 0;
    font-weight: normal;
    color: #97e6f9e6;
}

.sb-team-info p {
    font-size: 0.9em;
    color: #555;
    margin: 6px 0;
}

.sb-team-contact {
    margin-top: 10px;
    font-size: 0.85em;
}

/* Responsive: 3 cards per row on wide screens */
@media (min-width: 900px) {
    .sb-team-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* Stack cards vertically on small screens */
@media (max-width: 500px) {
    .sb-team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sb-team-card img {
        width: 100%;
        height: auto;
    }

    .sb-team-info {
        padding: 10px;
    }
}

.hover-link:hover {
    color: #0d6efd !important;
    /* Bootstrap primary */
    background-color: #e7f1ff;
    transition: background-color 0.2s, color 0.2s;
}

.navbar-brand:hover {
    color: #0d6efd !important;
    transition: color 0.2s;
}

article a {
    text-decoration: none;
}

#titl {
    background-color: #cecece;
}

main h2 {
    text-align: center;
    padding-top: 20px;
}
