@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Root Variables */
:root {
  --primary-color: rgba(17, 19, 23, 0.8); /* Semi-transparent primary color */
  --primary-color-light: rgba(31, 33, 37, 0.8); /* Semi-transparent light primary color */
  --primary-color-extra-light: rgba(53, 55, 59, 0.8); /* Semi-transparent extra light primary color */
  --secondary-color: rgba(249, 172, 84, 0.8); /* Semi-transparent secondary color */
  --secondary-color-dark: rgba(215, 148, 71, 0.8); /* Semi-transparent dark secondary color */
  --text-light: #d1d5db;
  --white: #ffffff;
  --max-width: 1200px;
}

/* Global Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: url('images/picture 5.jpeg') no-repeat center center/cover; /* Add background image */
  color: var(--text-light);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--primary-color-light);
  color: var(--white);
}

header .logo {
  max-width: 100px; /* Adjust the size of the logo */
  height: auto;
}

centered-logo {
  margin: 0 auto;
}

header h1 {
  margin: 0;
}

/* Navigation Styles */
nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin: 0 10px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: var(--secondary-color-dark);
}

nav a.active {
  background-color: #1c2c5b; /* Dark blue */
  color: rgb(247, 246, 246);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  background: var(--white);
  border-radius: 2px;
  height: 3px;
  margin: 2px 0;
  width: 25px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
}

/* Hero Section */
.hero {
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 36px;
  margin: 0;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
}

/* Sponsor Section */
.sponsor {
  margin-top: 20px;
  text-align: center;
}

.sponsor-logo {
  max-width: 50px; /* Same size as the team logo */
  height: auto;
  margin-top: 10px;
}

/* Main Content */
main {
  margin-top: 20px;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--white);
}

.section__subheader {
  max-width: 600px;
  margin: auto;
  text-align: center;
  color: var(--text-light);
}

/* Latest News Section */
.content {
  background-color: rgba(249, 249, 249, 0.5); /* More transparent background */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.content h2.section__header {
  font-size: 25px; /*latest news font size*/
  color: #333;
  margin-bottom: 10px;
}

.content p.section__subheader {
  font-size: 20px;
  color: #666;
  margin-bottom: 15px;
}

.content p {
  font-size: 20px; /* Increase the font size */
  color: #444;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Year Calendar Section */
#year-calendar {
  background-color: var(--primary-color-light);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

#year-calendar h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
}

#year-calendar .event {
  background-color: var(--primary-color-extra-light);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

#year-calendar .event h3 {
  color: var(--secondary-color-dark);
  margin-bottom: 10px;
}

#year-calendar .event p {
  color: var(--text-light);
  margin-bottom: 5px;
}

/* Gallery Section */
.gallery {
  padding: 20px;
  background-color: var(--primary-color-light); /* Semi-transparent background */
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  flex: 1 1 calc(25% - 20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 200px; /* Set a fixed height */
  object-fit: cover; /* Ensure the image covers the area while maintaining aspect ratio */
  display: block;
}

.gallery-item p {
  text-align: center;
  padding: 10px;
  background-color: var(--primary-color-extra-light); /* Semi-transparent background */
  margin: 0;
}

/* Gallery folder (tab) button styles */
.gallery-folder-btn {
  background: #1c2c5b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  margin: 0 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.gallery-folder-btn.active,
.gallery-folder-btn:focus,
.gallery-folder-btn:hover {
  background: var(--secondary-color-dark);
  color: #fff;
}

/* Team Section */
.team {
  padding: 20px;
  background-color: var(--primary-color-light);
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Default styles for mobile screens */
.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member {
  flex: 0 0 auto; /* Prevent the items from shrinking */
  text-align: center;
  background-color: var(--primary-color-extra-light);
  padding: 20px; /* Add padding to create a backdrop around the image */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  max-height: 300px; /* Set a maximum height */
  object-fit: contain; /* Ensure the entire image is visible within the container */
  border-radius: 10px; /* Adjust this value or remove it to change the shape */
  margin-bottom: 20px;
}

/* Adjust individual image positions */
.adjust-position-1,
.adjust-position-2,
.adjust-position-3,
.adjust-position-4,
.adjust-position-5,
.adjust-position-7 {
  object-position: center;
}

.adjust-position-6,
.adjust-position,
.adjust-position-top {
  object-fit: contain; /* Ensure the entire image is visible within the container */
  object-position: top; /* Adjust position to focus on the top part of the image */
}

.team-member h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 5px;
}

.team-member p {
  font-size: 14px;
  color: var(--text-light);
}

/* Styles for desktop screens */
@media (min-width: 768px) {
  .team-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-member {
    margin: 10px;
  }
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table, th, td {
  border: 1px solid var(--white);
}

th, td {
  padding: 12px;
  text-align: left;
}

tr:nth-child(even) {
  background-color: var(--primary-color-extra-light); /* Semi-transparent background */
}

/* Button Styles */
button {
  background-color: var(--secondary-color); /* Semi-transparent background */
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--secondary-color-dark); /* Semi-transparent background */
}

/* Footer Styles */
footer {
  background-color: var(--primary-color-light); /* Semi-transparent background */
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

.card-wrapper {
  max-width: var(--max-width);
  margin: 0 60px 35px;
  padding: 20px 10px;
  overflow: hidden;
}

/* sponsor logo in page */
.card-list .card-item{
list-style: none;
}

.card-list .card-item .card-link {
  user-select: none;
  display: block;
  background: #e9860525;
  padding: 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(10, 10, 10, 0.452);
  transition: 0.2s ease;
}

.card-list .card-item .card-link:hover {
  border-color: #1e2f63;
  box-shadow: 0 10px 10px rgba(253, 252, 252, 0.1);
}

.card-list .card-link .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.card-list .card-link .badge{
color: black;
padding: 8px 16px;
font-size: 0.95rem;
font-weight: 500;
margin: 16px 0 18px;
background: #f8a202b9;
width: fit-content;
border-radius: 50px;
}

.card-list .card-link .badge .Bene-Tech{
  color: #0703ec;
  background: #ffffff;
}

.card-list .card-link .badge .cozy corner{
  color: #f7e601;
  background: #000000;
}

.card-list .card-link .badge .Ngwane_Attorneys{
  color: #fd0202f8;
  background: #0210d1;
}


.card-list .card-link .card-title {
  font-size: 1.19rem;
  color: white;
  font-weight: 600;
}

.card-list .card-link .card-button{
  height: 35px;
  width: 35px;
  color: rgb(27, 73, 224);
  border-radius: 50%;
  margin: 30px 0 5px;
  background: none;
  cursor: pointer;
  border: 2px solid #0703ec;
  transform: rotate(-45deg);
  transition: 0.4s ease;

}

.card-list .card-link:hover .card-button{
  background: #0703ec;
  color: white;
}

.card-wrapper .swiper-pagination-bullets{
  height: 13px;
  width: 13px;
  opacity: 0.5;
  background: #0703ec57;
}

.card-wrapper .swiper-pagination-bullets-active{
  opacity: 1;
}

.card-wrapper .swiper-slide-button{
  color: #000000;
  margin-top: -35px;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .section__container {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .content h2.section__header {
    font-size: 22px;
  }

  .content p.section__subheader {
    font-size: 16px;
  }

  .content p {
    font-size: 14px;
  }

  .team-member h3 {
    font-size: 16px;
  }

  .team-member p {
    font-size: 12px;
  }

  .team-member {
    flex: 1 1 calc(25% - 20px);
  }
}

@media (max-width: 1024px) {
  .team-member {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: center;
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  table, th, td {
    font-size: 14px;
  }

  button {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    flex-direction: column;
  }

  .gallery-item {
    flex: 1 1 100%;
  }

  .team-grid {
    flex-direction: column;
  }

  .team-member {
    flex: 1 1 calc(50% - 20px);
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .section__header {
    font-size: 2rem;
  }

  .section__subheader {
    font-size: 16px;
  }

  .content h2.section__header {
    font-size: 20px;
  }

  .content p.section__subheader {
    font-size: 14px;
  }

  .content p {
    font-size: 12px;
  }

  .team-member h3 {
    font-size: 14px;
  }

  .team-member p {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  th, td {
    padding: 8px;
  }

  table, th, td {
    font-size: 12px;
  }

  button {
    padding: 8px 10px;
  }

  .team-member {
    flex: 1 1 100%;
  }

  .team-member img {
    height: auto; /* Allow the height to adjust based on the image aspect ratio */
    object-fit: contain; /* Ensure the entire image is visible within the container */
    object-position: center; /* Center the image within the container */
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 12px;
  }

  .section__header {
    font-size: 1.75rem;
  }

  .section__subheader {
    font-size: 14px;
  }

  .content h2.section__header {
    font-size: 18px;
  }

  .content p.section__subheader {
    font-size: 12px;
  }

  .content p {
    font-size: 10px;
  }

  .team-member h3 {
    font-size: 12px;
  }

  .team-member p {
    font-size: 8px;
  }
}