﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --orange: #F58220;
      --orange-dark: #e67410;
      --orange-light: #FFF3E8;
      --blue: #1F5AA6;
      --blue-light: #EEF6FF;
      --bg: #FAF7F2;
      --text: #2A2A2A;
      --text-muted: rgba(42, 42, 42, 0.65);
      --white: #ffffff;
      --radius: 16px;
      --radius-lg: 24px;
      --shadow: 0 4px 24px rgba(42, 42, 42, 0.06);
      --shadow-hover: 0 8px 32px rgba(42, 42, 42, 0.1);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Vazirmatn', Tahoma, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; height: auto; display: block; }
    ul { list-style: none; }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(250, 247, 242, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(42, 42, 42, 0.06);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .logo img {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      object-fit: cover;
    }

    .logo-text { font-size: 13px; font-weight: 700; line-height: 1.5; }
    .logo-text span { display: block; color: var(--orange); font-size: 15px; }

    .nav { display: flex; align-items: center; gap: 4px; }

    .nav a {
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 14px;
      color: var(--text-muted);
      transition: color 0.2s, background 0.2s;
    }

    .nav a:hover { color: var(--blue); background: var(--white); }
    .nav a.active { color: var(--orange); font-weight: 600; }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 12px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
    }

    .btn-outline {
      background: var(--white);
      border-color: var(--blue);
      color: var(--blue);
    }

    .btn-outline:hover { background: var(--blue-light); }

    .btn-primary {
      background: var(--orange);
      color: var(--white);
      box-shadow: 0 2px 12px rgba(245, 130, 32, 0.3);
    }

    .btn-primary:hover { background: var(--orange-dark); }

    .btn-card {
      width: 100%;
      padding: 10px 16px;
      font-size: 13px;
      background: var(--white);
      border-color: rgba(31, 90, 166, 0.35);
      color: var(--blue);
      border-radius: 12px;
    }

    .btn-card:hover { background: var(--blue-light); }

    .mobile-nav {
      display: none;
      overflow-x: auto;
      gap: 4px;
      padding: 8px 0 10px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .mobile-nav a {
      flex-shrink: 0;
      padding: 6px 12px;
      font-size: 12px;
      color: var(--text-muted);
      border-radius: 8px;
    }

    .mobile-nav a.active { color: var(--orange); font-weight: 600; }

    /* Breadcrumb */
    .breadcrumb {
      padding: 16px 0 8px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .breadcrumb a { color: var(--blue); }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb span { margin: 0 8px; opacity: 0.5; }

    /* Hero */
    .courses-hero {
      background: var(--white);
      padding: 0 0 32px;
      margin-bottom: 8px;
    }

    .courses-hero-head {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 680px;
      margin: 0 auto;
      padding: 8px 0 28px;
    }

    .courses-hero-head h1 {
      font-size: clamp(28px, 3.8vw, 40px);
      font-weight: 800;
      color: var(--blue);
      line-height: 1.35;
      margin-bottom: 16px;
    }

    .courses-hero-head p {
      font-size: 15px;
      color: var(--text-muted);
      line-height: 2;
    }

    /* Filters */
    .courses-filters {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .filter-pill {
      padding: 10px 20px;
      border-radius: 50px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--white);
      border: 1.5px solid rgba(42, 42, 42, 0.08);
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .filter-pill:hover {
      border-color: rgba(245, 130, 32, 0.35);
      color: var(--orange);
    }

    .filter-pill.active {
      background: var(--orange-light);
      border-color: rgba(245, 130, 32, 0.25);
      color: var(--orange);
    }

    /* Course grid */
    .courses-section {
      padding: 24px 0 48px;
    }

    .courses-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .course-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      transition: transform 0.25s, box-shadow 0.25s;
    }

    .course-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-hover);
    }

    .course-img {
      height: 168px;
      overflow: hidden;
    }

    .course-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .course-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      flex: 1;
      gap: 8px;
    }

    .course-body h3 {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.55;
      color: var(--text);
    }

    .course-age {
      font-size: 13px;
      font-weight: 600;
      color: var(--orange);
    }

    .course-meta {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .course-body .btn-card {
      margin-top: auto;
    }

    /* Features bar */
    .features-bar {
      background: rgba(255, 255, 255, 0.85);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      margin-bottom: 56px;
      box-shadow: var(--shadow);
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
    }

    .feature-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .feature-icon {
      flex-shrink: 0;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .feature-icon img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .feature-text p {
      font-size: 12px;
      font-weight: 700;
      line-height: 1.6;
      color: var(--text);
    }

    .feature-text span {
      display: block;
      font-size: 11px;
      font-weight: 500;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* Footer */
    .footer {
      background: var(--white);
      border-top: 1px solid rgba(42, 42, 42, 0.06);
      padding: 48px 0 24px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 32px;
      margin-bottom: 36px;
    }

    .footer-col h4 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 16px;
      color: var(--blue);
    }

    .footer-col a {
      display: block;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
      transition: color 0.2s;
    }

    .footer-col a:hover { color: var(--orange); }

    .footer-contact li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .footer-contact svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 2px;
      color: var(--orange);
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-top: 24px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .footer-brand img {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      object-fit: cover;
    }

    .social-links { display: flex; gap: 10px; }

    .social-links a {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      transition: background 0.2s, color 0.2s;
    }

    .social-links a:hover { background: var(--orange-light); color: var(--orange); }
    .social-links svg { width: 18px; height: 18px; }

    .copyright {
      font-size: 12px;
      color: var(--text-muted);
      text-align: left;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .nav { display: none; }
      .mobile-nav { display: flex; }
      .courses-grid { grid-template-columns: repeat(2, 1fr); }
      .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      .courses-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    }

    @media (max-width: 480px) {
      .features-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .header-actions .btn-outline { display: none; }
      .footer-bottom { flex-direction: column; text-align: center; }
      .copyright { text-align: center; }
    }
