
* {
    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;

    --big-font: 4.1rem;
    --h2-font: 2.8rem;
    --p-font: 1.1rem;
    --icon-font: 1.2rem;
}
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;
}

/* ============ YACA ARTICLE SCHEME ================== */
.hero {
  background: url('https://res.cloudinary.com/dam6cl8k0/image/upload/v1757047201/img9_mmvz5m.jpg') no-repeat center center/cover;
  height: 350px;
  display: flex;
  align-items: center;
  padding: 50px;
  color: var(--bg-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  animation: fadeIn 2s ease-in-out;
  position: relative; margin-top: 5rem;
  z-index: 1;
}
.hero h1 {
  animation: fadeUp 2s ease-in-out forwards;
  font-size: 3em;
  margin-bottom: 20px;
}

.features {
  padding: 30px 50px;
  margin-top: -100px;
  display: flex;
  gap: 30px;
  animation: fadeInUp 1.5s ease-in-out;
  z-index: 2;
  position: relative;
}
.feature-box {
  background: var(--bg-color);
  flex: 1;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.feature-box {
  padding: 30px;
  animation: fadeIn 2s ease-in-out forwards;
}
.feature-box h3 {
  font-family: "Caveat", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--btn-color);
  filter: drop-shadow(1px 1px 5px var(--hover-color));
} 

.feature-box:hover, .cause-box:hover {
  transform: translateY(-5px);
}

body h1, h2 {
  font-family: "Caveat", sans-serif;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--btn-color);
  filter: drop-shadow(1px 1px 5px var(--hover-color));
}
/* =========== News and Updates For YACA ========== */
.causes1 { position: relative; width: 100%; background: var(--bg-color); margin-top: 9rem;}
.causes1 h1 { font-family: "Caveat", sans-serif; font-size: 2.5rem; position: relative; align-items: center;}
.causes {
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}
.cause-box {
  width: 350px;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeUp 2s ease-in-out forwards;
}
.cause-box img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 5px;
}
.causes .description {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 15px;
}
.cause-box p {
  background: var(--hover-color);
  text-align: center;
  color: var(--text-color);
  padding: 5px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/* ========== YACA Articles =========== */
.blog { position: relative; width: 100%; background: var(--bg-color);}
.blog h1 { position: relative; text-align: center; font-size: 2.5rem; font-weight: bold; font-family: "Caveat", sans-serif;}
.blog-posts {
  padding: 60px 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  animation: fadeIn 2s ease-in-out forwards;
}
.blog-card a {
  text-decoration: none;
  color: var(--text-color);
}
.blog-card a img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card-content {
  color: var(--main-color);
  padding: 20px;
}
.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 30px;
  background: var(--btn-color);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.hidden {
  display: none;
  animation: fadeUp 2s ease-in-out forwards;
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 /* ================= 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;
  }
  


 /* =============== Responsiveness queries ================ */
/* Responsive Design */
@media (max-width: 1270px) {
    .text-side .logo-1 {
      bottom: 14%;
      right: 20%;
    }
    .text-side .logo-1 img {
      width: 130px;
    }
  }
  
  @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;
              }
 /* 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 { top: 9rem; margin-top: 9.5rem;}
  .features { padding: 60px 2px; top: 9rem;}
  .feature-box { padding: 12px;}
}
         