:root {
  --premary_width: 1200px;
  --premary_margin: 96px 0;

  /* --BG_Dark_Light_Mode: #000;
  --CO_Dark_Light_Mode: #000; */

  --Animation_width: 0px;
  --header_Width: 10px;

  --Secondary-Color: #e9eff6;
}

.e-con,
.e-con-inner,
.elementor-element {
  min-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

*,
*::before,
*::after,
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.5s;

  /* background: #e8e8e8; */

  &::-webkit-scrollbar {
    display: none;
  }
}

body {
  &.BG_Mode {
    background-color: var(--BG_Dark_Light_Mode);
  }
}

.bollet {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background-color: var(--Primary-Color);
  margin: 0 7px;
}

aside {
  width: 100%;

  &.sticky-mode {
    position: -webkit-sticky;
    position: sticky;
    top: 5.5rem;
    height: max-content;
  }

  & .widget {
    margin: 0;
  }
}

.viewPort {
  transform: translateY(50px);
  opacity: 0;

  &.animateTransform {
    opacity: 1;
    transform: translateY(0px);
    transition: .5s !important;
  }
}

/* & .bg-brandGray {
  margin: 3rem auto;
  max-width: var(--premary_width, 1200px);
  padding: 4rem 3rem;
  background: #ededed;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 40px;
  box-shadow: 0px 0px 20px #cccccc;
}
 */
.marg {
  margin: 45px 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elementor img {
  max-width: unset !important;
  height: 100% !important;
}

.my-btn svg {
  width: 18px;
  height: 18px;
}

ul {
  & li {
    list-style: none;
  }
}

a {
  color: white;
  text-decoration: none;
}

& svg {
  width: 20px;
}

#lunara_continer {
  max-width: var(--premary_width);
  margin: 2rem auto;
  /* overflow: hidden; */

  @media (max-width: 1290px) {
    padding: 0 0.5rem;
  }

  .no_result {
    margin: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;

    & p {
      font-size: 2rem;
      font-weight: 500;
      font-family: var(--latest-posts-text-font);
      letter-spacing: 1.3px;
      color: var(--CO_Dark_Light_Mode);
      ;
    }

    & .continer {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-direction: column-reverse;
      flex-wrap: wrap;

      a.back-home-btn {
        color: #ffffff;
        font-family: var(--latest-posts-text-font);
        background: #49678b;
        letter-spacing: 1.4px;
        padding: 5px 13px;
        border-radius: 5px;
        height: 2.5rem;
        text-wrap-mode: nowrap;
        display: flex;
        align-items: center;
      }

      & .search-container {
        width: 100%;
        border: 1px solid var(--CO_Dark_Light_Mode);
        border-radius: .5rem;

        & form.search-form {
          color: var(--CO_Dark_Light_Mode);
          width: 100%;
          display: flex;
          padding: 5px 13px;
          border-radius: 10px;
          justify-content: space-between;
          align-items: center;
          height: 2.5rem;
          box-shadow: 0px 0px 7px 0 rgb(0 0 0 / 16%);

          & .search-icon {
            display: flex;
            align-items: center;
            gap: 1rem;
            height: inherit;
            width: inherit;

            & input.search-input {
              color: var(--CO_Dark_Light_Mode);
              border: none;
              width: 100%;
              height: inherit;
              font-family: var(--Error_Article_Headings_font);
              font-size: 17px;
              letter-spacing: 1.1px;
              color: var(--CO_Dark_Light_Mode);
              background: transparent;

              &:focus {
                outline: none;
              }

              &::placeholder {
                color: rgba(var(--text-gray), 0.7);
              }
            }
          }

          & .search-button {
            padding: 0.25rem;
            border-radius: 0.25rem;
            background-color: transparent;
            border: none;
            color: var(--text-gray);
            transition: background-color 0.2s ease-in-out;
            cursor: pointer;
          }

          & .search-button:hover {
            background-color: #f3f4f6;
          }

          .dark .search-button:hover {
            background-color: rgba(255, 255, 255, 0.1);
          }

          & .search-button .material-symbols-outlined,
          & .search-icon .material-symbols-outlined {
            font-size: 20px;
          }
        }
      }
    }
  }
}

.custom-continer {
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border-radius: 30px;
  border: 1px solid rgb(255 255 255 / 0.5);
  padding: 0 2rem;
}

/* Dark & Light Mode */
/* .dark-light-mode {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 8rem;
  height: 2.5rem;
  background-color: var(--white_to_black);
  color: white;
  border-radius: 100px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 50;
  font-size: 14px;
} */

/*  */
.marquee {
  background: var(--Primary-Color);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body:has(.marquee) {
  --Animation_width: 30px;
}

body:has(#Nav__Bar.Sticky-Mode) {
  --header_Width: 50px;
}

.marquee-track {
  display: flex;
  align-items: center;
}

/* Text */
.marquee-item {
  margin: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  font-family: sans-serif;
}

/* TAble Of Content */
.Floting_Section {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 100;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  align-items: flex-end;

  & .right {
    display: flex;
    gap: .2rem;
    flex-direction: column;

    /* progress */
    & .progress-indicator {
      width: 3.7rem;
      height: 3.7rem;
      background-color: var(--bg-white);
      border-radius: 9999px;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      /* border: 1px solid var(--border-color); */
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.3s ease;

      &.opacity-0 {
        height: 0;
        width: 0;
        transition: .5s;
      }

      @media (max-width: 767px) {
        background: #000000;
      }
    }

    /* Table Of Content */
    & .toc-container {
      position: relative;

      /* Menu */
      & .toc-menu {
        width: 224px;
        height: 27rem;
        overflow: scroll;
        position: absolute;
        right: 4rem;
        bottom: 0rem;
        margin-bottom: 0.5rem;
        padding: 1rem;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;

        & * {
          font-family: var(--Single-_Article_P_font);
        }

        &.active {
          transform: translateY(0);
          opacity: 1;
          pointer-events: auto;
        }

        /* Dark mode */
        .dark & {
          background: #252b36;
          border-color: #374151;
        }

        /* Title */
        .toc-title {
          font-size: 1rem;
          font-weight: 700;
          letter-spacing: 0.15em;
          color: #6366f1;
          margin-bottom: 0.75rem;
          padding-bottom: 0.5rem;
          border-bottom: 1px solid #e5e7eb;
          white-space: nowrap;
        }

        /* Nav */
        .toc-nav {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;

          a {
            font-size: calc(var(--Single-_Article_P_size) - 4px);
            font-weight: 500;
            letter-spacing: 0.2px;

            color: #6b7280;
            text-decoration: none;

            transition: color 0.3s ease;

            &:hover {
              color: var(--Primary-Color);
            }

            .dark & {
              &:hover {
                color: #ffffff;
              }
            }
          }
        }
      }
    }
  }

  /* Dark Mode */
  & .left {
    height: 2.5rem;
    background-color: #1a1a1a;
    color: white;
    border-radius: 100px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 1px 1px 3px 0px rgb(75 75 75 / 22%);
    z-index: 50;
    padding: 0 17px;

    & span {
      text-transform: uppercase;
      font-size: 12px;
      letter-spacing: 1;
      /* font-family: 'Lora'; */

      @media (max-width: 767px) {
        display: none;
      }
    }

    & svg {
      fill: #ffffff;
    }

    @media (max-width: 767px) {
      height: 3.7rem;
      width: 3.7rem;
    }

  }

  @media (max-width: 767px) {
    right: 50%;
    transform: translate(50%, 0px);
  }


}

/*  */
blockquote {
  padding: 5rem 5rem;
  text-align: center;
  background-color: rgb(239 234 211 / 50%);
  position: relative;
  overflow: hidden;
  margin: 3rem 1rem;

  &::before {
    content: '99';
    transform: rotate(180deg);
    position: absolute;
    bottom: 0rem;
    right: 0rem;
    opacity: 0.4;
    font-size: 10rem;
    font-family: inherit;
    color: rgb(212 163 115 / 0.4);
  }
}

/* -------------------------------------------------------------------- */
/* --- CSS Variables & Reset --- */
:root {
  --font-main: "Inter", sans-serif;
  --color-bg: #f9fafb;
  /* gray-50 */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-sage: #c5cc9f;
  --color-text-gray: #4b5563;
  --color-text-light: #e5e7eb;
  --radius-xl: 2rem;
  /* rounded-[2rem] */
  --radius-lg: 1.5rem;
  --radius-md: 2rem;
  /* buttons */
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

:root {
  --color-bg: #f5f0e1;
  --color-sand: #e0c097;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-text: #4a4a4a;

  --font-serif: "Playfair Display", serif;
  --font-sans: "DM Sans", sans-serif;

  --shadow-sm: 2px 2px 0px 0px #000000;
  --shadow-md: 4px 4px 0px 0px #000000;
  --shadow-lg: 6px 6px 0px 0px #000000;

  --spacing-container: 1rem;
  --max-width: 1280px;
  /* max-w-7xl */
}


/* 13. Footer Styles */
.main-footer {
  background-color: white;
  padding-top: 5rem;
  /* pt-20 */
  padding-bottom: 3rem;
  /* pb-12 */
  border-top: 1px solid #e5e7eb;
  /* border-gray-200 */
  transition: background-color 0.3s, border-color 0.3s;
}

html.dark .main-footer {
  background-color: black;
  border-top-color: #1f2937;
  /* border-gray-800 */
}

.footer-container {
  max-width: 80rem;
  /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  /* px-4 */
  padding-right: 1rem;
}

@media (min-width: 640px) {

  /* sm */
  .footer-container {
    padding-left: 1.5rem;
    /* px-6 */
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {

  /* lg */
  .footer-container {
    padding-left: 2rem;
    /* px-8 */
    padding-right: 2rem;
  }
}

/* Top Section Styles */
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  /* mb-12 */
}

@media (min-width: 768px) {

  /* md */
  .footer-top {
    flex-direction: row;
  }
}

.footer-logo {
  font-size: 2.25rem;
  /* text-4xl */
  font-family: var(--font-serif);
  font-weight: 700;
  /* font-bold */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* tracking-widest */
  margin-bottom: 2rem;
  /* mb-8 */
}

@media (min-width: 768px) {

  /* md */
  .footer-logo {
    margin-bottom: 0;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* gap-8 */
  text-align: center;
}

@media (min-width: 768px) {

  /* md */
  .footer-nav {
    flex-direction: row;
    text-align: right;
  }
}

.footer-nav a {
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 700;
  /* font-bold */
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
  font-family: var(--font-serif);
}

.footer-nav a:hover {
  color: rgb(212 163 115);
}

/* Bottom Section Styles */
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  /* text-xs */
  color: #6b7280;
  /* text-gray-500 */
  border-top: 1px solid #f3f4f6;
  /* border-gray-100 */
  padding-top: 2rem;
  /* pt-8 */
  transition: color 0.3s, border-color 0.3s;
}

html.dark .footer-bottom {
  color: #9ca3af;
  /* text-gray-400 */
  border-top-color: #111827;
  /* border-gray-900 */
}

@media (min-width: 768px) {

  /* md */
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright-text {
  margin: 0;
  font-family: var(--font-serif);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

@media (min-width: 768px) {

  /* md */
  .footer-socials {
    margin-top: 0;
  }
}

.social-icon {
  cursor: pointer;
  transition: color 0.3s;
  border: 1px solid #d2a1716e;
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 100%;
}

.social-icon:hover {
  color: #d2a271b1;
}

/* Button */
.toc-toggle,
.Reading_btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--Primary-Color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;

  &:hover {
    transform: scale(1.05);
  }

  & svg {
    fill: #fff;
    width: 27px;
    height: 26px;
  }
}

/* Readinf Section */
#Reading_Mode {
  padding: 3rem;
  flex-direction: column;
  min-height: 100vh;
  display: flex;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;

  &.Active_Reading_Mode {
    background: rgb(1 1 1 / 95%);
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    /* backdrop-filter: blur(10px); */
  }

  @media (max-width: 670px) {
    padding: 1rem !important;
  }

  /*  */
  .Reading_Continer {
    padding: 4rem;
    background-color: rgb(251 249 244 / 1);
    border-radius: 0.75rem;
    max-width: 800px;
    inset: 0;
    overflow-y: auto;
    height: 100vh;

    @media (max-width: 600px) {
      padding: 1.5rem !important;
    }

    h2.title {
      font-family: var(--Single-_Title_H1_font) !important;
      font-size: var(--Single-_Title_H1_size);
      font-weight: var(--Single-_Title_H1_weight);
      letter-spacing: var(--Single-_Title_H1_letter-spacing);
      line-height: var(--Single-_Title_H1_line_height);
      text-transform: var(--Single-_Title_H1_text_transform);
      margin: 0;
      padding: 0 0 2rem;
      border-bottom: 1px dashed #0000004a;
      margin-bottom: 2rem;
    }

    & h2,
    & h3,
    & h4,
    & h5,
    & h6 {
      margin: 25px 0 15px;
    }

    & h2 {
      font-size: var(--Single-_Article_H2_size);
      font-weight: var(--Single-_Article_H2_weight);
      letter-spacing: var(--Single-_Article_H2_letter-spacing);
      line-height: var(--Single-_Article_H2_line_height);
      text-transform: var(--Single-_Article_H2_text_transform);
    }

    & h3 {
      font-size: 1.5rem;
    }

    & p {
      font-family: var(--Single-_Article_P_font);
      font-size: var(--Single-_Article_P_size);
      line-height: var(--Single-_Article_P_line_height);
      letter-spacing: var(--Single-_Article_P_letter-spacing);
      font-weight: var(--Single-_Article_P_weight);
      text-transform: var(--Single-_Article_P_text_transform);
    }

    & a {
      color: #2563eb;
      text-decoration: underline;
      transition: 0.2s;
    }

    & a:hover {
      opacity: 0.8;
    }

    & img {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 25px auto;
      border-radius: 10px;
    }

    & ul,
    & ol {
      padding-left: 25px;
      margin: 15px 0 20px;

      & li {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 8px;
        color: #333;
      }
    }

    & blockquote {
      margin: 20px 0;
      padding: 15px 18px;

      border-left: 4px solid #2563eb;
      background: #eef4ff;

      color: #333;
      font-style: italic;
    }


    & pre {
      background: #0f172a;
      color: #e5e7eb;

      padding: 15px;
      border-radius: 10px;
      overflow-x: auto;

      margin: 20px 0;

      & code {
        font-family: monospace;
        font-size: 15px;
      }
    }

    & table {
      width: 100%;
      border-collapse: collapse;
      margin: 25px 0;
      font-size: 16px;

      & th,
      & td {
        border: 1px solid #ddd;
        padding: 10px;
      }

      th {
        background: #f0f0f0;
      }
    }
  }

  /*  */
  & .Reding_Controller {
    bottom: 0;
    position: fixed;
    transform: translate(-50%, 0);
    display: flex;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    flex-direction: column;
    width: 28rem;
    /* background: #ffffff1c; */
    left: 50%;

    @media (max-width: 670px) {
      width: 100% !important;
      bottom: 10px !important;
    }

    /*  */
    & .Reading_nav {
      width: 100%;
      padding: 0 1rem;

      & .reaDing_Porog {
        height: 5px;
        width: 100%;
        background: var(--Primary-Color);
        border-radius: 40px;
      }
    }

    /* Reading Controll */
    & .Reading_controll {
      box-shadow: 2px 2px 6px #0000003b;
      background: #ffffff;
      padding: 1rem;
      border-radius: 50px;
      display: flex;
      justify-content: space-evenly;

      & button {
        border: none;
        border-right: 1px solid #0000004f;
        padding-left: 15px;
        padding-right: 15px;
        cursor: pointer;
        background: transparent;

        &:last-child {
          border: none;
        }
      }

      & .Exit_Reading_Mode {
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 0.65rem;
        line-height: 1rem;
        font-family: Manrope, sans-serif;
        display: flex;
        align-items: center;
        gap: 5px;

      }
    }
  }
}


/* Testing */

.topic-header {


  & .topic-subheading {




    /* & .label-style {
      color: var(--CO_Dark_Light_Mode);
    } */
  }

  & .topic-title {
    /* font-size: 3rem; */
    

    

    @media (min-width: 768px) {
      /* font-size: 2cqw; */
    }
  }
}




/*  */
& .blog-header {
  --color-brand-terracotta: #c86d51;
  margin-bottom: 2.5rem;



  & .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--latest-posts-text-family);
    font-size: calc(var(--latest-posts-text-size) * 1px);
    font-weight: var(--latest-posts-text-weight);
    letter-spacing: var(--latest-posts-text-letter_spacing);
    color: var(--CO_Dark_Light_Mode);
    text-transform: var(--latest-posts-text-text_transform);

    & .divider-line {
      max-width: 2.5rem;
      width: 2.5rem;
      height: 1.5px;
      background-color: var(--color-brand-terracotta);
    }
  }

  & .page-description {
    color: var(--CO_Dark_Light_Mode);
    margin: 1rem;
    
    color: var(--CO_Dark_Light_Mode);
    font-size: var(--latest-posts-desc-size);
    font-family: var(--latest-posts-desc-family);
    font-weight: var(--latest-posts-desc-weight);
    letter-spacing: var(--latest-posts-desc-letter_spacing);
    line-height: var(--latest-posts-desc-line_height);
    text-transform: var(--latest-posts-desc-text_transform);
    max-width: 50rem;

    & .highlight {
      color: var(--Primary-Color);
      font-style: italic;
    }
  }
}