/**
 * استایل صفحه اصلی آهولرن — طراحی اختصاصی
 *
 * @package AhuLearn_Suite
 */

    :root {
      --ahu-primary: #0F2C59;
      --ahu-primary-2: #146C94;
      --ahu-sky: #2f6df6;
      --ahu-sky-2: #19A7CE;
      --ahu-soft-sky: #AFD3E2;
      --ahu-light: #F6F1F1;
      --ahu-gold: #D4A017;
      --ahu-orange: #FF8A00;
      --ahu-white: #ffffff;
      --ahu-text: #172133;
      --ahu-muted: #5d6880;
      --ahu-border: rgba(15, 44, 89, 0.10);
      --ahu-shadow: 0 18px 45px rgba(21, 42, 89, 0.10);
      --ahu-shadow-soft: 0 10px 25px rgba(21, 42, 89, 0.08);
      --ahu-radius: 22px;
      --ahu-radius-sm: 14px;
    }

    .ahu-home-html {
      width: 100%;
      margin: 0;
      padding: 0;
      font-family: Vazirmatn, IRANSans, sans-serif;
      color: var(--ahu-text);
      background: #ffffff;
      box-sizing: border-box;
      overflow: hidden;
    }

    .ahu-home-html *,
    .ahu-home-html *::before,
    .ahu-home-html *::after {
      box-sizing: border-box;
    }

    .ahu-home-html a {
      text-decoration: none;
      color: inherit;
    }

    .ahu-inner {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .ahu-full-inner {
      width: min(1360px, calc(100% - 32px));
      margin: 0 auto;
    }

    .ahu-section-title {
      margin: 0 0 12px;
      font-size: 30px;
      line-height: 1.35;
      font-weight: 900;
      color: var(--ahu-primary);
      text-align: center;
    }

    .ahu-section-subtitle {
      margin: 0 auto;
      max-width: 760px;
      font-size: 15px;
      line-height: 2;
      color: var(--ahu-muted);
      text-align: center;
    }

    .ahu-hero {
      width: 100%;
      padding: 0;
      background: #ffffff;
    }

    .ahu-hero-shell {
      width: 100%;
      margin: 0 auto;
      position: relative;
    }

    .ahu-hero-card {
      position: relative;
      overflow: hidden;
      width: 100%;
      min-height: 610px;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.00) 35%, rgba(255,255,255,0.90) 58%, rgba(255,255,255,0.98) 100%),
        url('https://ahulearn.com/wp-content/uploads/2026/07/4.png') center center / cover no-repeat;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 56px 8%;
      box-shadow: 0 25px 60px rgba(15, 44, 89, 0.06);
    }

    .ahu-hero-content {
      width: min(500px, 100%);
      text-align: right;
      margin-right: 0;
      margin-left: auto;
      position: relative;
      z-index: 2;
    }

    .ahu-hero-title {
      margin: 0;
      font-size: 58px;
      line-height: 1.18;
      font-weight: 900;
      color: #10162a;
    }

    .ahu-hero-title span {
      display: block;
      color: var(--ahu-sky);
    }

    .ahu-hero-text {
      margin: 20px 0 0;
      font-size: 17px;
      line-height: 2.05;
      color: #4d5870;
    }

    .ahu-hero-actions {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 30px;
      flex-wrap: wrap;
    }

    .ahu-btn {
      min-height: 52px;
      padding: 0 24px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 15px;
      font-weight: 800;
      transition: 0.25s ease;
      white-space: nowrap;
      border: 0;
      font-family: inherit;
      cursor: pointer;
    }

    .ahu-btn-primary {
      background: var(--ahu-sky);
      color: #fff;
      box-shadow: 0 10px 24px rgba(47,109,246,0.28);
    }

    .ahu-btn-primary:hover {
      background: #1f58d4;
      transform: translateY(-2px);
    }

    .ahu-btn-light {
      background: #ffffff;
      color: var(--ahu-sky);
      border: 1px solid rgba(47,109,246,0.14);
      box-shadow: 0 8px 20px rgba(15,44,89,0.06);
    }

    .ahu-btn-light:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(15,44,89,0.08);
    }

    .ahu-btn svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .ahu-stats-wrap {
      position: relative;
      margin-top: -42px;
      z-index: 4;
      padding-bottom: 18px;
    }

    .ahu-stats {
      width: min(1060px, calc(100% - 34px));
      margin: 0 auto;
      background: rgba(255,255,255,0.96);
      border: 1px solid rgba(15,44,89,0.08);
      border-radius: 20px;
      box-shadow: 0 18px 45px rgba(15,44,89,0.10);
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      overflow: hidden;
      backdrop-filter: blur(8px);
    }

    .ahu-stat {
      min-height: 94px;
      padding: 18px 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
      border-left: 1px solid rgba(15,44,89,0.08);
    }

    .ahu-stat:last-child {
      border-left: 0;
    }

    .ahu-stat-icon {
      width: 34px;
      height: 34px;
      flex: 0 0 auto;
      color: var(--ahu-sky);
    }

    .ahu-stat-icon svg {
      width: 100%;
      height: 100%;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .ahu-stat-body {
      text-align: center;
    }

    .ahu-stat-value {
      display: block;
      font-size: 15px;
      line-height: 1.5;
      font-weight: 900;
      color: var(--ahu-primary);
    }

    .ahu-stat-label {
      display: block;
      margin-top: 2px;
      font-size: 12px;
      line-height: 1.7;
      color: var(--ahu-muted);
    }

    .ahu-domains {
      padding: 46px 0 10px;
      text-align: center;
      background: #ffffff;
    }

    .ahu-domain-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 16px;
      margin-top: 26px;
    }

    .ahu-domain-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 13px;
      min-height: 164px;
      padding: 18px 10px 16px;
      background: transparent;
      border: 0;
      border-radius: 20px;
      transition: 0.25s ease;
      text-align: center;
    }

    .ahu-domain-card:hover {
      transform: translateY(-5px);
    }

    .ahu-domain-thumb {
      width: 104px;
      height: 104px;
      border-radius: 999px;
      overflow: hidden;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 12px 26px rgba(15,44,89,0.10);
      transition: 0.25s ease;
    }

    .ahu-domain-card:hover .ahu-domain-thumb {
      box-shadow: 0 18px 34px rgba(15,44,89,0.15);
      transform: scale(1.03);
    }

    .ahu-domain-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      border-radius: 999px;
    }

    .ahu-domain-name {
      font-size: 14px;
      line-height: 1.8;
      font-weight: 900;
      color: var(--ahu-primary);
      text-align: center;
    }

    .ahu-videos {
      padding: 54px 0 14px;
      text-align: center;
      background: #ffffff;
    }

    .ahu-card-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      margin-top: 28px;
    }

    .ahu-course-card {
      display: block;
      background: #fff;
      border: 1px solid rgba(15,44,89,0.08);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 26px rgba(15,44,89,0.08);
      transition: 0.25s ease;
      text-align: right;
      height: 100%;
    }

    .ahu-course-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 17px 36px rgba(15,44,89,0.13);
      border-color: rgba(47,109,246,0.16);
    }

    .ahu-course-media {
      position: relative;
      aspect-ratio: 16 / 10;
      background: linear-gradient(135deg, rgba(15,44,89,0.08), rgba(25,167,206,0.10));
      overflow: hidden;
    }

    .ahu-course-media .ahu-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ahu-primary-2);
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      padding: 12px;
      background:
        linear-gradient(180deg, rgba(175,211,226,0.28), rgba(246,241,241,0.92)),
        repeating-linear-gradient(
          135deg,
          rgba(255,255,255,0.28) 0,
          rgba(255,255,255,0.28) 10px,
          rgba(255,255,255,0.05) 10px,
          rgba(255,255,255,0.05) 20px
        );
    }

    .ahu-play-btn {
      position: absolute;
      left: 12px;
      bottom: 12px;
      width: 42px;
      height: 42px;
      border-radius: 999px;
      background: rgba(255,255,255,0.95);
      color: var(--ahu-primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 20px rgba(15,44,89,0.15);
    }

    .ahu-play-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    .ahu-course-body {
      padding: 14px 13px 16px;
    }

    .ahu-course-topline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .ahu-level {
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(20,108,148,0.10);
      color: var(--ahu-primary-2);
      font-size: 11px;
      font-weight: 900;
    }

    .ahu-rating {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: var(--ahu-gold);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .ahu-course-title {
      margin: 0;
      font-size: 16px;
      line-height: 1.7;
      font-weight: 900;
      color: var(--ahu-primary);
    }

    .ahu-course-desc {
      margin: 8px 0 0;
      min-height: 52px;
      font-size: 12.5px;
      line-height: 1.95;
      color: var(--ahu-muted);
    }

    .ahu-course-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 14px;
      font-size: 12px;
      color: var(--ahu-muted);
    }

    .ahu-author {
      font-weight: 900;
      color: var(--ahu-text);
    }

    .ahu-price-row {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 8px;
      margin-top: 14px;
    }

    .ahu-price-box {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .ahu-price {
      font-size: 15px;
      line-height: 1.4;
      font-weight: 900;
      color: var(--ahu-primary);
    }

    .ahu-old-price {
      font-size: 12px;
      color: #8d98a5;
      text-decoration: line-through;
    }

    .ahu-discount {
      padding: 7px 9px;
      border-radius: 999px;
      background: rgba(255,138,0,0.12);
      color: #cc6100;
      font-size: 11px;
      font-weight: 900;
      flex: 0 0 auto;
    }

    .ahu-learning {
      width: 100%;
      padding: 64px 0 22px;
      text-align: center;
      background:
        radial-gradient(circle at 14% 22%, rgba(47,109,246,0.08) 0, rgba(47,109,246,0.00) 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .ahu-learning-shell {
      width: 100%;
      margin-top: 26px;
      background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
      border-top: 1px solid rgba(15,44,89,0.06);
      border-bottom: 1px solid rgba(15,44,89,0.06);
      box-shadow: 0 14px 36px rgba(15,44,89,0.05);
      overflow: hidden;
      padding: 38px 0 40px;
    }

    .ahu-learning-box {
      width: min(1360px, calc(100% - 32px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 30px;
      align-items: center;
    }

    .ahu-learning-content {
      text-align: center;
      order: 1;
    }

    .ahu-learning-image-wrap {
      order: 2;
    }

    .ahu-learning-title {
      margin: 0;
      font-size: 36px;
      line-height: 1.35;
      color: var(--ahu-primary);
      font-weight: 900;
      text-align: center;
    }

    .ahu-learning-desc {
      margin: 10px auto 0;
      max-width: 720px;
      font-size: 15px;
      line-height: 2;
      color: var(--ahu-muted);
      text-align: center;
    }

    .ahu-learning-steps {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      align-items: start;
      gap: 10px;
      position: relative;
      text-align: center;
      margin-top: 30px;
    }

    .ahu-learning-step {
      position: relative;
      padding: 8px 6px 0;
      z-index: 2;
    }

    .ahu-learning-step::before {
      content: "";
      position: absolute;
      top: 43px;
      right: calc(50% + 34px);
      width: calc(100% - 20px);
      height: 2px;
      background: linear-gradient(90deg, rgba(47,109,246,0.28), rgba(47,109,246,0.08));
      z-index: -1;
    }

    .ahu-learning-step:first-child::before {
      display: none;
    }

    .ahu-learning-icon {
      width: 76px;
      height: 76px;
      margin: 0 auto 12px;
      border-radius: 999px;
      background: #ffffff;
      border: 1px solid rgba(47,109,246,0.10);
      box-shadow: 0 12px 24px rgba(15,44,89,0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ahu-sky);
      position: relative;
    }

    .ahu-learning-icon svg {
      width: 35px;
      height: 35px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .ahu-learning-step-title {
      margin: 0;
      font-size: 15px;
      line-height: 1.6;
      color: #1d2740;
      font-weight: 900;
      text-align: center;
    }

    .ahu-learning-step-text {
      margin: 8px 0 0;
      font-size: 12.5px;
      line-height: 1.9;
      color: var(--ahu-muted);
      text-align: center;
    }

    .ahu-learning-image {
      width: 100%;
      min-height: 390px;
      border-radius: 24px;
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.04) 100%),
        url('https://ahulearn.com/wp-content/uploads/2026/08/111کوه.png') center center / cover no-repeat;
      box-shadow: 0 18px 42px rgba(15,44,89,0.10);
    }

    .ahu-articles {
      padding: 54px 0 14px;
      text-align: center;
      background: #ffffff;
    }

    .ahu-article-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      margin-top: 28px;
      text-align: right;
    }

    .ahu-article-card {
      background: #fff;
      border: 1px solid rgba(15,44,89,0.08);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(15,44,89,0.06);
      transition: 0.25s ease;
    }

    .ahu-article-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 28px rgba(15,44,89,0.10);
    }

    .ahu-article-thumb {
      aspect-ratio: 16 / 10;
      background: linear-gradient(135deg, rgba(175,211,226,0.34), rgba(246,241,241,0.96));
      border-bottom: 1px dashed rgba(15,44,89,0.14);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ahu-primary-2);
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      padding: 10px;
    }

    .ahu-article-body {
      padding: 14px;
    }

    .ahu-article-title {
      margin: 0;
      font-size: 15px;
      line-height: 1.8;
      font-weight: 900;
      color: var(--ahu-primary);
    }

    .ahu-article-text {
      margin: 8px 0 0;
      font-size: 13px;
      line-height: 1.9;
      color: var(--ahu-muted);
    }

    .ahu-newsletter {
      padding: 54px 0 76px;
      text-align: center;
      background: #ffffff;
    }

    .ahu-newsletter-shell {
      overflow: hidden;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(15,44,89,0.96) 0%, rgba(20,108,148,0.92) 100%);
      box-shadow: 0 18px 44px rgba(15,44,89,0.14);
    }

    .ahu-newsletter-inner {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      align-items: center;
      min-height: 360px;
    }

    .ahu-newsletter-copy {
      padding: 38px 34px;
      color: #fff;
      text-align: center;
    }

    .ahu-newsletter-title {
      margin: 0;
      font-size: 32px;
      line-height: 1.35;
      font-weight: 900;
    }

    .ahu-newsletter-text {
      margin: 12px auto 0;
      max-width: 560px;
      font-size: 15px;
      line-height: 2;
      color: rgba(255,255,255,0.86);
    }

    .ahu-newsletter-form {
      margin-top: 24px;
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .ahu-newsletter-form input {
      width: min(360px, 100%);
      min-height: 50px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.10);
      color: #fff;
      font-family: inherit;
      font-size: 14px;
      outline: none;
      text-align: center;
    }

    .ahu-newsletter-form input::placeholder {
      color: rgba(255,255,255,0.72);
    }

    .ahu-newsletter-visual {
      padding: 22px;
      min-height: 300px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-inline-start: 1px solid rgba(255,255,255,0.10);
    }

    .ahu-newsletter-placeholder {
      width: 100%;
      min-height: 260px;
      border-radius: 18px;
      border: 1px dashed rgba(255,255,255,0.24);
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.86);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 16px;
      font-size: 14px;
      line-height: 1.9;
    }

    @media (max-width: 1280px) {
      .ahu-card-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .ahu-domain-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .ahu-article-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .ahu-learning-box {
        grid-template-columns: 1fr;
      }

      .ahu-learning-image-wrap {
        order: 1;
      }

      .ahu-learning-content {
        order: 2;
      }

      .ahu-learning-image {
        min-height: 320px;
      }
    }

    @media (max-width: 960px) {
      .ahu-hero-card {
        min-height: 590px;
        padding: 34px 34px 140px;
        background:
          linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.18) 38%, rgba(255,255,255,0.94) 72%, rgba(255,255,255,0.98) 100%),
          url('https://ahulearn.com/wp-content/uploads/2026/07/4.png') center center / cover no-repeat;
        align-items: flex-end;
        justify-content: center;
      }

      .ahu-hero-content {
        width: 100%;
        text-align: center;
        margin: 0 auto;
      }

      .ahu-hero-title {
        font-size: 42px;
      }

      .ahu-hero-actions {
        justify-content: center;
      }

      .ahu-stats {
        grid-template-columns: repeat(2, 1fr);
      }

      .ahu-stat:nth-child(2n) {
        border-left: 0;
      }

      .ahu-domain-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .ahu-card-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .ahu-learning-steps {
        grid-template-columns: repeat(2, 1fr);
      }

      .ahu-learning-step::before {
        display: none;
      }

      .ahu-newsletter-inner {
        grid-template-columns: 1fr;
      }

      .ahu-newsletter-visual {
        border-inline-start: 0;
        border-top: 1px solid rgba(255,255,255,0.10);
      }
    }

    @media (max-width: 767px) {
      .ahu-inner,
      .ahu-full-inner,
      .ahu-stats,
      .ahu-learning-box {
        width: calc(100% - 20px);
      }

      .ahu-hero-card {
        min-height: 560px;
        padding: 24px 18px 132px;
      }

      .ahu-hero-title {
        font-size: 32px;
      }

      .ahu-hero-text {
        font-size: 14px;
        line-height: 1.95;
      }

      .ahu-btn {
        width: 100%;
      }

      .ahu-stats-wrap {
        margin-top: -28px;
      }

      .ahu-stats {
        grid-template-columns: 1fr;
      }

      .ahu-stat {
        border-left: 0;
        border-bottom: 1px solid rgba(15,44,89,0.08);
      }

      .ahu-stat:last-child {
        border-bottom: 0;
      }

      .ahu-domain-grid,
      .ahu-card-grid,
      .ahu-learning-steps,
      .ahu-article-grid {
        grid-template-columns: 1fr;
      }

      .ahu-domain-card {
        min-height: auto;
      }

      .ahu-section-title {
        font-size: 24px;
      }

      .ahu-learning {
        padding-top: 46px;
      }

      .ahu-learning-title {
        font-size: 26px;
      }

      .ahu-learning-shell {
        padding: 26px 0 28px;
      }

      .ahu-learning-image {
        min-height: 230px;
        border-radius: 18px;
      }

      .ahu-newsletter-copy {
        padding: 26px 16px;
      }

      .ahu-newsletter-title {
        font-size: 25px;
      }

      .ahu-newsletter-visual {
        padding: 16px;
      }
    }

/* === دکمه «نمایش بیشتر» === */
.ahu-load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.ahu-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--ahu-sky);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(47,109,246,0.25);
}

.ahu-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(47,109,246,0.35);
  background: #1f58d4;
}

.ahu-load-more-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === کارت‌های مخفی (برای نمایش با دکمه بیشتر) === */
.ahu-course-card.ahu-hidden-card,
.ahu-article-card.ahu-hidden-card {
  display: none;
}

/* === فونت ایران‌سنس === */
.ahu-home-html {
  font-family: 'IRANSans', Tahoma, Arial, sans-serif !important;
}

.ahu-home-html *,
.ahu-home-html *::before,
.ahu-home-html *::after {
  font-family: inherit;
}

/* === تمام عرض برای کارت‌های ویدیو محبوب === */
@media (min-width: 1281px) {
  .ahu-home-html .ahu-videos .ahu-inner,
  .ahu-home-html .ahu-articles .ahu-inner {
    width: min(1500px, calc(100% - 32px));
  }
}
