@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 346.8 77.2% 49.8%;
    --primary-foreground: 355.7 100% 99%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 45%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 346.8 77.2% 49.8%;
    --chart-1: 347 77% 50%;
    --chart-2: 352 83% 91%;
    --chart-3: 350 80% 72%;
    --chart-4: 351 83% 82%;
    --chart-5: 349 77% 62%;
  }

  .dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 346.8 77.2% 49.8%;
    --primary-foreground: 355.7 100% 99%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 221.2 83.2% 53.3%;
    --chart-1: 347 77% 50%;
    --chart-2: 349 77% 62%;
    --chart-3: 350 80% 72%;
    --chart-4: 351 83% 82%;
    --chart-5: 352 83% 91%;
  }
}
.content {
  line-height: 1.5;
}

.ordlista-content-style h1 {
  font-size: 2rem;
}

.ordlista-content-style h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 2rem;
}
.ordlista-content-style p {
  font-size: 1rem;
  line-height: 28px;
}

.ordlista-content-style li a {
  color: #0047ab;
  display: block;
}

.content a {
  color: red;
}
/* Desktop styles */
.content p {
  font-size: 18px;
  margin-bottom: 1rem;
  font-weight: 300;
}

.content strong {
  margin: 10px 0;
  font-weight: 500;
  font-size: 18px;
}

.content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
}

.content h2 strong {
  font-size: 24px;
  font-weight: 600;
}

.content h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  margin: 20px 0;
}

.content h3 strong {
  font-size: 20px;
  font-weight: 500;
}

.content h4 {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}

.content h4 strong {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}

/* Tablet styles (768px to 1023px) */
@media screen and (max-width: 1023px) {
  .content p {
    font-size: 18px;
    margin-bottom: 1.75rem;
  }

  .content strong {
    font-size: 18px;
  }

  .content h2 {
    font-size: 22px;
    margin: 18px 0;
  }

  .content h2 strong {
    font-size: 22px;
  }

  .content h3 {
    font-size: 18px;
  }

  .content h3 strong {
    font-size: 18px;
  }

  .content h4 {
    font-size: 16px;
  }

  .content h4 strong {
    font-size: 16px;
  }
}

/* Mobile styles (up to 767px) */
@media screen and (max-width: 767px) {
  .content p {
    font-size: 16px;
    margin-bottom: 1.5rem;
  }

  .content strong {
    font-size: 16px;
    margin: 8px 0;
  }

  .content h2 {
    font-size: 20px;
    margin: 16px 0;
  }

  .content h2 strong {
    font-size: 20px;
  }

  .content h3 {
    font-size: 16px;
  }

  .content h3 strong {
    font-size: 16px;
  }

  .content h4 {
    font-size: 14px;
  }

  .content h4 strong {
    font-size: 14px;
  }
}

/* Small mobile styles (up to 425px) */
@media screen and (max-width: 425px) {
  .content p {
    font-size: 14px;
    margin-bottom: 1.25rem;
  }

  .content a {
    font-size: 14px;
  }

  .content strong {
    font-size: 14px;
    margin: 6px 0;
  }

  .content h2 {
    font-size: 18px;
    margin: 14px 0;
  }

  .content h2 strong {
    font-size: 18px;
  }

  .content h3 {
    font-size: 14px;
  }

  .content h3 strong {
    font-size: 14px;
  }

  .content h4 {
    font-size: 12px;
  }

  .content h4 strong {
    font-size: 12px;
  }
}
/* Desktop styles */
.content ul,
.content ul.wp-block-list {
  margin: 15px 10px;
  list-style: disc;
}

.content ul li,
.content ul.wp-block-list li {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 0.3rem;
  margin-left: 0.8rem;
}

.content ul li:before,
.content ul.wp-block-list li:before {
  color: #3b3232;
  margin-right: 10px;
}

.content ol,
.content ol.wp-block-list {
  margin: 15px 0;
  list-style-type: decimal;
  counter-reset: item;
}

.content ol li::marker,
.content ol.wp-block-list li::marker {
  margin-right: 10px;
  font-weight: 400;
}

.content ol li,
.content ol.wp-block-list li {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 0.3rem;
  margin-left: 1rem;
}

.content ol li strong,
.content ol.wp-block-list li strong {
  position: relative;
  display: inline-block;
  counter-increment: item;
}

.content ol li:not(:has(strong)),
.content ol.wp-block-list li:not(:has(strong)) {
  counter-increment: none;
  margin-left: 2.5rem;
}

.content ol li:has(strong),
.content ol.wp-block-list li:has(strong) {
  margin-left: 2.5rem;
}

/* Small mobile styles (up to 425px) */
@media screen and (max-width: 425px) {
  .content p {
    font-size: 14px;
    margin-bottom: 1.25rem;
  }

  .content strong {
    font-size: 14px;
    margin: 6px 0;
  }

  .content h2 {
    font-size: 18px;
    margin: 14px 0;
  }

  .content h2 strong {
    font-size: 18px;
  }

  .content h3 {
    font-size: 14px;
  }

  .content h3 strong {
    font-size: 14px;
  }

  .content h4 {
    font-size: 12px;
  }

  .content h4 strong {
    font-size: 12px;
  }

  /*Mobile styles for lists */
  .content ul li,
  .content ul.wp-block-list li,
  .content ol li,
  .content ol.wp-block-list li {
    font-size: 14px;
    margin-bottom: 0.25rem;
  }

  .content ol li strong,
  .content ol.wp-block-list li strong {
    font-size: 14px;
  }
}

.content figure.alignright {
  float: right;
  margin: 20px 0 20px 20px;
}
.content figure.aligncenter {
  justify-items: center;
  margin: 20px;
}
.content figure.alignleft {
  float: left;
  margin: 20px 20px 20px 0;
}
.content img.alignleft {
  float: left;
  margin: 0 20px 0 0;
}
.content img.alignright {
  float: right;
  margin: 0 0 0 20px;
}

.kt-row-layout-inner,
.kb-row-layout-wrap {
  position: relative;
  border: 0 solid rgba(0, 0, 0, 0);
}

.kt-row-layout-inner:before,
.kb-row-layout-wrap:before {
  clear: both;
  display: table;
}

.kt-row-column-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--global-row-gutter-md, 2rem) var(--global-row-gutter-md, 2rem);
  grid-auto-rows: minmax(min-content, max-content);
  z-index: 1;
  position: relative;
}

.wp-block-kadence-column {
  display: flex;
  flex-direction: column;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

.kt-inside-inner-col {
  flex-direction: column;
  border: 0 solid rgba(0, 0, 0, 0);
  position: relative;
  transition: all 0.3s ease;
}

h1.wp-block-kadence-advancedheading {
  font-weight: 600;
  color: black;
  font-size: xx-large;
}
h2.wp-block-kadence-advancedheading {
  font-weight: 500;
  color: black;
  font-size: x-large;
  margin-top: 2rem;
}
.content p.wp-block-kadence-advancedheading {
  font-size: large;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* .wp-block-image img {
  margin: 20px 0;
  max-width: 400px;
  height: auto;
  width: 100%;
} */

/* Reset Gutenberg gallery defaults */
.content .wp-block-gallery {
  display: block !important;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* Remove default figure margins and create masonry base */
.content .wp-block-gallery figure {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

/* Create masonry layout */
@media screen and (min-width: 768px) {
  .content .wp-block-gallery {
    column-count: 3;
    column-gap: 1rem;
  }
}

@media screen and (max-width: 767px) {
  .content .wp-block-gallery {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .content .wp-block-gallery {
    column-count: 1;
  }
}

/* Handle images within the gallery */
.content .wp-block-gallery figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding: 10px;
  transition: transform 0.3s ease;
}

/* Optional hover effect */
.content .wp-block-gallery figure img:hover {
  transform: scale(1.02);
}

/* Remove unnecessary spacing and styles */
.content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: 100%;
  margin: 0 0 1rem 0;
}

/* Reset WordPress default spacing */
.content .wp-block-gallery.has-nested-images {
  padding: 0;
  gap: 0;
}

/* Ensure proper spacing between items */
.content .wp-block-gallery figure.wp-block-image {
  margin-bottom: 1rem;
}

/* Style for the figure and image container */
.content .wp-block-gallery figure.wp-block-image {
  position: relative;
  margin-bottom: 1rem;
}

/* Style for the caption */
.content .wp-block-gallery figcaption.wp-element-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Desktop view */
.content .wp-block-columns-is-layout-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

/* Mobile view */
@media screen and (max-width: 768px) {
  .content .wp-block-columns-is-layout-flex {
    flex-direction: column;
    align-items: center;
  }
  .wp-block-image img {
    max-width: 100%;
  }
}

.content .wp-block-buttons {
  display: block;
  background-color: #ef4444;
  padding: 6px;
  border: 2px solid #ef4444;
  border-radius: 4px;
  width: fit-content;
  text-align: center;
  cursor: pointer;
  margin: 20px auto;
  transition: all 0.3s ease;
}

.content .wp-block-buttons:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

.content .wp-block-buttons a {
  color: white;
  padding: 2px;
  display: block;
  text-align: center;
  text-decoration: none;
}

.content .wp-block-buttons:hover a {
  color: white;
}

@media screen and (max-width: 768px) {
  .content iframe {
    width: 100%;
    height: auto;
  }
}
.content iframe {
  margin: 30px 0;
}

.content p.has-text-align-center {
  text-align: center;
}
