* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    :root {
      --primary: #2563eb;
      --primary-dark: #1d4ed8;
      --secondary: #f1f5f9;
      --text: #1e293b;
      --text-secondary: #475569;
      --white: #ffffff;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --transition: all 0.3s ease;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
    }

    body {
      background-color: #f8fafc;
      color: var(--text);
      line-height: 1.6;
      transition: var(--transition);
    }

    .container {
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* Header Styles */
    header {
      background-color: var(--white);
      box-shadow: var(--shadow);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: var(--text);
      font-weight: 700;
      font-size: 1.25rem;
      display: flex;
      align-items: center;
    }

    .logo-icon {
      background: var(--primary);
      color: white;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      flex-shrink: 0;
    }

    nav ul {
      display: flex;
      list-style: none;
      gap: 2rem;
    }

    nav a {
      text-decoration: none;
      color: var(--text-secondary);
      font-weight: 500;
      transition: var(--transition);
      padding: 0.5rem 0;
      position: relative;
    }

    nav a:hover {
      color: var(--text);
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: var(--transition);
    }

    nav a:hover::after {
      width: 100%;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .language-selector {
      position: relative;
      min-width: 120px;
    }

    #language-selector {
      appearance: none;
      background: var(--secondary);
      border: 1px solid #cbd5e1;
      border-radius: 0.5rem;
      padding: 0.5rem 1.5rem 0.5rem 0.75rem;
      font-weight: 500;
      color: var(--text);
      width: 100%;
      cursor: pointer;
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23475569' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.5rem center;
      background-size: 1.25rem;
      padding-right: 2rem;
    }

    #language-selector:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      border: none;
      font-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      text-decoration: none;
    }

    .btn-outline {
      background: transparent;
      border: 1px solid var(--text-secondary);
      color: var(--text-secondary);
    }

    .btn-outline:hover {
      background: var(--secondary);
      color: var(--text);
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }

    /* Hero Section */
    .hero {
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      padding: 5rem 0;
      text-align: center;
    }

    .hero-content {
      max-width: 800px;
      margin: 0 auto;
    }

    .hero h1 {
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 1.5rem;
      color: var(--text);
    }

    .hero p {
      font-size: 1.25rem;
      color: var(--text-secondary);
      margin-bottom: 2.5rem;
    }

    .tutorials-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: white;
      padding: 0.5rem 1.25rem;
      border-radius: 999px;
      font-weight: 600;
      color: var(--primary);
      border: 1px solid #e2e8f0;
      margin-top: 1rem;
    }

    .tutorials-badge::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      background: var(--primary);
      border-radius: 50%;
    }

    /* Tutorials Grid */
    .tutorials-grid {
      padding: 4rem 0;
    }

    .section-title {
      text-align: center;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 3rem;
      color: var(--text);
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
    }

    .tutorial-card {
      background: var(--white);
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .tutorial-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .card-image {
      height: 200px;
      background-size: cover;
      background-position: center;
      position: relative;
      flex-shrink: 0;
    }

    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 60px;
      height: 60px;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 2;
      transition: var(--transition);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }

    .play-button:hover {
      background: var(--primary);
      transform: translate(-50%, -50%) scale(1.1);
    }

    .play-button::after {
      content: '';
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-left: 14px solid var(--primary);
      display: inline-block;
      margin-left: 2px;
    }

    .play-button:hover::after {
      border-left: 14px solid white;
    }

    .duration {
      position: absolute;
      bottom: 1rem;
      right: 1rem;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 0.25rem 0.5rem;
      border-radius: 0.25rem;
      font-size: 0.875rem;
      font-weight: 500;
    }

    .card-content {
      padding: 1.5rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .card-content h3 {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
      color: var(--text);
      line-height: 1.4;
    }

    .card-content p {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 1rem;
      border-top: 1px solid #f1f5f9;
      margin-top: auto;
    }

    .difficulty {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
    }

    .difficulty-beginner {
      background: rgba(16, 185, 129, 0.15);
      color: var(--success);
    }

    .difficulty-intermediate {
      background: rgba(245, 158, 11, 0.15);
      color: var(--warning);
    }

    .views {
      color: var(--text-secondary);
      font-size: 0.875rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* Support Section */
    .support {
      background: var(--secondary);
      padding: 5rem 0;
      text-align: center;
    }

    .support-content {
      max-width: 700px;
      margin: 0 auto;
    }

    .support h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      color: var(--text);
    }

    .support p {
      color: var(--text-secondary);
      margin-bottom: 2.5rem;
      font-size: 1.1rem;
    }

    .support-actions {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    

    /* Responsive Design */
    @media (max-width: 992px) {
      .grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      }
    }

    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        gap: 1.5rem;
      }

      nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
      }

      .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }

      .language-selector {
        order: -1;
        width: 100%;
        max-width: 200px;
      }

      .hero h1 {
        font-size: 2rem;
      }

      .hero p {
        font-size: 1.1rem;
      }

      .section-title {
        font-size: 1.75rem;
      }

      .support-actions {
        flex-direction: column;
        align-items: center;
      }

      .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 1.75rem;
      }

      .grid {
        grid-template-columns: 1fr;
      }

      .card-content h3 {
        font-size: 1.15rem;
      }

      .footer-links {
        flex-direction: column;
        gap: 0.75rem;
      }
    }

    /* RTL Styles for Arabic */
    html[dir="rtl"] {
      direction: rtl;
      text-align: right;
    }

    html[dir="rtl"] .logo {
      flex-direction: row-reverse;
    }

    html[dir="rtl"] nav ul {
      gap: 1.5rem;
    }

    html[dir="rtl"] nav a::after {
      left: auto;
      right: 0;
    }

    html[dir="rtl"] .header-actions {
      flex-direction: row-reverse;
    }

    html[dir="rtl"] .language-selector {
      direction: rtl;
    }

    html[dir="rtl"] #language-selector {
      background-position: left 0.5rem center;
      padding-left: 2rem;
      padding-right: 0.75rem;
    }

    html[dir="rtl"] .play-button::after {
      border-left: none;
      border-right: 14px solid var(--primary);
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      margin-left: 0;
      margin-right: 2px;
    }

    html[dir="rtl"] .play-button:hover::after {
      border-right: 14px solid white;
    }

    html[dir="rtl"] .duration {
      right: auto;
      left: 1rem;
    }

    html[dir="rtl"] .card-footer {
      flex-direction: row-reverse;
    }

    html[dir="rtl"] .views {
      margin-right: auto;
    }

    html[dir="rtl"] .footer-logo {
      flex-direction: row-reverse;
    }

    html[dir="rtl"] .footer-links {
      flex-direction: row-reverse;
    }

    /* Animation for language change */
    .fade-in {
      animation: fadeIn 0.4s ease-in-out;
    }

    @keyframes fadeIn {
      from { opacity: 0.7; transform: translateY(5px); }
      to { opacity: 1; transform: translateY(0); }
    }
  
