*{
    margin: 0;
}
html {
  scroll-behavior: smooth;
}
html, body {
  height: 100%;
}
.knowledge-section,
.gallery-section,
.news-section {
  flex: 1;
}

body {
  min-height: 100vh;
  display: flex;
  max-width: 100%;
  overflow-x: hidden;
  flex-direction: column;
  background-color: #f0f4f4;
  font-family: 'Poppins', sans-serif;
}
.pre-nav{
    background:linear-gradient(90deg, #11342e, #9cc3ca); 
    color: white;
    font-family: "Josefin Sans", sans-serif;
    display: flex;
    align-items: center;
    padding: 10px 10px;
    font-size: 14px;
}

.contact-num,.time{
    display: inline-block;
}

.contact-num{
    margin-left: 20px;
}

.pre-nav-items {
    position: absolute;
    right: 30px;
    
}
/* .logo{
    margin-left: 15px;
} */

.logo {
    margin-top: 5px;
    margin-left: 15px;
    width: 150px;
    height: 110px;
}

.main-nav {
    display: flex
;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    /* background-color: white; */
    box-shadow: 0 4px 8px 0 rgb(172 172 172 / 20%), 0 6px 20px 0 rgb(156 156 156 / 19%);
}
.nav-items{
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 9;
    /* margin-right: 60px; */
}

.nav-items:first-child{
    margin-top: 20px;
}

.nav-item{
    text-decoration: none;
    color: #123a3f;;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}
.nav-item:active{
    color:#123a3f
}
.nav-item:visited{
    color:#123a3f
}
.weekend{
  padding-left: 30px;
}
.book-appointment-link{
    display: block;
    text-decoration: none;   
    cursor: pointer;
}
.content-book-appointment-link{
    display: block;
    text-decoration: none;  
    width: 0px; 
}

.book-appointment-btn{
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    width: 150px;
    background: linear-gradient(90deg, #11342e, #9cc3ca);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
}
.book-nav{
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    width: 160px;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #5D8183;
}
.book{
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    width: 160px;
    background: linear-gradient(90deg, #11342e, #9cc3ca);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
}

@media (max-width: 970px) {
  .pre-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 10px;
    font-size: 12px;
  }
  .pre-nav-items {
    position: static;
    margin-top: 4px;
  }
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  box-shadow: 0 4px 8px 0 rgb(172 172 172 / 20%), 0 6px 20px 0 rgb(156 156 156 / 19%);
  background-color: #ffffff;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 120px;
  height: auto;
  margin: 0;
}

.site-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #123a3f;
  font-size: 16px;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 30px;
  /* margin-right: 20px; */
}

.nav-item {
  text-decoration: none;
  color: #123a3f;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* hamburger button default hidden (desktop) */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #123a3f;
}
@media (max-width: 1240px) {
  .main-nav {
    padding: 8px 10px;
  }

  .logo {
    width: 80px;
  }

  .site-name {
    font-size: 13px;
  }

  /* show hamburger, hide menu initially */
  .nav-toggle {
    display: block;
  }
  .nav-items {
        position: absolute;
        top: 114px;
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0px 16px;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.25s 
ease;
    }

    .about{
    margin-top:20px ;
  }

  .booking-content{
        padding: 40px 45px 40px 45px;
  }

  .nav-items.open {
    max-height: 280px;   /* enough for all links */
    padding-bottom: 10px;
  }


  .nav-item {
    width: 100%;
    font-size: 15px;

  }
  .nav-items:first-child{
    margin-top: 15px;  
  }

  .nav-item.information {
  width: 7%;
}
  #google_translate_element {
    margin-top: 4px;
  }
}


  
@media (max-width: 1130px){

  .pre-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 10px;
    font-size: 12px;
  }
  .pre-nav-items {
    position: static;
    margin-top: 4px;
  }
      .nav-item.information {
        width: 35px;
    }

    .nav-items{
     position: absolute;
        top: 121px;
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0px 16px;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.25s 
}
}


/* ------------------------------------------------------------------------> */


@media (max-width: 600px) {
  .main-content {
    width: 100%;
    padding: 24px 16px 0 16px;   /* left padding 12% hatao */
  }
  .nav-items{
     position: absolute;
        top: 133px;
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0px 16px;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.25s 
  }
  .head {
    font-size: 32px;
    line-height: 1.2;
  }

  .short-des {
    font-size: 16px;
  }

  .long-des {
    width: 100%;
    font-size: 14px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }


  .booking-content {
    width: 100%;
    padding: 24px 16px;
  }

  .booking-controls {
    flex-direction: column;
  }


    .nav-item.information {
        width: 35px;
    }
.booking-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 50px;
    gap: 20px;
}
.intro {
    width: 79%;
    margin-left: 12%;
}
}


.Adminbtn,.logoutbtn {
    background-color: #5D8183;
    /* background: linear-gradient(90deg, #11342e, #9cc3ca); */
    color: white;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}


/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
} */

.Adminbtn {
  display: inline-block;
  padding: 12px 24px;
  background:#5D8183; 
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}


.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 9999;
}

.overlay.show {
  display: flex;
}

.overlay-content {
  width: 100%;
  max-width: 420px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
  position: relative;
}

@media (max-width: 640px) {
  .overlay-content {
    padding: 28px 28px 24px;
  }

  .field input {
    width: 94%;
}

.nav-items{
     position: absolute;
        /* top: 120px; */
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0px 16px;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.25s 
}
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.close-btn:hover {
  color: #e5e7eb;
  transform: scale(1.05);
}

.tabs {
  display: flex;
  background: #020617;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 8px 0;
  font-size: 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}



.form h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #f9fafb;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.field input {
  width: 94%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: #6b7280;
}


.primary-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.55);
  opacity: 0.98;
}

.switch-text {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.switch-text span {
  color: #6366f1;
  font-weight: 500;
  cursor: pointer;
}

.switch-text span:hover {
  text-decoration: underline;
}
.nav-item.information {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  width: 35px;
}


.footer {
      background-color: #204143;
  color: #fff;
  padding: 70px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h2 {
  font-weight: 700;
  line-height: 1.3;
}

.footer-col .sub {
  font-size: 0.9rem;
  color: #9fcfe0;
  letter-spacing: 1px;
}

.footer-col .tagline {
  margin: 10px 0;
  font-weight: 600;
  color: #ffffff;
}

.footer-col .desc {
  color: #cfd8dc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin-bottom: 15px;
 color: #c3ccce;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0%;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #cfd8dc;
  font-size: 0.9rem;
}



.footer-col ul li a {
  color: #cfd8dc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #00bcd4;
}

.socials a {
  color: #fff;
  margin-right: 12px;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.socials a:hover {
  color: #00bcd4;
}

.book-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #467d84;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s;
}

.book-btn:hover {
  background-color: #114c55;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid #103238;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #b0bec5;
}
/* .about{
  width: 90%;
} */
.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #b0bec5;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4f797c;
}

.footer-logo{
    width: 200px;
    margin-bottom: 10px;
}

.footer-loction,.footer-call,.footer-mail,.footer-experience{
    width: 20px;
    margin-right: 10px;
}

.footer-col ul li{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.footer-col {
  width: 100%;
  max-width: 300px; 
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
#no-news-container{
    text-align: center;
    /* padding: 50px 20px; */
    font-size: 18px;

}


.no-news{
    margin-top: 20px;
}
#news-item-container{
    display: flex;
    flex-direction: row;
    gap: 35px;
    padding: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.no-news-image{
  width: 300px;
}
.add-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #123a3f;;
}
.add-news-icon{
  width: 15px;
  cursor: pointer;
}
#add-news{
  font-weight: 600;
  cursor: pointer;
}


/* Overlay Styles */
.overlay-news {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.overlay-news.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.close:hover {
  color: #333;
}

.modal-content h3 {
  margin: 0 0 25px 0;
  color: #333;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #227582;
  box-shadow: 0 0 0 3px rgba(6, 73, 94, 0.1);
}

.announce-btn {
    background: linear-gradient(135deg, #057789, #0bbeb9);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s 
ease;
}
#add-news-head{
  color:#154a52;
}
.announce-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.announce-btn:active {
  transform: translateY(0);
}




.toast-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.4s;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(-10px);
}
/* Layout around cards */
.news-section {
  padding: 40px 0 60px;
  background: #f4f7f8;      /* light grey like page bg */
}


.news-item {
    position: relative;
    width: 430px;
    background: #e4eff2;
    border-radius: 10px;
    padding: 18px 18px 16px;
    border: 1px solid #c7d9df;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s 
ease, box-shadow 0.2s 
ease, border-color 0.2s 
ease;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  /* border-color: #2f8791;            teal accent */
}

/* Top action slider (already bana hua) */
.news-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: linear-gradient(90deg, #11342e, #9cc3ca);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  border-radius: 10px 10px 0 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.news-item:hover .news-actions {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.news-action-btn {
  border: none;
  background: rgba(255,255,255,0.95);
  color: #1f5f66;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.news-action-btn.delete-news { color: #c62828; }

.news-action-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* Inner content */
.news-item-inner {
  padding-top: 6px;
}

.news-title {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #1c3c4a;          /* dark slate heading */
}

.news-meta-row {
  font-size: 13px;
  color: #52636b;
  margin-bottom: 6px;
}

.news-date {
  font-weight: 600;
}

.news-author {
  margin: 0;
  font-style: italic;
}

.news-content {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #34454d;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .news-container {
    justify-content: center;
  }

  .news-item {
    width: 90%;
    max-width: 320px;
  }
}

.news-item-inner-admin {
    transition: margin-top 0.3s ease;
}

.news-item:hover .news-item-inner-admin {
    margin-top: 20px;
}

/* ------------------------------delete css--------------- */
.delete-modal h3 {
  margin-top: 0;
  color: #b91c1c;
}

.delete-modal p {
  margin: 10px 0 20px;
  color: #444;
}

.delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary,
.btn-danger {
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* ===== Upload UI (same as before, in case not added) ===== */

#gallery-upload-form {
  max-width: 800px;
  margin: 32px auto 16px;
  padding: 20px 24px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  box-sizing: border-box;
}

.gallery-upload-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

.gallery-upload-subtitle {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #f0f4ff;
  color: #1c3d8f;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px dashed #1c3d8f;
  margin-right: 12px;
}

.file-input-label input[type="file"] {
  display: none;
}

.upload-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: #1c3d8f;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.upload-btn:hover {
  background: #162f6b;
}

/* ===== Gallery grid ===== */

/* .gallery-section { */
  /* max-width: 1200px; */
  /* margin: 20px 0px 100px 40px ;
  padding: 0 16px;
  box-sizing: border-box;
} */

.gallery-section {
  width: 100%;
  /* max-width: 1200px;   optional */
  margin: 20px auto 100px;  /* 🔥 auto = center */
  padding: 0 16px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
}


.gallery-title {
  text-align: center;
  margin: 24px 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-empty {
  text-align: center;
  color: #777;
  margin-bottom: 32px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.gallery-card {
    position: relative;
    flex: 0 1 450px;
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-media-wrapper {
  width: 100%;
  /* fixed height hata do, auto rakho */
  /* height: 200px; */
}

/* images/videos – same box, but full visible */
.gallery-card img,
.gallery-card video {
  width: 100%;
  height: auto;          /* height auto so aspect‑ratio safe */
  object-fit: contain;   /* ya scale-down; dono crop nahi karte */
  display: block;
}

/* Delete button on hover (admin only) */

.gallery-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-card:hover .gallery-delete-btn {
  display: flex;
}

/* Overlay confirm dialog */

.delete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.delete-overlay.hidden {
  display: none;
}

.delete-dialog {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 10px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}

.delete-dialog h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.delete-dialog p {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.delete-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-danger {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #d9534f;
  color: #fff;
  cursor: pointer;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #333;
  cursor: pointer;
}

.btn-danger:hover {
  background: #c9302c;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  #gallery-upload-form {
    margin: 20px 12px;
    padding: 16px;
  }

  .gallery-grid {
    gap: 12px;
  }

  .gallery-card {
    flex: 0 1 45%;
    max-width: none;
  }
}
.nav-item.information {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  width: 35px;
}

.nav-item.information::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #4f46e5, #22c55e, #eab308);
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: infoGlow 4s ease-in-out infinite;
}


.nav-item.information:hover::before,
.nav-item.information:focus-visible::before {
  animation: none;
  background: #5D8183;
}

.nav-item.information:hover,
.nav-item.information:focus-visible {
  color: #ffffff;
}


@keyframes infoGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gallery-title {
    position: relative;
    text-align: left;
    margin: 16px 0 24px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3e7d8d;
}

/* Decorative line under heading */
.gallery-title::after {
    content: "";
    display: block;
    margin-top: 6px;
    width: 60px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #083c41, #81c3d2);
}
.gallery-title {
  text-align: center;
}

.gallery-title::after {
  margin: 6px auto 0;
}

@media (max-width: 1240px) {
    .nav-items a:first-child {
        margin-top: 15px;
    }
}
/* Upload block */

#knowledge-upload-form {
  max-width: 800px;
  margin: 32px auto 16px;
  padding: 20px 24px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  box-sizing: border-box;
}

.knowledge-upload-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

.knowledge-upload-subtitle {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
}

/* Grid */

.knowledge-section {
  margin: 20px 40px 100px 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.knowledge-title {
  position: relative;
  text-align: center;
  margin: 16px 0 24px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3e7d8d;
}

.knowledge-title::after {
  content: "";
  display: block;
  margin: 6px auto 0;
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #083c41, #81c3d2);
}

.knowledge-empty {
  text-align: center;
  color: #777;
  margin-bottom: 32px;
}

.knowledge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.knowledge-card {
  position: relative;
  flex: 0 1 450px;
  max-width: 450px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.knowledge-media-wrapper {
  width: 100%;
}

/* Images / videos */

.knowledge-card img,
.knowledge-card video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Delete button */

.knowledge-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.knowledge-card:hover .knowledge-delete-btn {
  display: flex;
}

/* Overlay (reuse same base classes) */

#knowledge-delete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#knowledge-delete-overlay.hidden {
  display: none;
}

/* Mobile */

@media (max-width: 600px) {
  #knowledge-upload-form {
    margin: 20px 12px;
    padding: 16px;
  }

  .knowledge-grid {
    gap: 12px;
  }

  .knowledge-card {
    flex: 0 1 100%;
    max-width: none;
  }
}
