
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --main-color: #095757;
    --bg-color: #e7e7e7d0;
    --second-color: #1A2526;
    --text-color: #141414f5;
    --btn-color: #b93c68;
    --hover-color: #752a44;
    --hover1-color: #033333d8;

    --width: 350px;
    --height: 350px;
    --quantity: 10;

}

    .item.pos-1 { --position: 1; }
    .item.pos-2 { --position: 2; }
    .item.pos-3 { --position: 3; }
    .item.pos-4 { --position: 4; }
    .item.pos-5 { --position: 5; }
    .item.pos-6 { --position: 6; }
    .item.pos-7 { --position: 7; }
    .item.pos-8 { --position: 8; }
    .item.pos-9 { --position: 9; }

html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    overflow-y: scroll;
}
html::after {
    content: "";
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    pointer-events: none;
    background-image: url(https://res.cloudinary.com/dam6cl8k0/image/upload/v1757047200/canva_pknsme.png);
    background-position: center;
    background-size: 100vw;
}
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
     display: none; /* Chrome, Safari, Edge */
}
body {
    font-family: "Poppins", sans-serif;
    width: 100vw;
    overflow: hidden;
    overflow-y: scroll;
    background-position: center;
    background-size: cover;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--bg-color);
    padding-top: 150px;
}
/* ------------ Preloader section ------------------- */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.Logo {
  width: 120px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--second-color);
  border-top: 5px solid var(--main-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

 /* ======== The header ================= */
 header {
    position: fixed;
    background: var(--bg-color);
    z-index: 2;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
}
.logo img {
    height: auto;
    width: 160px;
}
.slogan img {
    height: 30px;
    width: auto;
    margin-left: 20px;
}
.col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    gap: 20px;
}
.item1 .donate {
    background: var(--btn-color);
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}
.item1 .donate:hover {
    background: var(--bg-color);
}
.item1 .donate i {
    margin-left: 5px;
    color: var(--main-color);
}
.item1 .donate:hover i {
    color: var(--bg-color);
    transform: translateX(5px);
}
.col-item2 .social-icons {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 10px;
}
.social-icons li a {
    padding:5px 8px 5px 8px;
    background-color: var(--main-color);
    color: var(--text-color);
    font-size: 18px;
    transition: color 0.3s;
}
.social-icons li a:hover {
    color: var(--hover-color);
}
.social-icons li a i {
  color: var(--second-color);
}
.social-icons li a:hover i {
    transform: translateY(-3px);
}
nav {
    background: #1A2526;
    width: 100%;
}
.nav-menu {
    padding: 10px 0;
    display: flex;
    justify-content: center;
}
.menu-header ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.menu-header ul li a {
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}
.menu-header ul li a:hover {
    color: var(--btn-color);
    transform: translateY(-3px);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--main-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}
/* ========= Video about Yca =============== */
/* Hero Section */
.hero {
  position: relative;
  width: 100vw;
  height: 550px;
  margin-bottom: 2%; margin-top: 5rem;
  box-sizing: border-box;
}
.umbo{
  position: relative;
  height: 100%;
  overflow: hidden;
}
.umbo .tag {
  width: fit-content;
  height: 3.95rem;
  display: flex;
  position: absolute;
  align-items: center;
  z-index: 1000;
  right: 0;
  gap: 10px;
  bottom: 0;
  background: var(--bg-color);
  border-radius: 1rem 0 0 0;
  padding: 0.3rem;
  padding-right: 1rem;
}
.umbo .tag a {
  color: var(--second-color);
  font-size: 1.2rem;
  z-index: 100;
  margin-left: 15px;
  cursor: pointer;
}
.umbo .tag a:hover {
  color: var(--text-color);
  transform: scale(1.1) translateY(-5px);
}
.umbo .tag::before{
  background: var(--bg-color);
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1rem 1rem 0 0;
}
.tag .ke , .tag .me{
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  content: "";
  width: 40px;
  height: 40px;
}
.tag .ke {
  left: 0;
  transform: translateX(-100%);
  box-shadow: 1rem 1rem 0 var(--bg-color);
}
.tag .me {
  right: 0;
  transform: translateY(-100%);
  transform: translateX(100%);
  box-shadow: -1rem 1rem 0 var(--bg-color);
}
.vid {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 1% 1% 2%;
}
.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(50%);
}

/* ======== History and background of YACA ======== */
.detail {
  font-family: "Edu+SA+Hand", sans-serif;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 5px;
  width: 100vw;
  height: auto;
}
.detail #main-content {
  flex: 3;
  padding: 20px;
  border: 1px solid var(--second-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  order: 1; /* Default order for main content */
}
.detail #content-title {
  font-family: "Caveat", sans-serif;
  color: var(--btn-color);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail #content-description {
  font-family: "Edu+SA+Hand", sans-serif;
  font-size: 1.1em;
  line-height: 1.1;
}
.detail #content-description strong {
  color: var(--main-color);
  font-family: "Edu+SA+Hand", sans-serif;
  font-size: 2.1rem;

}

/* Quick Links */
.detail .quick-links {
  flex: 1;
  border: 1px solid var(--second-color);
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  order: 2; /* Quick links come after main content */
}

.detail .quick-links h3 {
  font-family: "Caveat", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--btn-color);
}

.detail .quick-links ul {
  list-style: none;
}

.detail .quick-links li {
  cursor: pointer;
  padding: 10px;
  border: 1px solid transparent;
  margin-bottom: 5px;
  border-radius: 3px;
  transition: 0.3s;
}
.detail .quick-links li:hover {
  background-color: var(--main-color);
  color: var(--text-color);
  border-color: var(--hover-color);
}

.detail .quick-links li i {
  color: var(--main-color);
  margin-right: 5px;
  font-size: 1.5rem;
}

.detail .quick-links li:hover i {
  color: var(--btn-color);
}
.detail #content-description, .detail #content-description ul, .detail .quick-links li {
  font-family: "Inter", sans-serif;
}

/* ============ Garlley of photos ==========  */
.tatu {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 2% 10px;
}
.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hover1-color);
  mask-image: linear-gradient(
      to right, transparent, 
      #000 10% 90%, 
      transparent);
  -webkit-mask-image: linear-gradient(
      to right, transparent,
      #000 10% 90%,
      transparent);
}

.slider .list {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: scroll 60s linear infinite;
}

.slider .item {
  flex: 0 0 var(--width);
  height: var(--height);
  transition: filter 0.5s;
}

.slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--width) * var(--quantity)));
  }
}
.slider:hover .list {
  animation-play-state: paused !important;
  filter: grayscale(1);
}
.slider .item:hover img {
  filter: grayscale(0);
}
.map {
  padding: 2%;
  height: auto;
  margin-bottom: 20px;
}
.map iframe {
  border-radius: 10px;
  width: 100%;
  height: 450px; 
  border: 0;
}

/* ==============Team sections ================ */
.team {
  padding: 60px 20px;
  text-align: center;
}

h2 {
  font-family: "Caveat", sans-serif;
  font-size: 3.5rem;
  color: var(--btn-color);
  margin-bottom: 10px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 20px 0;
}

.team-slider {
  display: flex;
  transition: transform 0.5s ease;
  scroll-behavior: smooth;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scrollbar-width: none; /* Firefox */
}

.team-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.card {
  min-width: 260px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.199);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.6s ease-out;
}

.card.visible {
  transform: scale(1);
  opacity: 1;
}

.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.card .info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: var(--bg-color);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card:hover .info {
  opacity: 1;
}

.info h3 {
  margin: 0;
  color: var(--hover-color);
  font-family: "Caveat", sans-serif;
  font-size: 2.7rem;
}

.info p {
  margin: 5px 0;
  font-size: 14px;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(71, 60, 60, 0.705);
  color: var(--main-color);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  border-radius: 6px;
}

.nav-button.left { left: 10px; }
.nav-button.right { right: 10px; }

/* ================= Footer section ====== */
  /*Contact Yaca*/
  .Contact{
    display: flex;
    align-items: center; 
    gap: 40px;
    justify-content: center;
    margin: 10px auto;
  }
  
  footer .my-line {
    left: 5%;
    position: relative;
    align-items: center;
    justify-content: center;
    content: "";
    width: 90%;
    height: 5px;
    background: var(--second-color);
    border-radius: 2px;
  }
  .moja{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
  }
  .moja img{
    max-width: 280px;
    object-fit: cover;
  }
  .moja h2 {
    font-family: 700;
    font-family: 'Caveat', sans-serif;
    font-size: 2.3rem; 
    color: var(--btn-color); 
    text-align: center;
  }
  
  .mbili{
    padding: 30px;
  }
  .mbili h2{
    font-weight: 700;
    font-family: 'Caveat', sans-serif;
    color: var(--btn-color);
    text-align: center; 
    margin-bottom: 20px; 
    font-size: 2.3rem;
    position: relative;
  }
  .mbili h2::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 40%; 
    height: 3px;
    background-color: var(--second-color);
  }
  .lojo {
    margin: 20px 0; 
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
  }
  .lojo .list {
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column;
    gap: 20px; 
  }
  .zoko {
    display: flex;
    align-items: center; 
    gap: 10px;
  }
  .zoko .icon {
    text-decoration: none;
    font-size: 1rem; 
    font-weight: bold; 
    color: var(--text-color); 
    display: flex;
    align-items: center; 
  }
  .icon i {
    color: var(--main-color); 
    font-size: 1.2rem; 
    margin-right: 8px; 
  }
  .lojo2 {
    text-align: center; 
    margin: 20px 0; 
  }
  .list2 {
    display: flex; 
    justify-content: center; 
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .social {
    display: inline-block;
    padding-right: 10px;
    gap: 40px;
  }
  .social a {
    text-decoration: none;
    color: var(--second-color);
    font-size: 1.8rem;
    transition: color 0.3s;
  }
  .social a:hover {
    color: var(--hover1-color);
  }
  .tatu{
    padding: 30px;
  }
  .tatu h2{
    font-family: 'Caveat', sans-serif;
    font-weight: 700;
    color: var(--btn-color);
    text-align: center; 
    margin-bottom: 20px; 
    font-size: 2.3rem;
    position: relative;
  }
  .tatu h2::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 30%; 
    height: 3px;
    background-color: var(--second-color);
  }
  .icon a{
    text-decoration: none;
    color: var(--text-color);
  }
  .icon a:hover{
    color: var(--hover-color);
  }
  .ft{
    font-family: 'Caveat', sans-serif;
    font-weight: 600;
    padding: 10px 0 10px 0;
    align-items: center;
    text-align: center;
    background: var(--main-color);
    color: var(--text-color);
    gap: 20px;
  }
  .dvlp{
    font-family: 'Caveat', sans-serif;
    font-size: var(--p-font);
  }
  .dvlp a{
    color: var(--btn-color);
  }
  .cpry{
    font-family: 'Caveat', sans-serif;
    font-size: var(--p-font);
  }
  .cpry i{
    color: var(--btn-color);
    font-size: 15px;
  }
  #abt {
    overflow-x: hidden;
  }
/* ===========Responsive queries for the website ============= */
/* Responsive Design */
@media (max-width: 1270px) {
   
  }
  
 @media (max-width: 790px) {
  .row-item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 10px;
  }
  .slogan {
      display: none; /* Hide slogan on small screens */
  }
  .col-item {
      width: 100%;
      justify-content: space-between;
  }
  .item1 {
      margin-bottom: 50px;
  }
  .item1 .donate {
      padding: 10px 70px 10px 70px ;
  }
  .col-item2 {
      position: absolute;
      right: 10px;
      top: 48.4%;
      left: 0;
  }
  .col-item2 .social-icons {
      gap: 20px;
      margin: 30px;
  }
  .social-icons li a {
      padding: 0;
      background-color: transparent;
      color: var(--main-color);
      font-size: 18px;
      transition: color 0.3s;
  }
  .menu-toggle {
      display: block;
      position: absolute;
      right: 12px;
      top: 16.3%;
  }
  .menu-header ul {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      width: 100%;
  }
  .menu-header ul.active {
      display: flex;
  }
  .detail {
    flex-direction: column; /* Stack elements vertically */
}

.detail #main-content,
.detail .quick-links {
    flex: 1 0 auto; /* Allow each section to grow/shrink */
}

 /* Contact section */
 .Contact {
   flex-direction: column;
   gap: 20px;
 }
  
 .moja img {
   max-width: 100%;
 }
  
 .moja h2 {
   font-size: 1.2rem;
 }
  
 .mbili h2 {
   font-size: 1.3rem;
 }
  
 .lojo .list {
   gap: 15px;
 }
  
 /* Footer adjustments */
 .ft {
   text-align: center;
 }
       }
          
 @media (max-width: 591px) {
    .col-item2 {
      position: absolute;
      right: 10px;
      top: 68%;
      left: 0;
      }
    }
   @media (max-width: 480px) {
              .hero { margin-top: 9.5rem;}
            }