/* CSS Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    font-family: "Sedgwick Ave Display", cursive, serif;
    font-size: 1.875rem;
    line-height: 1.6;
    color: hsla(0, 0%, 10%, 1);
    background-color: hsla(0, 0%, 95%, 1);
}

main, .contact {
    text-align: center;
}

.section {
    margin-bottom: 12.5rem;
    scroll-margin-top: 0.063rem;
} 

p {
    margin-bottom: 0.938rem;
}

img {
    width: 100%;
}


/* Header Section */
header {
    display: inline-flex;
    padding: 0.625rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1.25rem;
}

/* Navigation */
nav a {
    text-decoration: none;
    color: hsla(0, 0%, 10%, 1);
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0.625rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

nav a:hover {
    color: hsla(0, 0%, 50%, 1);
}

/* Hero Section */
.hero {
    background-image: url(../images/hero-img.jpg);
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 43.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    color: hsla(0, 0%, 95%, 1);
}    

/* About Us & Events Section */
#about-us, #join-us {
    padding: 2%;
    background-color: hsla(0, 0%, 60%, 1);
}

.photos figure {
    display: inline-block;
    align-content:space-around;
    margin: 1.875rem;
}

/* Join Us Section*/
.card img {
    border-radius: 0.75rem;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card {
    box-shadow: 0.375rem 0.375rem 0.75rem hsla(0, 0%, 0%, 0.75);
    border-radius: 0.75rem;
    max-width: 25rem;
    display: inline-block;
    margin: 0.625rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: hsla(0, 0%, 10%, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0.625rem 0.625rem 1.25rem hsla(0, 0%, 0%, 0.85);
}   

.card-body {
    padding: 1.563rem;
    margin: 0.625rem;
    background-color: hsla(0, 0%, 95%, 1);
    border-radius: 0.75rem;
    max-width: 25rem;
}    

.card a, footer a {
    text-decoration: none;
    color: hsla(0, 0%, 10%, 1);
}

/* Footer Section */
.contact {
    margin-bottom: 1.25rem;
}

/* Media Queries */
@media only screen and (max-width: 600px){
    .navbar ul {
        flex-direction: column; 
        align-items: center; 
    }
    .events img {
        width: 75%; 
    }
}

@media only screen and (max-width: 1048px) {

  .photos img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 640px) {

  .intro h1 {
    margin-top: 2rem;
  }

  .intro {
    max-height: 200px;
  }

  .photos img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  li {
    display: block;
    text-align: center;
  }
}

@media only screen and (max-width: 320px) {

  .testimonial h1 {
    font-size: 2rem;
  }

  .photos img {
    width: 100%;
  }
}