/*==============================================================
	Global
==============================================================*/
@font-face {
  font-family: "vicBold";
  src: url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Bold.woff) format("woff"), url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Bold.woff2) format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "vicSemiBold";
  src: url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-SemiBold.woff) format("woff"), url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-SemiBold.woff2) format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "vicMedium";
  src: url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Medium.woff) format("woff"), url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Medium.woff2) format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "vicRegular";
  src: url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Regular.woff) format("woff"), url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Regular.woff2) format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "vicLight";
  src: url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Light.woff) format("woff"), url(https://ik.imagekit.io/8m142qhpi4c/fonts/VIC-Light.woff2) format("woff2");
  font-display: swap;
}

html,
body.has-wordcloud {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f7f7f9;
}

body.has-wordcloud .wp-site-blocks {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.has-wordcloud .acf-main-row {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  box-sizing: border-box;
}

.acf-form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.acf-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.acf-submit {
  background: #0073aa;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.acf-submit:hover {
  background: #005177;
}

/* Entry Display Styles */
.acf-entries-container {
  max-width: 30%;
  min-width: 30%;
  flex: 1;
  min-height: 100%;
  margin: 0 auto;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.acf-entries-window {
  width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.acf-entry {
  width: 100%;
  margin: 0 auto 2rem auto;
  background: #fff;
  color: #222;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transition: none;
  z-index: 1;
  pointer-events: auto;
  display: block;
}

.acf-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  max-width: 200rem;
}

.acf-entry-name {
  font-weight: 600;
  color: #333;
}

.acf-entry-date {
  color: #666;
  font-size: 0.9rem;
}

.acf-entry-description {
  color: #444;
  line-height: 1.6;
}

/* Admin Table Styles */
.wp-list-table .button {
  margin: 0 0.25rem;
}

.edit-entry {
  background: #0073aa;
  color: white;
}

.delete-entry {
  background: #dc3232;
  color: white;
}

/* Animation for entries */
.acf-entry.removing {
  animation: fadeOutDown 0.5s ease forwards;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

#acf-wordcloud {
  min-width: 70%;
  max-width: 70%;
  flex: 1;
  min-height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

#acf-wordcloud svg {
  width: 100%;
  height: 100%;
  display: block;
}

#acf-wordcloud text {
  font-family: 'vicBold', Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity, font-size;
}


body.has-wordcloud .site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}


/* Responsive adjustments for word cloud pages */
@media screen and (max-width: 768px) {
  body.has-wordcloud .site-content {
    padding: 1rem;
  }

  body.has-wordcloud #acf-wordcloud {
    margin: 1rem auto;
  }
}

@keyframes acfEntryIn {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes acfEntryOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-60px);
  }
}

.has-wordcloud .entry-content {
  --acf-scale-factor: 1.3;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-items: stretch;
  aspect-ratio: 16 / 9;
  width: calc(1920px / var(--acf-scale-factor, 1));
  min-width: calc(1920px / var(--acf-scale-factor, 1));
  max-width: calc(1920px / var(--acf-scale-factor, 1));
  min-height: calc(1080px / var(--acf-scale-factor, 1));
  max-height: calc(1080px / var(--acf-scale-factor, 1));
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #1e2028;
}

@media (max-width: 900px) {
  .acf-main-row {
    flex-direction: column;
    width: 100vw;
    height: auto;
    min-height: 100vh;
  }

  #acf-wordcloud,
  .acf-entries-container {
    width: 100vw;
    height: 50vh;
    min-width: 0;
    min-height: 0;
  }
}



/* --- Clean Vertical Carousel --- */
.carousel-parent {
  flex: 1 1 30%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-block-start: 0;
}

.carousel-window {
  position: relative;
  width: 100%;
  max-height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem 5rem 2rem 0;
  box-sizing: border-box;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-60px);
  pointer-events: none;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

.carousel-slide.out {
  opacity: 0;
  transform: translateY(60px);
  z-index: 1;
}

.carousel-slide-content {
  color: #fff;
}

.char-count {
  font-size: 0.95em;
  color: #888;
  margin-top: 0.25rem;
  text-align: right;
}


.form-bg {
  min-height: 100vh;
}

.has-entry-form .entry-content.wp-block-post-content img {
  max-width: 320px;
}

body.has-entry-form {
  background-color: #1e2028 !important;
  width: 100%;
}

@media (max-width: 1080px) {


  .has-entry-form .form-bg {
    min-height: 0 !important;
    display: block !important;
    padding: 1rem !important;
    width: 100% !important;
  }

  .has-entry-form .entry-content.wp-block-post-content {
    display: block !important;

  }

  .has-entry-form .form-container-group {
    padding: 2rem 0 0 !important;
    background: none !important;
    display: block !important;
  }

  .has-entry-form .acf-form-container {
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    padding: 2rem 2rem !important;
  }

  .has-entry-form .char-count {
    font-size: .75rem;
  }

  .form-group label {
    font-size: .9rem;
  }

  .form-group {
    gap: .25rem !important;
  }

  .has-entry-form .entry-content.wp-block-post-content img {
    margin: 0 auto 3rem;
    max-width: 200px;
  }
}

.acf-success-message--big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e6f9ed;
  border: 2px solid #22c55e;
  color: #14532d;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 1rem;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  max-width: 420px;
  box-shadow: 0 4px 24px 0 rgba(34, 197, 94, 0.08);
  animation: acf-success-pop 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
  z-index: 1000;
  text-align: center;
}

.acf-success-message--big-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 600px) {
  .acf-success-message--big-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }
}

.acf-success-icon {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acf-success-text {
  text-align: center;
  margin-bottom: 0;
  font-size: 1.3rem;
}

.acf-success-another-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px 0 rgba(34, 197, 94, 0.08);
  margin-top: 2rem;
}

.acf-success-another-btn:hover {
  background: #005177;
}

@media (min-width: 600px) {
  .acf-success-another-btn {
    margin-top: 0;
    margin-left: 2rem;
  }
}

@keyframes acf-success-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.acf-error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fbeaea;
  border: 2px solid #dc2626;
  color: #991b1b;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 1rem;
  margin: 2rem auto 0 auto;
  padding: 1.5rem 2rem;
  max-width: 420px;
  box-shadow: 0 4px 24px 0 rgba(220, 38, 38, 0.08);
  animation: acf-error-pop 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
  z-index: 1000;
  text-align: center;
}

.acf-error-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes acf-error-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
