:root{
  --navy: #2F4156;
  --teal: #567C8D;
  --sky-blue: #C8D9E6;
  --beige: #F5EFEB;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(47, 65, 86, 0.12);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  min-height: 100vh;
  padding: 20px;
  color: var(--navy);
}

.page-container{
  max-width: 1400px;
  margin: 0 auto;
  background: var(--beige);
  border-radius: 36px;
  min-height: 100vh;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header{
  width: 100%;
  padding: 28px 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo{
  justify-self: start;
}

.logo img{
  height: 135px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover{
  transform: scale(1.4);
}

.navbar{
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.45);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(47, 65, 86, 0.08);
}

.navbar a{
  text-decoration: none;
  color: var(--navy);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar a:hover{
  background: var(--sky-blue);
  color: var(--navy);
}

.navbar a.active{
  background: var(--teal);
  color: var(--white);
}

.menu-icon{
  display: none;
  justify-self: end;
  font-size: 2rem;
  color: var(--navy);
  cursor: pointer;
}

/* HERO */
.clubs-hero{
  text-align: center;
  padding: 30px 50px 24px;
}

.clubs-hero h1{
  font-size: 3rem;
  margin-bottom: 18px;
  color: var(--navy);
}

.clubs-hero p{
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #42596b;
}

/* CLUBS SECTION */
.clubs-section{
  padding: 35px 45px 70px;
}

.clubs-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.club-card{
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(47, 65, 86, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(47, 65, 86, 0.14);
}

.main-photo{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.club-content{
  padding: 22px 20px 24px;
}

.club-content h2{
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}

.club-content h3{
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 12px;
  font-weight: 700;
}

.club-content p{
  font-size: 0.96rem;
  color: #42596b;
  line-height: 1.7;
  margin-bottom: 18px;
}

.club-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-tags span{
  background: rgba(86, 124, 141, 0.12);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
}

/* FOOTER */
.footer-social{
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 30px 0 24px;
  margin-top: auto;
}

.footer-social a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--sky-blue);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover{
  background: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-rights{
  text-align: center;
  padding: 18px 0 26px;
  color: var(--beige);
  font-size: 16px;
  letter-spacing: 0.4px;
}

/* TABLET */
@media (max-width: 1100px){
  .header{
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .logo{
    justify-self: center;
  }

  .navbar{
    justify-self: center;
    flex-wrap: wrap;
  }

  .clubs-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 768px){
  body{
    padding: 12px;
  }

  .page-container{
    border-radius: 24px;
  }

  .header{
    position: relative;
    grid-template-columns: 1fr auto;
    padding: 20px;
    align-items: center;
  }

  .logo{
    justify-self: start;
  }

  .logo img{
    height: 75px;
  }

  .menu-icon{
    display: block;
  }

  .navbar{
    display: none;
    position: absolute;
    top: 110px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    background: var(--beige);
    box-shadow: 0 10px 24px rgba(47, 65, 86, 0.12);
    z-index: 1000;
  }

  .navbar.active{
    display: flex;
  }

  .navbar a{
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .clubs-hero{
    padding: 24px 20px 16px;
  }

  .clubs-hero h1{
    font-size: 2.3rem;
  }

  .clubs-hero p{
    font-size: 1rem;
    line-height: 1.7;
  }

  .clubs-section{
    padding: 28px 20px 50px;
  }

  .clubs-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .main-photo{
    height: 210px;
  }

  .footer-social{
    padding: 24px 0 18px;
  }

  .footer-social a{
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .footer-rights{
    font-size: 14px;
    padding: 14px 0 20px;
  }
}

/* VERY SMALL */
@media (max-width: 320px){
  body{
    padding: 6px;
  }

  .page-container{
    border-radius: 18px;
  }

  .header{
    padding: 14px 10px;
  }

  .logo img{
    height: 50px;
  }

  .navbar{
    top: 82px;
    left: 8px;
    right: 8px;
    padding: 12px;
    border-radius: 18px;
  }

  .navbar a{
    font-size: 0.9rem;
    padding: 9px 10px;
  }

  .clubs-hero{
    padding: 18px 12px 12px;
  }

  .clubs-hero h1{
    font-size: 1.8rem;
  }

  .clubs-hero p{
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .clubs-section{
    padding: 22px 12px 36px;
  }

  .main-photo{
    height: 170px;
  }

  .club-content{
    padding: 16px 14px 18px;
  }

  .club-content h2{
    font-size: 1rem;
  }

  .club-content h3{
    font-size: 0.84rem;
  }

  .club-content p{
    font-size: 0.85rem;
  }

  .club-tags span{
    font-size: 0.74rem;
    padding: 6px 9px;
  }

  .footer-social{
    gap: 10px;
    padding: 18px 0 14px;
  }

  .footer-social a{
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer-rights{
    font-size: 11px;
    padding: 10px 0 14px;
  }
}
