@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* GLOBAL RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
  font-family:'Poppins', sans-serif;
  background:#fafbfd;
  color:#1d1d1d;
}

/* LINKS */
a{
  text-decoration:none;
  color:inherit;
}

/* ===========================
   HEADER (MATCH HOME PAGE)
=========================== */

header {
  background-color: #400080;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-title{
  display:flex;
  align-items:center;
  gap: 12px;
}

.logo{
  width:50px;
  height:50px;
  border-radius:50%;
}

.logo-title h1{
  font-size:1.6rem;
  font-weight:700;
}

/* ===========================
   DESKTOP NAV
=========================== */

.desktop-nav{
  display:flex;
}

.desktop-nav ul{
  display:flex;
  list-style:none;
  gap:18px;
}

.desktop-nav ul li a{
  color:white;
  font-weight:600;
  padding:8px 10px;
  border-radius:6px;
  transition:.3s;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.nav-active{
  background:white;
  color:black;
}

/* ===========================
   MOBILE MENU BUTTON
=========================== */
.menu-btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* ===========================
   MOBILE NAV PANEL (70% WIDTH)
=========================== */
.mobile-nav{
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 100vh;
  background: #400080;
  transform: translateX(100%);
  transition: transform .4s ease;
  padding: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-nav.show{
  transform: translateX(0);
}

/* MOBILE LOGO */
.mobile-nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-header img{
  width:45px;
  height:45px;
  border-radius:50%;
}

.mobile-nav-header h2{
  font-size:1.2rem;
  color:white;
}

/* MOBILE LINKS */
.mobile-nav ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:0;
  margin:0;
}

.mobile-nav ul li a{
  color:white;
  font-size:1rem;
  font-weight:500;
  padding:12px;
  border-radius:6px;
  transition:.3s;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.nav-active{
  background:white;
  color:#400080;
}

/* ===========================
   MOBILE BEHAVIOR
=========================== */

@media(max-width:768px){

  .desktop-nav{
    display:none;
  }

  .menu-btn{
    display:block;
  }
}

/* ===========================
   CONTENT WRAPPER
=========================== */

.page-wrapper{
  
  margin:auto;
  padding:30px 20px;
}

/* ===========================
   TITLES
=========================== */

.ch{
  font-size:2.4rem;
  font-weight:700;
  color:#000;
  margin-bottom:1.2rem;
  padding-bottom:6px;
  border-bottom:4px solid #1d1d1d;
}

.he{
  font-size:1.6rem;
  font-weight:600;
  color:#111;
  margin:2rem 0 1rem;
  position:relative;
  padding-left:8px;
}

.he::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:60px;
  height:3px;
}

/* ===========================
   GRID / CARDS
=========================== */

.team{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:1.8rem;
}

.card{
  background:#fff;
  border-radius:18px;
  padding:1.8rem;
  box-shadow:0 4px 18px rgba(0,0,0,0.08);
  border:1px solid #f0f0f0;
  display:flex;
  flex-direction:column;
  gap:1rem;
  transition:.2s ease;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
}

.image{
  width:120px;
  height:120px;
  border-radius:50%;
  overflow:hidden;
  border:4px solid #e94a1f;
}

.image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.name-profession .name{
  font-size:1.1rem;
  font-weight:700;
  color:#111;
}

.name-profession .profession{
  font-size:.9rem;
  color:#555;
  line-height:1.4;
}

/* ===========================
   LIST SECTIONS
=========================== */

.liste-names{
  margin-top:3rem;
  padding:1rem 0;
}

.liste{
  margin-left:1.2rem;
}

.liste li{
  font-size:.95rem;
  margin-bottom:.4rem;
  list-style:disc;
}

/* ===========================
   FOOTER (MATCH HOME PAGE)
=========================== */

footer {
  background-color: #400080;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 20px;
}

.footer-box {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-box h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

.footer-box a:hover {
  color: #ffdd57;
}

footer .copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  font-size: 0.9rem;
}

/* ===========================
   FOOTER MOBILE
=========================== */

@media(max-width:768px){

  footer .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
  }

  footer .footer-box h4 {
    margin: 5px auto !important;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 5px;
    width: 80%;
    text-align: center;
  }

  footer .footer-box a,
  footer .footer-box p {
    margin: 4px 0 !important;
    font-size: 0.9rem;
  }

  footer .copyright {
    font-size: .75rem;
    padding-top: 10px;
  }
}

/* ===========================
   MOBILE CARD RESPONSIVE
=========================== */

@media(max-width:768px){

  .page-wrapper{
    padding:90px 18px 30px;
  }

  .team{
    grid-template-columns:1fr;
    gap:1.4rem;
  }

  .card{
    padding:1.4rem;
    border-radius:14px;
  }

  .image{
    width:100px;
    height:100px;
    border-width:3px;
  }

  .name-profession .name{
    font-size:1rem;
  }
}



/* Scroll Top Button */
#scrollTopBtn{
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: #000000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: .3s ease;
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtn:hover{
  background:#5e00bf;
  transform: translateY(-3px);
}

/* Show when scrolling */
#scrollTopBtn.show{
  opacity: 1;
  visibility: visible;
}



.close-btn{
  font-size: 2.4rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  margin-left: auto;
  transition: .2s;
}

.close-btn:hover{
  color: #ffdddd;
}
