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

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

@import url("/font/stylesheet.css");
@import url("/font/pp-nikkei/stylesheet.css");

a:hover {
  color: inherit !important;
}

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  background-color: #f4f8f8;
}

.font-pp-nikkei {
  font-family: "PP Nikkei Journal" !important;
}

.desc-container * {
  background-color: transparent !important;
}

.group:hover p {
  -webkit-text-stroke-width: 0.5px !important;
}

.group:hover a {
  -webkit-text-stroke-width: 0.5px !important;
}

.group:hover svg path {
  stroke: black;
}


@layer utilities {
  /* XS */

  .text-xs-light {
    @apply text-[12px] leading-[20px] font-light;
  }

  .text-xs-regular {
    @apply text-[12px] leading-[20px] font-normal;
  }

  .text-xs-semibold {
    @apply text-[12px] leading-[20px] font-semibold;
  }

  /* SM */

  .text-sm-light {
    @apply text-[14px] leading-[22px] font-light;
  }

  .text-sm-regular {
    @apply text-[14px] leading-[22px] font-normal;
  }

  .text-sm-semibold {
    @apply text-[14px] leading-[22px] font-semibold;
  }

  /* MD */

  .text-md-light {
    @apply text-[16px] leading-[24px] font-light;
  }

  .text-md-regular {
    @apply text-[16px] leading-[24px] font-normal;
  }

  .text-md-medium {
    @apply text-[16px] leading-[24px] font-medium;
  }

  .text-md-semibold {
    @apply text-[16px] leading-[24px] font-semibold;
  }

  /* LG */

  .text-lg-light {
    @apply text-[18px] leading-[28px] font-light;
  }

  .text-lg-regular {
    @apply text-[18px] leading-[28px] font-normal;
  }

  .text-lg-semibold {
    @apply text-[18px] leading-[28px] font-semibold;
  }

  .text-lg-bold {
    @apply text-[18px] leading-[28px] font-bold;
  }

  /* XL */

  .text-xl-light {
    @apply text-[24px] leading-[36px] font-light;
  }

  .text-xl-regular {
    @apply text-[24px] leading-[36px] font-normal;
  }

  .text-xl-semibold {
    @apply text-[24px] leading-[36px] font-semibold;
  }

  .text-xl-bold {
    @apply text-[24px] leading-[36px] font-bold;
  }

  .text-2xl-semibold {
    @apply text-[32px] leading-[40px] font-semibold;
  }

  .text-2xl-light {
    @apply text-[40px] leading-[45px] font-light;
  }

  .text-3xl-semibold {
    @apply text-[40px] leading-[48px] font-semibold;
  }

  /* Headings */

  .text-heading-1 {
    @apply text-[72px] leading-[88px] font-normal;
  }

  .text-heading-2 {
    @apply text-[48px] leading-[56px] font-semibold;
  }

  .text-heading-3 {
    @apply text-[44px] leading-[52px] font-bold;
  }

  .text-heading-5 {
    @apply text-[30px] leading-[38px] font-semibold;
  }

  .text-heading-6 {
    @apply text-[28px] leading-[36px] font-normal;
  }

  .text-heading-7 {
    @apply text-[28px] leading-[36px] font-bold;
  }
}

.iti {
  display: flex !important;
  gap: 0px;
}

.iti__country-container {
  position: relative !important;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  padding: 8px !important;
  border-right: none;
}

.iti__selected-country {
  gap: 8px;
}

.iti__selected-country-primary {
  padding: 0px !important;
}

.iti__selected-dial-code {
  color: #7d898c;
  font-size: 14px;
  font-weight: 400;
}

.iti.iti--allow-dropdown.iti--separate-dial-code {
  width: 100%;
}

.iti--separate-dial-code .iti__selected-flag {
  background: none !important;
}

.focus\:border-green-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(37 211 102 / var(--tw-border-opacity)) !important;
}

.iti__tel-input {
  padding-left: 1rem !important;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  padding: 12px 40px 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  color: #4b5563;
  cursor: pointer;
  background-image: url("path/to/arrow-down-icon.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

input[type="date"] {
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  color: #4b5563;
  background-image: url("path/to/calendar-icon.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

/* Menu Start */
.menu-item {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
}

.menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-family: inherit;
  font-size: 14px;
  color: rgba(24, 24, 27, 0.5);
  line-height: 20px;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.3s ease-in-out;
}

.menu-link:hover {
  outline: none;
}

.submenu {
  position: absolute;
  top: 1.5rem;
  left: -2rem;
  min-width: 13rem;
  height: auto;
  padding: 0 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  border-radius: 0 0 0.25rem 0.25rem;
  border-top: 2px solid #0a0d0d;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: white;
}

.submenu-item {
  display: block;
  margin-top: 0.35rem;
}

.submenu-link {
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  color: #969697;
  transition: all 0.35s ease;
}

.submenu-link:hover {
  outline: none;
}

.menu-dropdown:hover>.submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 8;
}

.menu-mobile {
  display: none;
}

.menu-mobile.active {
  display: flex;
  flex-direction: column;
  background-color: white;
  position: absolute;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 16px;
  overflow-y: scroll;
  height: 100vh;
}

/* Custom Table */

.financial-calendar-description {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.financial-calendar-description p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #52525b;
}

.financial-calendar-description figure {
  width: 100% !important;
}

.financial-calendar-description figure table {
  border-radius: 24px;
}

.financial-calendar-description figure.table {
  border-radius: 24px;
  overflow: hidden;
  /* içeriğin köşelerden taşmasını önler */
}

/* opsiyonel: tabloya da aynı radius’u miras olarak ver */
.financial-calendar-description figure.table table {
  /* ayrı köşe-radius’u çalışması için */
  border-radius: inherit;
}

.financial-calendar-description figure table tr:first-child th,
.financial-calendar-description figure table tr:first-child td {
  background-color: #12343f;
  color: #ffffff80;
  font-size: 12px !important;
  font-weight: 500 !important;
  border: 1px solid #ffffff33;
  /* veya 600, 700 vs. */
}

.financial-calendar-description figure table tr th,
.financial-calendar-description figure table tr td {
  font-size: 14px !important;
  font-weight: 400 !important;
  /* veya 600, 700 vs. */
}

.financial-calendar-description figure table tr td:first-child {
  min-width: 280px;
}

.financial-calendar-description figure.table table tr td:not(:first-child) {
  text-align: center;
}

.financial-calendar-description figure.table table tr:not(:first-child):nth-child(odd) {
  background-color: #f9f9f9;
}

.financial-calendar-description figure table tr td {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 15.8px;
}

.financial-calendar-description figure.table th,
.financial-calendar-description figure.table td {
  border: 1px solid #e4e4e7;
}

@media (max-width: 992px) {
  .financial-calendar-description {
    width: 100%;
    /* kapsayıcı tam genişlik */
    overflow-x: auto;
    /* yatay scroll’u etkinleştir */
    -webkit-overflow-scrolling: touch;
    /* dokunarak kaydırmayı yumuşatır (iOS) */
  }

  .menu-item {
    margin-left: 0;
  }

  .menu-link {
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 16px;
  }

  .submenu-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu-mobile.active {
    max-height: 500px;
    /* Adjust as needed to fit your content */
  }

  .dropdown-icon {
    transition: transform 0.3s ease;
  }

  .dropdown-icon.rotate {
    transform: rotate(180deg);
  }

  .no-scroll {
    overflow: hidden;
  }

  .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .submenu-link {
    font-size: 16px;
    padding-left: 1rem;
    font-weight: 300 !important;
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Menu End */

.swiper-button-lock {
  display: block;
}

.animation-slider button.prev {
  left: 4rem;
}

.animation-slider button.next {
  right: 4rem;
}

.content-description ul {}

.content-description ul {
  list-style-type: none !important;
  padding-left: 0;
}

.content-description ul li {
  list-style-type: none !important;
  position: relative;
  padding-left: 32px;
  /* ikona yer bırakır */
  margin-bottom: 20px;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #212121 !important;
}

.content-description ul li::before {
  content: "";
  background-image: url("/img-content/site/success-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 3px;
  /* dikey hizalama */
}

@media (max-width: 992px) {
  .animation-slider button.prev {
    display: none;
  }

  .animation-slider button.next {
    display: none;
  }
}

.dropzone {
  min-height: 150px;
  border: 1px dashed #c6c8ca !important;
  background: #f8fafc !important;
  padding: 20px 20px;
  border-radius: 12px;
}

button.dz-button b {
  color: #0088f0 !important;
}

button.dz-button p {
  color: #475569;
  font-size: 14px;
}

.ck.ck-toolbar {
  border-top: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

.ck.ck-toolbar {
  border-radius: 10px 10px 0 0 !important;
  background: #f8fafc !important;
  border-bottom: none !important;
}

.ck.ck-editor__main {
  min-height: 320px !important;
}

.ck-restricted-editing_mode_standard.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-blurred {
  border-radius: 0 0 10px 10px !important;
  min-height: 320px;
}

.ck-restricted-editing_mode_standard.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-focused {
  border-radius: 0 0 10px 10px !important;
  min-height: 320px;
}

.reference-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #013846;
  border-radius: 100%;
}

.review-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #013846;
  border-radius: 100%;
}

.review-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #013846;
  border-radius: 100%;
}

.slider-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #013846;
  border-radius: 100%;
}

.reference-pagination .swiper-pagination-bullet-active {
  width: 32px;
  height: 12px;
  background-color: #013846;
  border-radius: 100px;
}

.review-pagination .swiper-pagination-bullet-active {
  width: 32px;
  height: 12px;
  background-color: #013846;
  border-radius: 100px;
}

.review-pagination .swiper-pagination-bullet-active {
  width: 32px;
  height: 12px;
  background-color: #013846;
  border-radius: 100px;
}

.slider-pagination .swiper-pagination-bullet-active {
  width: 32px;
  height: 12px;
  background-color: #013846;
  border-radius: 100px;
}

.title-container strong {
  color: #179999;
  font-weight: 800;
}

@keyframes flip {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(180deg);
  }
}

@keyframes flip-reverse {
  0% {
    transform: rotateX(180deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

/* Takla animasyonu */
.dropdown-arrow {
  display: inline-block;
  transform-style: preserve-3d;
}

/* Açılırken veya kapanırken animasyon */
.dropdown-arrow.flip {
  animation: flip 0.6s forwards;
}

/* Blog/Article Content Styles - Override editor styles while keeping formatting */
.blog-content,
.blog-content * {
  /* Reset font-size and color, keep formatting (bold, italic, etc.) */
  font-size: 16px !important;
  line-height: 24px !important;
  color: #52525b !important;
  font-family: "DM Sans", sans-serif !important;
}

.blog-content p {
  margin-bottom: 16px;
}

.blog-content strong,
.blog-content b {
  font-weight: 700 !important;
  /* Keep bold */
}

.blog-content em,
.blog-content i {
  font-style: italic !important;
  /* Keep italic */
}

.blog-content u {
  text-decoration: underline !important;
  /* Keep underline */
}

.blog-content h1 {
  font-size: 32px !important;
  line-height: 40px !important;
  font-weight: 700 !important;
  margin-bottom: 16px;
  color: #212121 !important;
}

.blog-content h2 {
  font-size: 24px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  margin-bottom: 12px;
  color: #212121 !important;
}

.blog-content h3 {
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 600 !important;
  margin-bottom: 12px;
  color: #212121 !important;
}

.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-size: 18px !important;
  line-height: 26px !important;
  font-weight: 600 !important;
  margin-bottom: 8px;
  color: #212121 !important;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-content ul li,
.blog-content ol li {
  margin-bottom: 8px;
}

.blog-content a {
  color: #179999 !important;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #12343F !important;
}

.blog-content blockquote {
  border-left: 4px solid #179999;
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: #3f3f46 !important;
}

.blog-content code {
  background-color: #f4f4f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace !important;
  font-size: 14px !important;
}

.blog-content pre {
  background-color: #f4f4f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.blog-content pre code {
  background-color: transparent;
  padding: 0;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.blog-content table th,
.blog-content table td {
  border: 1px solid #e4e4e7;
  padding: 8px 12px;
}

.blog-content table th {
  background-color: #f4f4f5;
  font-weight: 600 !important;
  color: #212121 !important;
}

.blog-content hr {
  border: none;
  border-top: 1px solid #e4e4e7;
  margin: 24px 0;
}