*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: black;
    user-select: none;
}
body {
  font-family:"Poppins", sans-serif;
  font-size: 20px;
  background-color: rgb(242, 242, 242);
    display: flex;
    flex-direction: column;
    align-items: center;
  padding-bottom: 30px;
  min-height: 100vh;
}
body.dark-mode {
  background-color: rgb(132, 132, 132);
}
body.dark-mode * {
  color: white;
}
body.dark-mode .navcs,
body.dark-mode .theme-toggle,
body.dark-mode .crd {
  background-color: rgb(0, 0, 0);
}
body.dark-mode .navcs a[style] {
  background-color: rgb(44, 44, 44) !important;
}
body.dark-mode img {
  mix-blend-mode: normal;
}
img {
    mix-blend-mode: multiply;
    /* mix-blend-mode: normal; */
}
.headercs{
    margin-top: 18px;
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    z-index: 1000;
    
}
.navcs{
    display: flex;
    gap: 25px;
    background-color: rgb(255, 255, 255);
    justify-self: center;
    padding: 20px 40px;
    font: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.theme-toggle{
    cursor: pointer;
    width: 38px;
    height: 38px;
    padding: 0;
    margin-right: 20px;
    border-radius: 50%;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
}
.theme-toggle img {
  width: 25px;
}
.mobile-dropdown {
  display: none;
}


.blogtitle{
  margin-top: 150px; 
  font-size: 30px;
}
.blog_cards{
  width: min(600px, calc(100% - 32px));
  
}
.crd{
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  width: 100%;
  line-height: 30px;
  background-color: rgb(255, 255, 255);
  margin-top: 45px;
  border-radius: 3px;
}
.crd img {
  max-width: 100%;
  height: auto;
  align-self: center;
}

.bg_btns button{
    background: #51ABCB;
    padding: 5px 10px 4px;
    font-size: 12px;
    border-radius: 3px;
    text-transform: uppercase;
    border: none;
    font-weight: 600;
    color: #FFF;
    float: none;
}
.bg_name{
    color: #4a4a4a;
    font-size: 30px;
    font-weight: bolder;
}
.view_bg{
    align-self: flex-end;
    color: #5794E5;
    font-size: 15px;
    font-weight: bold;
}




.pj_name{
  margin-bottom: 10px;
  font-size: 35px;
  font-weight: bold;
}
.card_button:hover {
    transform: scale(1.02);
}
.card_button:active {
    transform: scale(0.95);
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .headercs {
    padding: 0 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .navcs {
    gap: 10px;
    padding: 14px 18px;
  }

  .navcs a {
    font-size: 13px;
  }

  .navcs a[style] {
    margin-top: 0 !important;
    padding: 6px 10px !important;
    border-radius: 7px !important;
  }

  .theme-toggle {
    margin-right: 0;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .blog_cards {
    margin-top: 30px;
  }

  .crd {
    margin-top: 130px;
    gap: 12px;
    line-height: 1.55;
  }

  .bg_name,
  .pj_name {
    font-size: 26px;
    line-height: 1.2;
  }

  .bg_description,
  .crd p:not(.bg_name):not(.pj_name) {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .headercs {
    position: absolute;
    display: block;
    padding: 0 14px;
  }

  .navcs,
  .theme-toggle {
    display: none;
  }

  .mobile-dropdown {
    display: block;
    width: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }

  body.dark-mode .mobile-dropdown {
    background-color: rgb(70, 70, 70);
  }

  .mobile-dropdown summary {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    list-style: none;
  }

  .mobile-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-icon {
    width: 24px;
    height: 20px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mobile-menu-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  body.dark-mode .mobile-menu-icon span {
    background-color: white;
  }

  .mobile-dropdown[open] .mobile-menu-icon span:first-child {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-dropdown[open] .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .mobile-dropdown[open] .mobile-menu-icon span:last-child {
    transform: translateY(-9px) rotate(-45deg);
  }

  .mobile-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 12px;
  }

  .mobile-dropdown-content a {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
  }

  .mobile-dropdown-content a:hover,
  .mobile-dropdown-content a:nth-child(4) {
    background-color: rgb(205, 205, 205);
  }

  .mobile-theme-toggle {
    cursor: pointer;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background-color: rgb(242, 242, 242);
  }

  body.dark-mode .mobile-theme-toggle {
    background-color: rgb(30, 30, 30);
  }

  .mobile-theme-toggle img {
    width: 18px;
  }

  .blog_cards {
    width: calc(100% - 24px);
  }
  .blogtitle{
    margin-top: 100px;
  }

  .crd {
    margin-top: 28px;
    padding: 14px;
  }

  #c2 .c1d {
    border-top: 1px solid rgb(160, 160, 160);
  }

  .bg_btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .bg_btns button {
    font-size: 10px;
  }

  .view_bg {
    align-self: stretch;
    text-align: right;
  }
}
