    :root {
      --bg-color: #ffffff;
      --text-color: #222222;
      --meta-color: #555555;
      --highlight: #12A19A;
      --quote-bg: #f9f9f9;
      --border-color: #ccc;
      --surface-color: #f4f4f4;
    }

    [data-theme="dark"] {
      --bg-color: #1e1e1e;
      --text-color: #e0e0e0;
      --meta-color: #aaaaaa;
      --highlight: #1ef8ed;
      --quote-bg: #2c2c2c;
      --border-color: #555;
      --surface-color: #2a2a2a;
    }

    html, body {
      margin: 0;
      padding: 0;
      background-color: var(--bg-color);
      color: var(--text-color);
      /* font-family: system-ui, sans-serif; */
      transition: background-color 0.3s, color 0.3s;
    }

    a {
      text-decoration: none;
      color: var(--text-color)
    }

    .mag-con {
      max-width: 1100px;
      margin: auto;
      margin-top: 100px
    }

    nav.mag-con-fluid {
      background-color: var(--surface-color);
      color: var(--text-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
    }

    .menu {
      width: 100%
    }

    nav ul {
      list-style: none;
      display: flex;
      align-content: flex-start;
      gap: 0;
      margin: 0;
      padding: 0;
    }

    .selected-lang {
      font-weight: bold
    }

    nav li a, nav li strong {
      color: var(--text-color);
      text-decoration: none;
      font-weight: bold;
    }

    .menu li a, .account ul li a {
      padding: 8px
    }

    nav .menu li a {
      font-size: 14px
    }

    .theme-toggle {
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 1000;
    }

    .theme-toggle button {
      background-color: var(--highlight);
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 5px;
      cursor: pointer;
    }

    main.mag-con {
      max-width: 960px;
      margin: auto;
      padding: 2rem;
      background-color: var(--surface-color);
      border-radius: 7px;
      transition: background-color 0.3s;
      margin-bottom: 32px;
    }

    .mag-article {
      line-height: 1.8;
      font-size: 1.125rem;
      user-select: none
    }

    .mag-article h1,
    .mag-article h2,
    .mag-article h3 {
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .mag-article p:not(table) {
      margin-bottom: 1.5rem
    }

    .mag-article ul,
    .mag-article ol {
      padding-inline-start: 1.5rem;
      margin-bottom: 1.5rem
    }

    .mag-article li {
      margin-bottom: 0.75rem;
    }

    .mag-article ul li::marker,
    .mag-article ol li::marker {
      color: var(--highlight);
    }

    .mag-ol {
      counter-reset: custom-counter;
      list-style: none;
      padding: 0;
    }

    .mag-ol li {
      counter-increment: custom-counter;
      position: relative;
      padding-inline-start: 2.5rem;
    }

    .mag-ol li::before {
      content: counter(custom-counter);
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      font-weight: 600;
      font-size: 0.85rem;
      width: 1.5rem;
      height: 1.5rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 0.2rem
    }

    /* LTR */
    [dir="ltr"] .mag-ol li::before {
      left: 0;
    }

    /* RTL */
    [dir="rtl"] .mag-ol li {
      padding-inline-end: 0;
      padding-inline-end: 2.5rem;
    }

    [dir="rtl"] .mag-ol li::before {
      right: 0;
      left: auto;
    }

    blockquote {
      border-inline-start: 4px solid var(--border-color);
      padding: 2rem 2.5rem;
      border-radius: 0 12px 12px 0;
      margin: 2rem 0;
      font-style: italic;
      background-color: var(--quote-bg);
    }

    .artmenu {
      padding: 12px;
      background-color: #ebe7e7;
      border-radius: 7px;
      margin: 12px 0;
      display: flex;
      flex-direction: column;
      box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
      gap: 4px
    }

    .artmenu a {
      font-weight: bold;
      position: relative;
      display: block;
      padding: 0.4rem 1.5rem;
      margin: 0.3rem 0;
      text-decoration: none;
      font-size: 0.95rem;
      border-radius: 6px;
      transition: background 0.3s ease, color 0.3s ease;
      color: #12A19A
    }

    .artmenu a::before {
      content: "›";
      position: absolute;
      inset-inline-start: 0.5rem;
      font-weight: bold;
      font-size: 24px;
      color: #000;
      top: 0;
      transition: inset-inline-start 0.3s ease;
    }

    .artmenu a:hover {
      background: #e6f7f6;
      color: #0e807a
    }

    .artmenu a:hover::before {
      inset-inline-start: 0.7rem;
      color: #0e807a
    }

    .artimg {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 2rem auto;
      display: block;
    }

    .artimg1 {
      max-width: 55%;
      height: auto;
      border-radius: 8px;
      margin: 2rem 2rem auto 8px;
      display: block;
    }

    .artimg2 {
      max-width: 55%;
      height: auto;
      border-radius: 8px;
      margin: 2rem auto 2rem 8px;
      display: block;
    }

    .artimg3 {
      max-width: 55%;
      height: auto;
      border-radius: 8px;
      margin: 2rem auto;
      display: block;
    }

    .mag-article audio {
      width: 100%;
      margin: 2rem 0;
      border-radius: 26px;
      border: 1px solid #12A19A;
    }

    .arttlt {
      text-align: center
    }

    .article-meta {
      font-size: 0.9rem;
      color: var(--meta-color);
      margin-bottom: 2rem;
    }

    .article-meta span {
      margin-inline-end: 1.5rem
    }

    .article-meta span i {
      margin-inline-end: 6px;
      vertical-align: middle;
      font-size: 20px
    }

    .article-meta img {
      width: 50px;
      height: 50px;
      object-fit: cover;
      vertical-align: middle;
      margin-inline-end: 6px;
      border-radius: 30px
    }

    footer.mag-con {
      background-color: var(--surface-color);
      text-align: center;
      padding: 2rem;
      font-size: 0.9rem;
      color: var(--meta-color)
    }

    footer.mag-con a {
      color: var(--highlight);
      text-decoration: none;
      margin: 0 0.5rem
    }

    /* RTL Support */
    [dir="rtl"] .mag-article {
      text-align: justify
    }

    [dir="rtl"] blockquote {
      border-left: none;
      border-right: 4px solid var(--border-color);
      padding-left: 0;
      padding-right: 1rem;
    }

    [dir="rtl"] .article-meta a {
      margin-inline-end: 1.5rem;
      border-radius: 12px 0 0 12px
    }

    .magcta {
      background-color: transparent;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      border: 1px solid var(--border-color);
      box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    }

    .magcta p {
      color: #6c757d;
    }

    .magcta a {
      display: inline-block;
      margin-top: 15px;
      padding: 8px 20px;
      background-color: #12A19A;
      color: white;
      text-decoration: none;
      border-radius: 5px
    }

    /***********خانه*********/
    .title {
      text-align: center;
      color: #12A19A;
    }

    .magwrap {
      max-width: 1180px;
      margin: auto;
      padding: 1rem
    }

    .hero-box {
      position: relative;
      overflow: hidden;
      border-radius: 1rem
    }

    .hero-img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
      max-height: 90vh;
      min-height: 80vh
    }

    .overlay {
      position: absolute;
      bottom: 2rem;
      left: 50%;
      bottom: 20%;
      transform: translateX(-50%);
      background: #fff;
      padding: 2.5rem 2rem;
      border-radius: 1rem;
      text-align: center;
      cursor: pointer;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .tag {
      display: inline-block;
      background: #16bdb51e;
      color: #12A19A;
      font-size: 0.8rem;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      margin-bottom: 0.5rem;
    }

    .htlt {
      margin: 16px 0 0 0;
      font-weight: bold;
      font-size: 1.2rem
    }

    .cat-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-top: 2rem;
      row-gap: 12px;
      padding: 12px
    }

    .cat-box {
      position: relative;
      border-radius: 5px;
      overflow: hidden;
      text-align: center;
      width: 24%
    }

    .cat-img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      display: block
    }

    .cat-txt {
      position: absolute;
      bottom: 0.5rem;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      padding: 0.2rem 0.8rem;
      border-radius: 999px;
      font-size: 0.9rem;
      width: max-content
    }

    @media (max-width: 850px) {
      .artimg3, .artimg2, .artimg1 {
        max-width: 85%
      }

      .cat-box {
        width: 49%
      }
    }

    @media (max-width: 600px) {

      /* .cat-box {
        width: 99%
      } */
      .mag-article h1 {
        font-size: 1.4rem
      }

      .mag-article h2 {
        font-size: 1.3rem
      }

      .mag-article h3 {
        font-size: 1.2rem
      }

      .cat-img {
        height: 210px
      }

      .overlay {
        width: 90%;
        padding: 1rem
      }

      .htlt {
        font-size: 1rem
      }

      .artimg3, .artimg2, .artimg1 {
        max-width: 80%
      }
    }

    @media (max-width: 500px) {
      .cat-img {
        height: 180px
      }

      .artimg3, .artimg2, .artimg1 {
        max-width: 100%
      }
    }

    @media (max-width: 400px) {
      .cat-img {
        height: 160px
      }
    }

    /*part2*/
    .mag_row {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 2rem;
      margin: 16px 0
    }

    .col {
      background: #fff;
    }

    /* Editor Picks (now on left) */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
    }

    .card {
      display: flex;
      border: 1px solid var(--meta-color);
      border-radius: 3px;
      overflow: hidden;
      padding: 14px 0;
      text-decoration: none;
      color: var(--text-color);
      background: #fff
    }

    /* .card:hover{
      box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    } */

    .card img {
      width: 100px;
      height: 100%;
      object-fit: cover;
      border-radius: 3px
    }

    .card-body {
      padding: 15px 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .card-body h5 {
      margin: 0 0 0.4rem 0;
      font-size: 1.1rem;
    }

    .card-body .date {
      font-size: 0.75rem;
      color: var(--text-color);
      font-weight: bold
    }

    .pop {
      padding: 0 1rem
    }

    .mvarts::before,
    .mvarts::after {
      content: "";
      flex: 1;
      height: 1px;
      background: #ccc;
      margin: 0 1rem;
    }

    .item {
      display: flex;
      border-bottom: 1px solid var(--meta-color);
      padding: 1rem 0;
      align-items: center;
    }

    .item:last-child {
      border-bottom: none;
    }

    .num {
      font-size: 1.5rem;
      color: #999;
      font-weight: bold;
      margin-left: 1rem;
      min-width: 2rem;
      text-align: center;
    }

    .meta span {
      display: inline-block;
      font-size: 0.8rem;
      color: #999;
      margin-bottom: 0.3rem;
    }

    .meta {
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .meta h5 {
      position: relative;
      display: inline-block;
      background-image: linear-gradient(to left, #333 100%, transparent 0%);
      background-repeat: no-repeat;
      background-position: 100% 100%;
      background-size: 0% 2px;
      transition: background-size 0.4s ease-out;
      width: fit-content;
      margin: 12px 0;
      font-size: 1.1rem
    }

    .meta:hover h5 {
      background-size: 100% 2px;
    }

    .sec-tlt, .mvarts {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin: 2rem 0 1.5rem;
      font-size: 1.1rem;
      position: relative;
    }

    .sec-tlt::before,
    .sec-tlt::after {
      content: "";
      flex: 1;
      height: 1px;
      background: #ccc;
      margin: 0 1rem;
    }


    @media (max-width: 768px) {
      .mag_row {
        grid-template-columns: 1fr
      }

      .card {
        flex-direction: column
      }

      .card img {
        width: 100%;
        height: 150px
      }
      main.mag-con{
        padding: 1rem
      }
    }

    /***************gadget ad part**************/
    /* Product Container */

    .content-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 30px;
      border-radius: 9px;
      background-color: #f0f8ff
    }

    .text-content {
      flex: 1;
      padding: 20px;
      text-align: right;
      max-width: 500px;/
    }

    .text-content .stlt {
      font-size: 1.8em;
      font-weight: 700;
      margin-bottom: 20px;
      line-height: 1.3;
    }

    .text-content .description {
      font-size: 1.1em;
      line-height: 1.7;
      color: #555;
      margin-bottom: 30px;
    }

    .cta-button {
      background-color: #12A19A;
      color: #fff;
      padding: 10px 26px;
      border: none;
      border-radius: 50px;
      font-size: 1.1em;
      font-weight: 700;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-decoration: none;
      display: inline-block;
    }

    .cta-button:hover {
      background-color: #0f8680;
    }

    .image-content {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      padding: 20px;
    }

    .product-image {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
    }

    .scroll-indicator {
      position: fixed;
      bottom: 20px;
      left: 20px;
      z-index: 10;
    }

    .scroll-indicator .arrow-up {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid #ccc;
      background-color: #fff;
      color: #888;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .scroll-indicator .arrow-up:hover {
      background-color: #f0f0f0;
      color: #333;
      border-color: #999;
    }

    @media (min-width: 768px) {
      .content-wrapper {
        flex-direction: row-reverse;
        justify-content: space-between;
        padding: 50px;
      }

      .text-content {
        padding-right: 50px;
        padding-left: 0;
        text-align: right;
        max-width: 50%;
      }

      .image-content {
        padding-left: 50px;
        padding-right: 0;
        max-width: 50%;
      }
    }

    @media (max-width: 480px) {
      .product-container {
        border-radius: 0;
        box-shadow: none;
      }

      .content-wrapper {
        padding: 20px;
      }

      .text-content {
        padding: 10px;
        max-width: 100%;
        text-align: center;
      }

      .text-content .stlt {
        font-size: 1.8em;
      }

      .text-content .description {
        font-size: 1em;
      }

      .cta-button {
        padding: 12px 25px;
        font-size: 1em;
      }

      .image-content {
        padding: 10px;
      }

      .scroll-indicator {
        bottom: 60px;
        left: 10px;
        width: 35px;
        height: 35px;
      }
    }

    /************ بخش درمان ناباروری **************/
    .h-txt {
      font-size: 1.2em;
      font-weight: 700;
      color: #333;
    }

    .h-menu {
      width: 24px;
      height: 24px;
    }

    .main-cnt {
      display: flex;
      flex-direction: column-reverse;
      gap: 20px;
      padding: 20px;
      max-width: 1200px;
      margin: 20px auto;
      flex-grow: 1;
    }


    .left-col {
      display: flex;
      flex-direction: column;
      gap: 15px;
      position: relative;
    }

    .s-c {
      display: flex;
      align-items: center;
      background-color: #fff;
      border-radius: 10px;
      /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
      border: 1px solid var(--meta-color);
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      padding: 10px;
    }

    .s-c:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    }

    .s-c-img {
      width: 80px;
      height: 80px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
      margin-left: 15px;
    }

    .s-c-txt {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .s-c-lbl {
      font-size: 0.95em;
      font-weight: 700;
      color: var(--text-color);
      line-height: 1.4;
      margin-bottom: 5px;
    }

    .s-c-auth {
      display: flex;
      align-items: center;
      font-size: 0.8em;
      color: #777;
    }

    .auth-n {
      font-weight: 500;
      margin-left: 5px;
    }

    .auth-r {
      opacity: 0.8
    }

    .main-c {
      background-color: #fff;
      border-radius: 10px;
      /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); */
      border: 1px solid var(--meta-color);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .main-c-img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      border-radius: 10px 10px 0 0;
    }

    .mauth, .mside {
      display: flex;
      align-items: center;
      font-size: 0.9em;
      color: #777;
      width: max-content;
      margin-top: -58px;
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
      background-color: var(--quote-bg);
      border-radius: 5px 0 0 0;
      padding: 6px 0
    }

    .mauth i {
      font-size: 26px;
      margin: 8px;
      color: #aaa;
    }

    .mside {
      width: fit-content;
      margin-left: auto;
      border-radius: 5px;
      margin-top: 12px;
      padding: 4px 0
    }

    .mside i {
      font-size: 22px;
      margin: 6px;
      color: #aaa
    }

    .mside .auth-n, .mside .auth-r {
      font-size: 12px
    }

    .mauth .auth-n {
      font-weight: 700;
      margin-left: 8px;
      display: block
    }

    .main-c-lbl {
      font-size: 1.4em;
      font-weight: 700;
      padding: 10px 20px 20px;
      line-height: 1.4
    }

    .main-c-lbl::before, .s-c-lbl::before {
      content: "";
      display: inline-block;
      width: 30px;
      height: 2px;
      background-color: red;
      margin-left: 4px
    }

    .s-c-lbl::before {
      margin-left: 6px;
      width: 20px
    }

    @media (min-width: 768px) {
      .main-cnt {
        flex-direction: row-reverse;
        align-items: flex-start;
      }

      .left-col {
        flex: 1;
        max-width: 400px
      }

      .main-c {
        flex: 2;
        max-width: calc(100% - 420px)
      }

      .s-c {
        padding: 15px
      }

      .s-c-img {
        width: 110px;
        height: 110px
      }

      .s-c-lbl {
        font-size: 1em
      }

      .main-c-img {
        height: 400px;
      }

      .main-c-lbl {
        font-size: 1.3em;
      }

    }

    @media (max-width: 480px) {
      .h {
        padding: 10px 15px;
      }

      .h-txt {
        font-size: 1em;
      }

      .main-cnt {
        padding: 15px;
        margin: 15px auto;
      }

      .s-c {
        flex-direction: column;
        padding: 15px 10px;
      }

      .s-c-img {
        width: 140px;
        height: 140px;
        margin: 0 0 10px 0;
        border-radius: 50%;
      }

      .s-c-txt {
        align-items: center;
      }

      .s-c-lbl {
        font-size: 0.9em;
        margin-top: 8px;
      }

      .main-c-img {
        height: 250px;
      }

      .main-c-lbl {
        font-size: 1.3em;
        padding: 10px 15px 15px;
      }
    }

    /************articles pagination*************/

    .article-row {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 20px;
      justify-content: center;
    }

    /* Article Card */
    .art-card {
      background-color: #fff;
      border-radius: 10px;
      border: 1px solid var(--meta-color);
      /* box-shadow: 0 4px 15px rgba(0,0,0,0.05); */
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      flex: 1 1 calc(50% - 10px);
      max-width: calc(50% - 10px);
    }

    .art-card:hover .card-img {
      /*
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);*/
      transform: scale(1.1);
    }

    .card-img-wrap {
      position: relative;
      width: 100%;
      padding-bottom: 60%;
      overflow: hidden;
      border-radius: 10px 10px 0 0;
    }

    .card-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease
    }

    .tagcon {
      position: absolute;
      top: 15px;
      padding-inline-start: 8px;
    }

    .catn {
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.8em;
      font-weight: 500;
      color: #fff;
      line-height: 1
    }

    .tag-blue {
      background-color: #007bff;
      right: 15px;
    }

    .tag-pink {
      background-color: #dc3545;
      right: 15px;
      margin-left: 5px;
    }

    .meta-row {
      display: flex;
      align-items: center;
      font-size: 0.85em;
      color: #777;
      margin-bottom: 10px;
    }

    .meta-row i {
      font-size: 26px;
      color: #aaa;
      margin-left: 4px
    }

    .meta-row img,.mauth img {
      width: 50px;
      height: 50px;
      margin-inline-end: 8px;
      object-fit: cover;
      border-radius: 50%
    }

    .date i {
      font-size: 16px;
      margin: 0 4px;
      vertical-align: middle
    }

    .auth-name {
      font-weight: 500;
      color: #333;
      margin-left: 10px;
      font-weight: bold
    }

    .card-title {
      font-size: 1.2em;
      font-weight: 700;
      color: var(--text-color);
      line-height: 1.5;
      margin: 8px 0
    }

    .arrow-up {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid #ccc;
      background-color: #fff;
      color: #888;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .arrow-up:hover {
      background-color: #f0f0f0;
      color: #333;
      border-color: #999;
    }

    .main-content {
      padding: 15px
    }

    @media (max-width: 768px) {

      .art-card {
        flex: 1 1 100%;
        max-width: 100%;
      }

      .card-img-wrap {
        padding-bottom: 56.25%;
      }

      .card-body {
        padding: 15px;
      }

      .card-title {
        font-size: 1em;
      }

      .arrow-up {
        width: 35px;
        height: 35px;
      }
    }

    @media (max-width: 480px) {
      .main-content {
        padding: 10px;
      }

      .art-card {
        border-radius: 5px;
      }

      .card-img-wrap {
        border-radius: 5px 5px 0 0;
      }

      .catn {
        font-size: 0.75em;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
      }

      .card-body {
        padding: 10px;
      }

      .meta-row {
        font-size: 0.8em;
      }

      .card-title {
        font-size: 0.95em;
      }
    }

    /******cat-articles******/

    .main-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 0 20px;
    }

    .art-c {
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .art-c:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .art-c-img-wrap {
      position: relative;
      width: 100%;
      padding-bottom: 70%;
      overflow: hidden;
    }

    .art-c-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10px 10px 0 0;
    }

    .art-c-count {
      position: absolute;
      top: 15px;
      right: 15px;
      background-color: rgba(255, 255, 255, 0.9);
      color: #333;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 0.85em;
      font-weight: 500;
      z-index: 10;
    }

    .art-c-tag {
      position: absolute;
      top: 15px;
      left: 15px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.8em;
      font-weight: 500;
      color: #fff;
      z-index: 10;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .tag-mgn-l {
      margin-left: 8px;
    }

    .art-c-body {
      padding: 15px 20px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .art-c-title {
      font-size: 1.15em;
      font-weight: 700;
      color: #333;
      line-height: 1.5;
      margin: 0 0 10px 0;
      order: 1;
    }

    .art-c-desc {
      font-size: 0.9em;
      color: #555;
      line-height: 1.6;
      margin-bottom: 15px;
      flex-grow: 1;
      order: 3;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
    }

    /* Read More Link */
    .art-c-read {
      font-size: 0.9em;
      color: #007bff;
      font-weight: 500;
      text-align: left;
      padding-top: 5px;
      transition: color 0.2s ease;
      order: 4;
    }

    .art-c-read:hover {
      color: #0056b3;
    }

    @media (min-width: 600px) and (max-width: 991px) {
      .main-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 0 15px;
      }
    }

    @media (max-width: 599px) {
      .head {
        padding: 10px 15px;
      }

      .head-txt {
        font-size: 1.1em;
      }

      .main-grid {
        grid-template-columns: 1fr;
        /* Single column */
        padding: 0 10px;
        gap: 15px;
      }

      .art-c {
        border-radius: 5px;
      }

      .art-c-img-wrap {
        padding-bottom: 60%
      }

      .art-c-img {
        border-radius: 5px 5px 0 0
      }

      .art-c-count, .art-c-tag {
        font-size: 0.75em;
        padding: 4px 8px;
        top: 10px;
      }

      .art-c-tag.tag-mgn-l {
        margin-left: 5px;
      }

      .art-c-body {
        padding: 10px 15px;
      }

      .art-c-title {
        font-size: 1em;
        margin-bottom: 8px;
      }

      .art-c-desc {
        font-size: 0.85em;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
      }

      .art-c-read {
        font-size: 0.85em;
      }
    }

    /*--advertice block--*/
    .apcard {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border: 1px solid #eee;
      border-radius: 10px;
      padding: 1rem;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      direction: rtl;
      max-width: 800px;
      margin: 2rem auto;
      flex-wrap: wrap
    }

    .apimg {
      flex: 0 0 140px
    }

    .apimg img {
      width: 100%;
      height: auto;
      border-radius: 6px
    }

    .apinfo {
      flex: 1;
      min-width: 250px
    }

    .aptlt {
      font-size: 1rem;
      color: #222;
      margin: 0 0 1rem
    }

    .apprice {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem
    }

    .price {
      font-weight: bold;
      font-size: 1.1rem;
      color: #111
    }

    .abtnb {
      background: #12A19A;
      color: #fff;
      padding: 0.5rem 1.2rem;
      border-radius: 5px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
      white-space: nowrap;
      transition: background 0.3s ease
    }

    .abtnb:hover {
      background: #0f8680
    }

    /* Responsive */
    @media (max-width: 550px) {
      .apcard {
        flex-direction: column;
        text-align: right
      }

      .apprice {
        flex-direction: column;
        align-items: flex-start
      }

      .apimg img {
        margin: 0
      }
    }

    /*---author---*/
    .author-box {
      display: flex;
      align-items: center;
      gap: 2rem;
      padding: 2rem;
      border: 1px solid #eee;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      direction: rtl;
      flex-wrap: wrap;
    }

    .author-img img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #12A19A;
    }

    .author-info {
      flex: 1;
      min-width: 250px;
    }

    .aname {
      margin: 0 0 0.5rem;
      font-size: 1.5rem;
      color: #222;
    }

    .abio {
      margin: 0 0 1rem;
      font-size: 1rem;
      color: #555;
      line-height: 1.6;
    }

    .asocial {
      list-style: none;
      padding: 0;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .asocial li a {
      text-decoration: none;
      color: #12A19A;
      font-weight: bold;
      transition: color 0.3s;
    }

    .asocial li a:hover {
      color: #0f8680;
    }

    /* Mobile friendly */
    @media (max-width: 600px) {
      .author-box {
        flex-direction: column;
        text-align: center;
      }

      .author-info {
        text-align: center;
      }
    }