/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px; /* Base font size */
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    /*padding: 20px; */
}

h1, h2, h3 {
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #81cc60;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
}

header h1 {
    margin: 10px 0;
}

ul {
    list-style: none;
}

li {
    background: white;
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
}

/* Responsive grid layout for team members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Card styles */
.card {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
}

.card a:hover {
    color: #0077cc; /* Change link color on hover */
    text-decoration: underline; /* Underline links on hover for clarity */
}

.team-grid .card {
    margin-bottom: 20px; /* Consistent bottom margin for cards */
}

/* Navigation styles */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333; /* Ensuring visibility */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.logo {
    height: 50px; /* Adjust based on your preference */
    vertical-align: middle;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    background-color: #333; /* Consistent background with nav-header */
}

.nav-links li {
    padding: 0px;
    background-color:#81cc60;
    text-align:center;
}

.nav-links a {
    color: #ffffff; /* Ensures text is visible */
    text-decoration: none;
    color:#222222;
    font-weight:bold;
    padding:10px;
    display:block;
}

.nav-links a:hover, .nav-links a.active, .nav-links a:focus, .nav-links li:hover {
    background-color: #71ff33; /* A different shade for active/hover state */
    box-shadow:0 0 20px #71ff33;
}

/* Media queries for responsive adjustments */
@media screen and (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        width: 100%; /* Full width */
        display: none; /* Hidden by default */
        position: absolute;
        top: 60px; /* Adjust based on actual navbar height */
        left: 0;
        right: 0;
        background-color: #333; /* Consistent background for expanded menu */
    }

    .nav-links.active {
        display: flex; /* Display when active */
        padding:15px;
    }

    .team_header { margin-top: -40px !important;}

    .hamburger {
        display: block;
    float: left;
    position: absolute;
    right: 28px;
    height: 51px;
    width: 50px;
    font-size: 40px;
    color: #81cc60;
    }

    .nav-header {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 10px; /* Space between logo and hamburger menu */
    }
}


/* Responsive text sizes */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5em; /* Smaller heading on small screens */
    }
    .team_header{margin-top:-40px !important;}
}

@media (min-width: 601px) and (max-width: 900px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75em; /* Medium heading on medium screens */
    }
}

@media (min-width: 901px) {
    h1 {
        font-size: 2em; /* Larger heading on large screens */
    }
}

/* Accessibility improvements */
a:focus, button:focus {
    outline: 2px dashed #0056b3;
    outline-offset: 3px;
}

@media screen and (max-width: 720px) {
  .nav-links li { min-width:118px;}
}
