main{
    display: flex;
    flex-direction: column;
    margin: 5vw;
}

.first{
   padding-top: 5vw;

}

.background-sec{
  background-image: url('../../assets/green-blue-gradient-top.svg');
  background-repeat: no-repeat;
  background-size: cover; /* ali 'contain' ali določene mere */
  background-position: center;
  margin-top: -5vw;
}

.atleti-info {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: horizontal;
}

.atleti-info h1 {
    color: black;
    font-size: 3rem;
}

.atleti-info hr {
    width: 100%;
    margin: 10px 0;
}

.atletska-sola img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
}

.atletska-sola img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.description-main, .atletska-sola{
    display: flex;
    justify-content: center;
}

.description-main {
    width: 50%;
    flex-direction: column;
    padding-left: 10vw;
}

.atletska-sola {
    align-items: center;
    width: 50%;
}

.sub-nav {
    display: flex;
    flex-direction: row; /* Use 'row' instead of 'horizontal' */
    color: Black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    height: 8vh;
    width: 100%;
    align-items: center;
    position: sticky;
    top: 0; /* Make the element stick to the top */
    z-index: 1000; /* Ensure it appears above other content */
    background-color: #fff; /* Optional: set a background color to avoid transparency issues */
}


.sub-nav ul {
    list-style: none;
}

.sub-nav li{
    float: left;
    margin: 0 5vw 0 5vw;
}

.sub-nav a {
    color: black;
    text-decoration: none;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}

.sub-nav a:hover {
    text-decoration: underline;
    color: #333; /* po želji, da dodaš subtilen efekt */
}


.vodstvo, .trenerji, .sodniki {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../../assets/green-blue-gradient-top.svg);
    background-size: cover; /* Adjust as necessary */
    background-repeat: no-repeat; /* Prevents repeating */
    background-position: center; /* Centers the image */
}

.vodstvo, .trenerji {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.naslov-vodstvo, .naslov-trenerji, .naslov-sodniki {
    margin: 2vh 2vw;
    font-size: 2rem;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.naslov-vodstvo p, .naslov-trenerji p, .naslov-sodniki p{
    font-size: 1.2rem;
}

.content {
    margin-right: 5vw;
    margin-left: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5vh;
}

/* Styling for article text */
article {
    text-align: justify;
    font-size: 20px;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
    max-width: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article {
        font-size: 2rem;
    }
}

/* Adjust margin for the profile section */
.profile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Distribute the profile cards evenly */
    gap: 20px; /* Space between cards */
    width: 90vw; /* Optional: limit the width of the profile section */
}

/* Profile card styling */
.profile-card {
    width: 23%; /* Adjust width so 4 cards fit in a row */
    text-align: center;
    padding: 20px;
    margin: 10px 0; /* Vertical margin */
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: inline-block;
    box-sizing: border-box;
    background-color: white;
}

.profile-card img {
    width: 100%;
    border-radius: 50%;
}

.profile-card h2, .profile-card h3, .profile-card .email, .profile-card .roles {
    margin: 5px 0;
}

/* Placeholder profile picture */
.empty-pfp {
    width: 150px;
    height: 150px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    color: #aaa;
    margin: 0 auto;
}

/* Make roles appear consistently */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.roles {
    margin-top: auto; /* Push roles to the bottom */
    font-size: 16px;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .custom-shape {
        width: 80%; /* Adjust width on smaller screens */
    }

    .left-text h2 {
        font-size: 2rem; /* Adjust text size */
    }

    .right-text p {
        font-size: 1rem; /* Adjust paragraph size */
    }

    .profile-container {
        margin-top: 12vh; /* Adjust for responsive design */
    }
}

@media (max-width: 600px) {
    .custom-shape {
        flex-direction: column;
        height: auto; /* Allow height to adjust */
        border-radius: 0; /* Remove roundness on mobile for simplicity */
    }

    .vertical-line {
        height: 2px;
        width: 80%;
        margin: 20px auto;
    }

    .right-text {
        text-align: center; /* Center-align text on mobile */
    }

    .profile-container {
        margin-top: 10vh; /* Adjust for smaller screens */
    }
}

p{
    font-size: 1.1rem;

}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 enaki stolpci */
    gap: 2vh 10vw; /* razmik med elementi */
}

.team-grid > div {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fff;
}

.profile-pic {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  overflow: hidden;
}

.profile-pic img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  object-position: top; /* odreže spodnji del slike */
}

.member-name {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.contact-info {
  text-align: left;
  padding: 0 1rem;
  font-size: 0.95rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20vw; /* razmak med karticami */
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 20vh;
}

@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

.staff-desc{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto 0;
    height: fit-content;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 4rem 2rem;
    border-radius: 15px;
}

.staff-members {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* dva enaka stolpca */
  gap: .5rem; /* razmik med elementi */
  justify-items: left; /* poravnava vsebine v stolpcih */
  width: 30vw;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}


.staff-member {
  flex: 1 1 calc(50% - 2rem); /* vsak zavzame približno polovico prostora minus razmik */
  box-sizing: border-box;
  max-width: max-content; /* po želji omeji širino posameznega */
}

@media (max-width: 768px) {
  .staff-members {
    grid-template-columns: 1fr;
  }
}

.team-title{
    margin: 0 auto;
    width: 25vw;
    text-align: center  ;
    margin-bottom: 10vh;
}

.reff-grid {
  width: 100%;
  margin-top: 5vh;
}

.reff-grid .columns-container {
  display: flex;
  justify-content: space-between; /* Levo, sredina, desno */
  align-items: center;
}

.reff-grid .column {
  flex: 0 0 auto; /* Ne razteguje se */
}

.reff-grid .center {
  text-align: center;
  margin: 0 auto;
}

.reff-title{
  margin: 0 0 10vh 0;

}

.staff-member p{
  white-space: nowrap;       /* Ne dovoli preloma vrstice */
  text-align: left;       /* Poravnava obojestransko */
  margin: 0 0 0.5em 0;       /* Spodnji razmik med vrsticami */

}

.seperator{
    height: .2rem;
    background-color: #ccc;
    color: #ccc;
    border:none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  main {
    margin: 2vw;
  }

  .atleti-info {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  .description-main,
  .atletska-sola {
    width: 100%;
    padding: 0 5vw;
  }

  .profile-container {
    flex-direction: column;
    align-items: center;
  }

  .profile-card {
    width: 90%; /* celotna širina */
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .staff-members {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reff-grid .columns-container {
    flex-direction: column;
    gap: 1rem;
  }

  .reff-grid .column {
    width: 100%;
    padding: 0 2rem;
  }

  .naslov-vodstvo,
  .naslov-trenerji,
  .naslov-sodniki {
    width: 90%;
    text-align: center;
  }

  .content {
    flex-direction: column;
    margin: 2vh 2vw;
  }

  article {
    max-width: 100%;
    font-size: 1.2rem;
    padding: 1rem;
  }

  .team-title {
    width: 90%;
  }

  .sub-nav {
    flex-direction: row; /* ostane vodoravna */
    flex-wrap: wrap;     /* omogoči prelom v novo vrstico, če zmanjka prostora */
    justify-content: center;
    padding: 0.5rem 0;
    height: auto;
  }

  .sub-nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
  }

  .sub-nav li {
    float: left; /* ohrani poravnavo v vrstici */
    margin: 0 3vw;
  }
}
