@font-face {
  font-family: 'Niconne';
  src: url('Fonts/Niconne-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Mini';
  src: url('Fonts/mini.otf') format('opentype');
}

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

body {
  background-color: #CCE0FB;
}

.screen {
  width: 65%;
  min-height: 100vh;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .screen {
    width: 70%;
  }
}

@media (max-width: 800px) {
  .screen {
    width: 80%;
  }
}

@media (max-width: 500px) {
  .screen {
    width: calc(100% - 50px);
  }
}

.screen-1 {
  background-color: transparent;
  padding: 2% 0;
}

.header-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.navbar {
  width: 100%;
  margin-top: 2%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.2% 5%;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-link {
  text-align: center;
  padding: 0.4% 1%;
  text-decoration: none;
  color: #555555;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1vw;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: #CCE0FB;
  color: #333333;
  transform: translateY(-2px);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-active {
  background-color: #CCE0FB;
  color: #333333;
  font-weight: 600;
}

.content-container {
  width: 100%;
  margin-top: 25px;
  background-color: #ffffff;
  min-height: 800px;
  display: none;
}

.content-container.active {
  display: block;
}

.contact-container {
  min-height: auto;
  padding-bottom: 2%;
  padding-top: 1%;
}

/* Leadership Section */
#leadership.content-container {
  background-color: #F3DEE8;
  min-height: auto;
  padding: 3% 3%;
}

.leadership-title {
  text-align: center;
  font-family: 'Niconne', cursive;
  font-size: 3vw;
  font-weight: 400;
  color: #333;
  margin-bottom: 2%;
}

.leadership-title em {
  font-family: 'Niconne', cursive;
  font-style: italic;
  color: #C47A94;
  font-weight: 400;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2%;
  row-gap: 3.5%;
}

.leadership-card {
  background: #ffffff;
  border-radius: 1.5vw;
  padding: 4%;
  border: 1px solid #e8d0db;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5%;
}

.card-icon {
  width: 3vw;
  height: 3vw;
  background: #F3DEE8;
  border-radius: 0.8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2vw;
  color: #333;
}

.card-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8vw;
  font-weight: 600;
  letter-spacing: 1px;
  color: #C47A94;
  background: #F3DEE8;
  padding: 0.4% 1.2%;
  border-radius: 20px;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2vw;
  font-weight: 700;
  color: #222;
  margin: 0 0 1%;
}

.card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9vw;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Research Section */
#research.content-container {
  background-color: #ffffff;
  min-height: auto;
  padding: 20px 30px 30px;
}

.research-poster-img {
  width: 50%;
  height: auto;
  display: block;
}

.implant-viewer {
  display: flex;
  align-items: center;
  gap: 2%;
  width: 55%;
  margin-top: 20px;
  margin-left: auto;
}

.implant-page-img {
  width: 100%;
  height: auto;
  display: block;
  flex: 1;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.implant-arrow {
  background: #f0f0f0;
  border: none;
  font-size: 1.5vw;
  color: #666;
  cursor: pointer;
  width: 5%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.implant-arrow:hover {
  background: #ddd;
  color: #333;
}

.implant-page-number {
  display: block;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #999;
  text-align: right;
}

/* Testimonials Section */
#testimonials.content-container {
  background-color: #F3DEE8;
  min-height: auto;
  overflow: visible;
  padding-bottom: 3%;
}
.testimonials-wrapper {
  position: relative;
  width: 50%;
  margin-left: 3%;
  padding-top: 2%;
}

.testimonials-envelope-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.testimonials-letter-img {
  width: 48%;
  height: auto;
  position: absolute;
  top: 10%;
  right: -10%;
  z-index: 1;
  transform: rotate(12deg);
  transition: all 0.6s ease;
  cursor: pointer;
}

.testimonials-click-img {
  position: absolute;
  top: 40%;
  right: -75%;
  width: 55%;
  height: auto;
  z-index: 0;
}

.testimonial-bubble {
  position: absolute;
  top: 20%;
  left: 150%;
  z-index: 3;
  width: fit-content;
  background: #fff;
  border-radius: 1.5vw;
  padding: 3%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9vw;
  color: #3F3F4F;
  line-height: 1.6;
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
  box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.testimonials-wrapper.open .testimonial-bubble {
  opacity: 1;
  pointer-events: auto;
}

.testimonials-wrapper.open .testimonials-letter-img {
  width: 48%;
  top: 15%;
  right: -55%;
  transform: rotate(0deg);
}

#blog.content-container {
  background: transparent !important;
  background-color: transparent !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin-top: 25px;
}

/* Contact Section */
.contact-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5% 3% 1%;
}

.contact-title {
  font-family: 'Niconne', cursive;
  font-size: 2.5vw;
  color: #333333;
  font-weight: 400;
}

.contact-info {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9vw;
  color: #333333;
  text-align: right;
}

.contact-divider {
  border-bottom: 2px dotted #555555;
  margin: 0 3%;
}

.contact-form-box {
  margin: 2.5% 3%;
  background-color: #CCE0FB;
  border-radius: 4px;
  padding: 2.5% 3%;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}

.form-row {
  display: flex;
  gap: 1.5vw;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4vw;
}

.form-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9vw;
  font-weight: 600;
  color: #333333;
}

.form-input {
  padding: 0.7vw 1vw;
  border: 1px solid #999999;
  border-radius: 0.8vw;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9vw;
  color: #333333;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: #ffffff;
}

.form-input:focus {
  border-color: #555555;
}

.form-textarea {
  min-height: 10vw;
  resize: vertical;
}

.form-button {
  width: 100%;
  padding: 0.8vw;
  background-color: #f0d4dc;
  border: none;
  border-radius: 0.8vw;
  font-family: 'Niconne', cursive;
  font-size: 1.5vw;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.7vw;
}

.form-button:hover {
  background-color: #e8bcc8;
  color: #333333;
}

/* Gallery Section */
#gallery.content-container {
  min-height: auto;
  overflow: hidden;
  padding-bottom: 30px;
}

.gallery-display {
  float: left;
  width: 40%;
  margin-left: 8%;
  padding-top: 25%;
  position: relative;
}

.gallery-toothclick-img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-photo {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: auto;
  border-radius: 12px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
  z-index: 2;
  object-fit: contain;
}

.gallery-photo.active {
  opacity: 1;
  transform: scale(1);
}

.teeth-wrapper {
  position: relative;
  float: right;
  width: 50%;
}

.gallery-teeth-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.tooth-zone {
  position: absolute;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .tooth-zone:hover {
    opacity: 1;
  }
}

.tooth-zone.active {
  opacity: 1;
}

.gem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Gem 1 */
.tooth-1 {
  top: 32%;
  left: 25.5%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 2 */
.tooth-2 {
  top: 35%;
  left: 33%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 3 */
.tooth-3 {
  top: 38%;
  left: 40%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 4 */
.tooth-4 {
  top: 41.5%;
  left: 48%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 5 */
.tooth-5 {
  top: 44.5%;
  left: 53.7%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 6 */
.tooth-6 {
  top: 46.5%;
  left: 59.7%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 7 */
.tooth-7 {
  top: 49.5%;
  left: 66%;
  width: 4%;
  transform: rotate(15deg);
}

/* Gem 8 */
.tooth-8 {
  top: 52.5%;
  left: 70%;
  width: 4%;
  transform: rotate(15deg);
}

/* Gem 9 */
.tooth-9 {
  top: 56%;
  left: 18%;
  width: 4%;
  transform: rotate(15deg);
}

/* Gem 10 */
.tooth-10 {
  top: 57.7%;
  left: 21%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 11 */
.tooth-11 {
  top: 60.7%;
  left: 27.5%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 12 */
.tooth-12 {
  top: 61.7%;
  left: 33%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 13 */
.tooth-13 {
  top: 62%;
  left: 40.5%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 14 */
.tooth-14 {
  top: 63.5%;
  left: 47.8%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 15 */
.tooth-15 {
  top: 63.2%;
  left: 54.3%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 16 */
.tooth-16 {
  top: 61.8%;
  left: 62.8%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 17 */
.tooth-17 {
  top: 52%;
  left: 26%;
  width: 6%;
  transform: rotate(15deg);
}

/* Gem 18 */
.tooth-18 {
  top: 52%;
  left: 32.7%;
  width: 5%;
  transform: rotate(15deg);
}

/* Gem 19 */
.tooth-19 {
  top: 51.6%;
  left: 40.3%;
  width: 5%;
  transform: rotate(15deg);
}

/* Blog Section */
.blog-content {
  background: #F3DEE8;
  overflow-y: auto;
}

.blog-inner {
  padding: 2% 3%;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}

.blog-post {
  background: #fff;
  border-radius: 1.5vw;
  padding: 1.5% 2%;
  position: relative;
  overflow: visible;
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1%;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  overflow: visible;
}

.blog-post-avatar {
  width: 3.5vw !important;
  height: auto !important;
  max-width: 3.5vw !important;
  min-width: 3.5vw !important;
  object-fit: contain;
  flex-shrink: 0;
}

.blog-post-username {
  font-family: 'Mini', sans-serif;
  font-size: 1.2vw;
  color: #3F3F4F;
}

.blog-post-tag {
  padding: 0.5vw 1.2vw;
  border-radius: 20px;
  font-family: 'Mini', sans-serif;
  font-size: 0.8vw;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.blog-post-tag.portfolio {
  background: #FFE4EC;
  color: #8B4B6B;
}

.blog-post-tag.life {
  background: #E4F0FF;
  color: #4B6B8B;
}

.blog-post-text {
  font-family: 'Mini', sans-serif;
  font-size: 1vw;
  color: #3F3F4F;
  line-height: 1.6;
  margin-bottom: 1%;
}

.blog-post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  margin-bottom: 1%;
}

.blog-post-images.double {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1vw;
  justify-content: start;
}

.blog-post-images img {
  border-radius: 1vw;
  object-fit: cover;
  height: auto;
  max-width: 100%;
}

.blog-post-date {
  text-align: right;
  font-family: 'Mini', sans-serif;
  font-size: 0.9vw;
  color: #999;
}

.blog-empty {
  text-align: center;
  padding: 3% 2%;
  font-family: 'Mini', sans-serif;
  font-size: 1.1vw;
  color: #999;
}

/* Blog Admin Panel */
.blog-admin-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.blog-admin-overlay.active {
  display: flex;
}

.blog-admin-panel {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.blog-admin-title {
  font-family: 'Mini', sans-serif;
  font-size: 22px;
  color: #3F3F4F;
}

.blog-admin-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.blog-admin-close:hover {
  color: #3F3F4F;
}

.blog-admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-admin-label {
  font-family: 'Mini', sans-serif;
  font-size: 14px;
  color: #3F3F4F;
}

.blog-admin-select,
.blog-admin-textarea {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-family: 'Mini', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

.blog-admin-select:focus,
.blog-admin-textarea:focus {
  outline: none;
  border-color: #F3DEE8;
}

.blog-admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.blog-admin-images-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.blog-admin-image-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.blog-admin-image-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-admin-image-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-admin-image-size {
  font-family: 'Mini', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100px;
  text-align: center;
  -moz-appearance: textfield;
}

.blog-admin-image-size::-webkit-outer-spin-button,
.blog-admin-image-size::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.blog-admin-add-image {
  padding: 10px 20px;
  background: #F3DEE8;
  border: 2px dashed #d4a5b9;
  border-radius: 12px;
  font-family: 'Mini', sans-serif;
  font-size: 14px;
  color: #8B4B6B;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-admin-add-image:hover {
  background: #f9e8ef;
}

.blog-admin-submit {
  padding: 15px 30px;
  background: #3F3F4F;
  border: none;
  border-radius: 25px;
  font-family: 'Mini', sans-serif;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.blog-admin-submit:hover {
  background: #5a5a6e;
  transform: scale(1.02);
}

.blog-admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-admin-tab {
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-family: 'Mini', sans-serif;
  font-size: 13px;
  color: #3F3F4F;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-admin-tab:hover {
  background: #f5f5f5;
}

.blog-admin-tab.active {
  background: #3F3F4F;
  color: #fff;
  border-color: #3F3F4F;
}

.blog-admin-manage {
  max-height: 400px;
  overflow-y: auto;
}

.blog-admin-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 12px;
  gap: 15px;
}

.blog-admin-post-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.blog-admin-post-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-family: 'Mini', sans-serif;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.blog-admin-post-tag.portfolio {
  background: #FFE4EC;
  color: #8B4B6B;
}

.blog-admin-post-tag.life {
  background: #E4F0FF;
  color: #4B6B8B;
}

.blog-admin-post-preview {
  font-family: 'Mini', sans-serif;
  font-size: 13px;
  color: #3F3F4F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.blog-admin-post-date {
  font-family: 'Mini', sans-serif;
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
}

.blog-admin-post-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.blog-admin-edit-btn {
  padding: 8px 16px;
  background: #6b9eff;
  border: none;
  border-radius: 8px;
  font-family: 'Mini', sans-serif;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-admin-edit-btn:hover {
  background: #5288e8;
  transform: scale(1.05);
}

.blog-admin-delete-btn {
  padding: 8px 16px;
  background: #ff6b6b;
  border: none;
  border-radius: 8px;
  font-family: 'Mini', sans-serif;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-admin-delete-btn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

.blog-admin-empty {
  text-align: center;
  padding: 30px;
  font-family: 'Mini', sans-serif;
  font-size: 14px;
  color: #999;
}

/* About Section */
#about.content-container {
  min-height: auto;
  padding: 0;
}

.about-img {
  width: 40%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: 3%;
}
