:root {
  --blue-100: #6feded;
  --blue-150: #a4d6ef;
  --blue-900: #3d51a3;
  --orange-300: #dfada9;
  --orange-500: #c22d00;
  --grey100: #e8e8e8;
  --secondary-color: #fff;
  --text-color: #333;
  --font-family: "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.4;
  font-size: 1rem;
  display: grid;
}

body:not(.auth.login) {
  grid-template-rows: auto 1fr auto;
}

a {
  color: var(--orange-500);
  text-decoration: none;
}

input {
  padding: 8px 12px;
}

button {
  padding: 8px;
  margin-bottom: 20px;
}

.container {
  width: min(100%, 76.875rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.error-message {
  text-align: center;
}

section {
  padding: 48px 0;

  h2 {
    font-size: clamp(2rem, 2vw, 4rem);
    text-align: center;
    margin-bottom: 8px;

    + p {
      font-size: 1.25rem;
      color: #4c4848;
      font-weight: 400;
      text-align: center;
    }
  }
}

.see-more-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--orange-500);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  text-transform: uppercase;
  min-width: 150px;
  font-size: 14px;
  text-align: center;
  transition: box-shadow 0.3s ease;

  &:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

.form-field-row {
  display: grid;
}

.form-field-row:not(:first-of-type) {
  margin-top: 12px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 411;

  &:is(.scrolled) {
    .logo {
      img {
        width: 3rem;
      }
    }
  }

  .container {
    display: flex;
    justify-content: space-between;
  }
}

.logo {
  display: flex;
  align-items: center;

  a {
    padding-block: 8px;
  }

  img {
    width: 5rem;
    transition: width 0.25s ease;
  }
}

.menu-icon {
  position: relative;
  display: none;

  input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
  }
}

.navbar {
  display: flex;
  gap: 24px;

  .navbar-links {
    list-style: none;
    display: flex;
    gap: 25px;

    li {
      position: relative;
      display: inline-flex;
      align-items: center;

      a {
        text-decoration: none;
        color: #000;
        font-weight: bold;
        padding: 1.5rem;
      }

      &.has-dropdown {
        & > a {
          display: flex;
          align-items: center;
          gap: 8px;

          &::after {
            content: " ";
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 4px solid var(--text-color);
          }
        }
      }

      &:has(.dropdown-menu):hover {
        .dropdown-menu {
          display: flex;
        }
      }
    }
  }
}

.dropdown {
  font-size: 20px;
  margin-left: 4px;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 101px;
  background-color: #fff;
  width: 180px;
  padding: 8px;
}

header:is(.scrolled) .dropdown-menu {
  top: 46px;
}

#search {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  padding: 20px;

  &:target {
    display: block;
  }
}

.search-icon,
.close-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: opacity 0.3s ease;
  display: none;
}

.hero {
  &:not(.inner-pg-hero) {
    height: calc(100dvh - 102px);
  }

  &.inner-pg-hero {
    height: clamp(15rem, 25vw, 30rem);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;

    img {
      position: absolute;
      inset: 0;
    }

    &::after {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      content: "";
      background: rgba(0, 0, 0, 0.5);
    }

    h2 {
      position: relative;
      z-index: 1;
      color: var(--secondary-color);
      text-align: left;
    }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.section-title {
  h2 {
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 8px;

    span {
      color: var(--orange-500);
    }
  }
}

/* ABOUT US STYLES */
.about-section {
  background-color: #ffffff;
  padding: 50px 40px;

  .tabs {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;

    .tab {
      flex: 1;
      padding: 12px 0;
      text-align: center;
      background-color: var(--blue-150);
      color: white;
      font-weight: bold;
      border: none;
      cursor: pointer;
      font-size: 16px;
      text-decoration: none;
      background: var(--blue-900);
      color: var(--blue-150);
      margin-right: 5px;
      border-radius: 5px;
    }

    .tab:target,
    .tab.active {
      background: var(--blue-150);
      color: white;
    }
  }

  .tab-content {
    line-height: 1.6;
    color: #444;
    display: none;

    &:target {
      display: block;
    }

    &:first-of-type {
      body:not(:has(.tab-content:target)) & {
        display: block;
      }
    }
  }
}

.tab-content a {
  width: fit-content;
  display: block;
  margin-top: 0.5rem;
}

.about-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;

  p:not(.tab-content) {
    text-align: center;
    width: 100%;
  }
}

.about-image {
  width: min(100%, 320px);
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  line-height: 0;

  img {
    width: 100%;
    height: 100%;
  }
}

.about-content {
  width: min(100%, calc(100% - 360px));

  & + p {
    a {
      font-weight: 700;
      text-decoration: underline;
    }
  }
}

body:has(#about:target) .tab[href="#about"],
body:has(#vision:target) .tab[href="#vision"],
body:has(#mission:target) .tab[href="#mission"],
body:not(:has(.tab-content:target)) .tab[href="#about"] {
  background-color: var(--blue-150);
  color: var(--blue-900);
}

/* SPECIALITIES?SERVICES STYLES */
.specialities {
  background-color: var(--grey100);

  .see-more-button {
    margin-top: 3rem;
  }

  .specialities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;

    h3 {
      font-weight: 500;
      margin-top: 8px;
    }

    .see-more-wrapper {
      display: flex;
      grid-column: 1 / -1;
      justify-content: center;
    }
  }

  a:not(.see-more-button) {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    flex-direction: column;
    padding: 16px;
    background-color: var(--orange-300);
    border-radius: 8px;
    color: var(--text-color);

    img {
      width: 46px;
      height: 46px;
      object-fit: cover;
      border-radius: 50%;
      border: 1px solid black;
    }
  }
}

.specialities-pg {
  background: transparent;

  .specialities-list {
    width: 100%;
    margin: 0;

    a {
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      flex-direction: column;
      padding: 16px;
      background-color: var(--secondary-color);
      border-radius: 8px;
      color: var(--text-color);
      border: 1px solid var(--orange-300);
    }
  }
}

/* FEATURES STYLES */
.features {
  h2 {
    text-align: center;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 1px;
      background-color: var(--orange-500);
      left: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    span {
      position: relative;
      background-color: white;
      padding: 0 50px;
    }
  }

  p {
    text-align: center;
    margin-top: 20px;
  }

  .card {
    --icon-size: 80px;

    width: 100%;
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid var(--orange-300);
    text-align: center;
    position: relative;
    padding: 24px 0 16px;
    margin: 80px auto 20px;

    .card-image {
      position: absolute;
      top: calc(var(--icon-size) * -0.5);
      left: 50%;
      transform: translateX(-50%);
      width: var(--icon-size);
      height: var(--icon-size);
      border-radius: 50%;
      overflow: hidden;
      border: 1px solid var(--orange-300);
      background-color: #f0f0f0;
      z-index: 10;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .card-content {
      padding: calc(var(--icon-size) * 0.5) 20px 0px;
      text-align: center;

      h2 {
        margin: 10px 0 8px;
        font-size: 20px;
        color: #333;
      }

      p {
        font-size: 14px;
        color: #666;
      }
    }
  }
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* WHY NCH STYLES */
.why-nch {
  background-color: var(--grey100);

  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  h2 {
    text-transform: uppercase;
    color: var(--text-color);

    span {
      color: var(--orange-500);
    }
  }
}

.why-nch-title {
  max-width: 65ch;
}

.why-nch-list {
  display: grid;
  width: 100%;
  gap: 10px;
  color: var(--text-color);
  padding-left: 70px;
}

/* BLOG STYLES */
.blog {
  h2 {
    text-align: center;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 1px;
      background-color: var(--orange-500);
      left: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    span {
      position: relative;
      background-color: white;
      padding: 0 50px;
    }
  }
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 60px;
  justify-content: center;
  margin-top: 20px;
  padding: 30px;

  .blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 300px;

    &:hover {
      transform: translateY(-5px);
    }

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

    .card-text {
      padding: 15px;
      font-size: 18px;
      font-weight: bold;
      color: #333;
      text-align: left;
    }
  }
}

/* BLOG DETAIL STYLES */

.blog-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.image-container img {
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*/BLOG ADMIN STYLE*/

.admin-blog-container {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.blog-add {
  text-align: right;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.blog-add a {
  background-color: #4caf50;
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
}

.blog-table th,
.blog-table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: left;
}

.blog-table img {
  border-radius: 4px;
  max-height: 80px;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-actions .btn {
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  color: white;
}

.edit-btn {
  background-color: #007bff;
}

.delete-btn {
  background-color: #dc3545;
}

/* GALLERY STYLES */
.gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.gallery-img {
  width: 300px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;

  &:hover {
    transform: scale(1.05);
  }
}

.gallery-title {
  text-align: left;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color);

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--grey100);
    margin-top: 10px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 30px;

  img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
  }
}

/* GALLERY LIGHTBOX STYLES */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.8);

  .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  .prev,
  .next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    user-select: none;
  }

  .prev {
    left: 30px;
  }

  .next {
    right: 30px;
  }
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

/* DOCTORS STYLES */
.doctor-section {
  padding: 40px 0;
  background-color: #f7f7f7;
}

.doctor-profile {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.doctor-image {
  width: min(100%, 15rem);
  align-self: flex-start;
}

.doctor-info {
  flex: 1;
}
.nmc-no {
  margin-bottom: 4px;
  font-weight: 500;
}

.doctor-descs {
  margin-top: 12px;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--text-color);
  transition: transform 0.3s ease;

  &:hover {
    transform: translateY(-5px);
  }

  img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
  }

  h3 {
    font-size: 16px;
    margin: 10px 0 5px;
  }

  p {
    font-size: 14px;
  }
}

/*PROFILE TIMILNG*/
.timing {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  text-align: center;
  margin-top: 12px;
}

.timing th,
.timing td {
  border: 1px solid #ccc;
  padding: 10px;
}

.timing th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.timing tr:nth-child(even) {
  background-color: #fafafa;
}

/* CONTACT STYLES */
.contact-info {
  background-color: var(--orange-300);
  padding: 60px 0;

  p {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, auto));

  a {
    text-decoration: none;
    color: var(--text-color);
  }

  .contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: rgb(255 255 255 / 0.5);
    border-radius: 4px;
    padding: 20px 25px;
    text-align: left;
    margin: 10px;

    h3 {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 8px;
    }

    p {
      font-size: 16px;
      font-weight: 700;
      word-break: break-word;
      margin-bottom: 0;
    }
  }
}

.contact-left {
  flex: 1;
  min-width: 300px;

  form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;

    label {
      margin-bottom: 5px;
      font-weight: bold;
    }

    input,
    textarea {
      margin-bottom: 20px;
      padding: 10px;
      font-size: 16px;
      border: none;
      border-bottom: 2px solid #000;
      background: transparent;
      outline: none;
    }
  }
}

.contact-right {
  flex: 1;
  min-width: 300px;
}
.map-box {
  margin-top: 20px;
  width: 100%;
  height: 250px;
}

/* FOOTER STYLES */
footer {
  background-color: #26272b;
  padding: 45px 0 20px;
  font-size: 0.875rem;
  line-height: 140%;
  color: #c9c9c9;

  .row:not(.bottom-row) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 0;

    > div:first-of-type {
      grid-column: 1 / -1;
      margin-bottom: 40px;
    }
  }

  .bottom-row {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.site-footer {
  hr {
    border-top-color: #bbb;
    opacity: 0.5;

    &.small {
      margin: 20px 0;
    }
  }

  h2 {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-block-end: 0.75rem;
  }

  a {
    color: #737373;

    &:hover {
      color: #3366cc;
      text-decoration: none;
    }
  }

  .footer-links {
    padding-left: 0;
    list-style: none;

    li {
      display: block;
    }

    a {
      color: #737373;

      &:hover,
      &:focus,
      &:active {
        color: #3366cc;
        text-decoration: none;
      }
    }

    &.inline li {
      display: inline-block;
    }
  }

  .social-icons {
    text-align: right;

    a {
      width: 40px;
      height: 40px;
      line-height: 40px;
      margin-left: 6px;
      border-radius: 100%;
      background-color: #33353d;
    }
  }

  .copyright-text {
    margin: 0;
  }
}

.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;

  li {
    display: inline-block;
    margin-bottom: 4px;

    &.title {
      margin-right: 15px;
      text-transform: uppercase;
      color: #96a2b2;
      font-weight: 700;
      font-size: 13px;
    }
  }

  a {
    background-color: #eceeef;
    color: #818a91;
    font-size: 16px;
    display: inline-block;
    line-height: 44px;
    width: 44px;
    height: 44px;
    text-align: center;
    margin-right: 8px;
    border-radius: 100%;
    transition: all 0.2s linear;

    &:hover {
      color: #fff;
    }

    &.facebook:hover {
      background-color: #3b5998;
    }
    &.instagram:hover {
      background-color: #d411c3;
    }
    &.youtube:hover {
      background-color: #d90813;
    }
  }

  &.size-sm a {
    line-height: 34px;
    height: 34px;
    width: 34px;
    font-size: 14px;
  }
}

/* RESPONSIVE STYLES */
@media (max-width: 991px) {
  .hero {
    &:not(.inner-pg-hero) {
      height: auto;
      line-height: 0;
    }
  }

  .site-footer [class^="col-"] {
    margin-bottom: 30px;
  }

  .menu-icon {
    display: inline-flex;
    align-self: center;
  }

  .navbar {
    .navbar-links {
      display: none;
    }
    .navbar-links {
      li {
        display: inline-flex;
        flex-direction: column;
      }
    }
  }

  .menu-icon:has(input:checked) + .navbar-links {
    display: flex;
    position: absolute;
    left: 0;
    top: 64px;
    width: 100%;
    background: white;
  }

  .navbar-links {
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
  }

  .about-image,
  .about-content {
    width: 100%;
  }

  .why-nch .container {
    display: block;
  }

  .site-footer {
    padding-bottom: 0;

    .copyright-text,
    .social-icons {
      text-align: center;
    }

    .social-icons li.title {
      display: block;
      margin-right: 0;
      font-weight: 600;
    }
  }
}

/* ADMIN STYLES */

/*login-page*/
.loginbox {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  align-self: center;
  justify-self: center;

  .loginform-section {
    display: flex;
    flex-direction: column;

    .auth-form {
      display: flex;
      flex-direction: column;

      .loginform-group {
        margin-bottom: 1.2rem;

        label {
          display: block;
          margin-bottom: 0.5rem;
          font-weight: bold;
          color: #333;
        }

        input[type="text"],
        input[type="password"] {
          width: 100%;
          padding: 0.6rem;
          border: 1px solid #ccc;
          border-radius: 6px;
          font-size: 1rem;

          &:focus {
            outline: none;
            border-color: #007bff;
          }
        }

        small.error-message {
          color: #d93025;
          font-size: 0.85rem;
          margin-top: 0.3rem;
        }
      }

      .btn-border {
        background: none;
        border: 2px solid #007bff;
        color: #007bff;
        padding: 0.6rem;
        font-size: 1rem;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.3s ease;
        margin-top: 0.5rem;
        text-align: center;
        text-decoration: none;
        display: inline-block;

        &:hover {
          background-color: #007bff;
          color: #fff;
        }
      }
    }

    .error-message {
      color: #d93025;
      font-size: 0.85rem;
      margin-top: 1rem;
      text-align: center;
    }

    .loginregister {
      margin-top: 1.5rem;
      text-align: center;
      font-size: 0.9rem;

      .btn-border {
        margin-left: 0.3rem;
      }
    }
  }
}
/*registration-page*/
.regisadd {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin: 3rem auto;
  font-family: Arial, sans-serif;
}

.regisadd .regisform {
  display: flex;
  flex-direction: column;
}

.regisadd .regisform .auth-form {
  display: flex;
  flex-direction: column;
}

.regisadd .regisform .auth-form .regisform-group {
  margin-bottom: 1.2rem;
}

.regisadd .regisform .auth-form .regisform-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #333;
}

.regisadd .regisform .auth-form .regisform-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.regisadd .regisform .auth-form .regisform-group input:focus {
  outline: none;
  border-color: #007bff;
}

.regisadd .regisform .auth-form button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.regisadd .regisform .auth-form button:hover {
  background-color: #0056b3;
}

/*admin-blog*/
.blog-container1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 64px;
  justify-content: center;
  margin-top: 20px;
  padding: 40px;

  .blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 300px;
    height: 300px;
  }

  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }

  .blog-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }

  .blog-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.8rem 1rem 0 1rem;
    flex-grow: 1;
    color: #333;
  }

  .card-actions {
    margin-top: 2px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    color: white;
    transition: background-color 0.2s ease;
  }

  .edit-btn {
    background-color: #007bff;
  }

  .edit-btn:hover {
    background-color: #0056b3;
  }

  .delete-btn {
    background-color: #dc3545;
  }

  .delete-btn:hover {
    background-color: #a71d2a;
  }
}

.board-popup {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-content {
  position: relative;
}


.popup-content h3 {
  font-size: 22px;
  margin: 0;
  color: #222;
}

.popup-content p {
  margin-top: 12px;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

/* Close Button */
.close-popup {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.1s;
}

.close-popup:hover {
  color: #222;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
