/*
Theme Name: Massar Learning
Theme URI: https://example.com/massar-learning
Author: OpenAI
Description: قالب عربي RTL متخصص في دورات اللغة الألمانية مع تصميم ألماني حديث وتكامل PayPal عبر الملحق المرفق.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: massar-learning
*/

:root {
  --primary-50: #fff5f5;
  --primary-100: #ffe0e0;
  --primary-500: #dc0000;
  --primary-600: #b50000;
  --primary-700: #8f0000;
  --primary-900: #111827;
  --secondary-500: #ffce00;
  --secondary-600: #d9ad00;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #fff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 30px rgba(181, 0, 0, .14);
  --shadow-xl: 0 22px 50px rgba(15, 23, 42, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--slate-800);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.pattern-bg {
  background-color: var(--slate-50);
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow-sm);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--primary-900); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--primary-600); color: white; border-radius: 13px; box-shadow: 0 12px 24px rgba(37,99,235,.28); }
.brand-accent { color: var(--secondary-500); }
.custom-logo { max-height: 52px; width: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 30px; padding: 0; margin: 0; }
.main-nav a { font-weight: 700; color: var(--slate-600); transition: .2s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary-600); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 800; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary-600); color: white; box-shadow: 0 12px 24px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--primary-700); }
.btn-outline { background: white; color: var(--slate-700); border: 2px solid var(--slate-200); }
.btn-ghost { color: var(--primary-600); background: transparent; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--slate-100); color: var(--slate-700); font-size: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 108px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 64px; }
.pill { display: inline-flex; align-items: center; gap: 9px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-700); border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 14px; }
.pill-dot { width: 10px; height: 10px; background: var(--primary-500); border-radius: 999px; box-shadow: 0 0 0 7px rgba(59,130,246,.12); }
.hero h1 { margin: 24px 0 18px; color: var(--slate-900); font-size: clamp(42px, 5vw, 66px); line-height: 1.2; letter-spacing: -.8px; }
.gradient-text { color: transparent; background: linear-gradient(90deg, var(--secondary-500), var(--primary-600)); -webkit-background-clip: text; background-clip: text; }
.hero-copy { color: var(--slate-600); font-size: 19px; line-height: 1.95; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--slate-200); margin-top: 42px; padding-top: 28px; }
.stat-number { font-size: 30px; color: var(--slate-900); font-weight: 900; }
.stat-label { color: var(--slate-500); font-size: 14px; font-weight: 700; }
.hero-media { position: relative; }
.hero-glow { position: absolute; inset: 8%; background: linear-gradient(135deg, #dbeafe, #fef3c7); border-radius: 50%; filter: blur(65px); opacity: .9; }
.hero-image { position: relative; overflow: hidden; border-radius: 24px; border: 5px solid white; box-shadow: var(--shadow-xl); transform: rotate(2deg); transition: transform .4s ease; }
.hero-image:hover { transform: rotate(0); }
.hero-image img { width: 100%; min-height: 430px; object-fit: cover; }
.floating-card { position: absolute; left: -20px; bottom: 28px; display: flex; align-items: center; gap: 12px; background: white; border-radius: 16px; padding: 14px 17px; box-shadow: var(--shadow-xl); }
.floating-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #16a34a; }
.floating-title { color: var(--slate-800); font-weight: 900; }
.floating-subtitle { color: var(--slate-500); font-size: 12px; }

/* Titles */
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.eyebrow { display: block; color: var(--primary-600); font-weight: 900; margin-bottom: 8px; }
.section-head h2, .split-head h2 { margin: 0; color: var(--slate-900); font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.section-head p { color: var(--slate-600); font-size: 17px; line-height: 1.9; }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }

/* Features */
.features { background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 28px; transition: .25s ease; }
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-xl); border-color: var(--primary-100); }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; font-size: 23px; margin-bottom: 20px; }
.feature-icon.blue { background: #dbeafe; color: #2563eb; }
.feature-icon.red { background: #fee2e2; color: #dc2626; }
.feature-icon.amber { background: #fef3c7; color: #d97706; }
.feature-icon.purple { background: #f3e8ff; color: #9333ea; }
.feature-icon.green { background: #dcfce7; color: #16a34a; }
.feature-card h3 { margin: 0 0 10px; color: var(--slate-900); font-size: 20px; }
.feature-card p { margin: 0; color: var(--slate-600); line-height: 1.9; font-size: 14px; }

/* Categories */
.categories-section { background: var(--slate-50); border-block: 1px solid var(--slate-200); }
.category-list { display: flex; flex-wrap: wrap; gap: 14px; }
.category-chip { display: inline-flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--slate-200); padding: 13px 17px; border-radius: 14px; font-weight: 800; box-shadow: var(--shadow-sm); transition: .2s ease; }
.category-chip:hover { border-color: var(--primary-500); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary-700); }
.category-chip i { width: 38px; height: 38px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-600); border-radius: 10px; }

/* Courses */
.courses { background: white; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card { overflow: hidden; display: flex; flex-direction: column; background: white; border: 1px solid var(--slate-100); border-radius: 20px; box-shadow: var(--shadow-sm); transition: .28s ease; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.course-thumb { position: relative; height: 225px; overflow: hidden; background: var(--slate-100); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.badge { position: absolute; top: 14px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; box-shadow: var(--shadow-sm); }
.badge-category { right: 14px; background: rgba(255,255,255,.94); color: var(--primary-700); }
.badge-price { left: 14px; color: white; background: #16a34a; }
.badge-price.premium { background: var(--secondary-500); }
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-title { margin: 0 0 18px; color: var(--slate-900); font-size: 20px; line-height: 1.55; }
.course-title a:hover { color: var(--primary-600); }
.instructor { display: flex; align-items: center; gap: 10px; color: var(--slate-600); font-size: 14px; font-weight: 700; margin-top: auto; }
.instructor-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-100); color: var(--primary-700); display: grid; place-items: center; font-weight: 900; }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--slate-100); margin-top: 18px; padding-top: 16px; color: var(--slate-500); font-size: 13px; }
.course-link { color: var(--primary-600); font-weight: 900; }
.empty-state { grid-column: 1 / -1; padding: 40px; border: 1px dashed var(--slate-200); border-radius: 18px; text-align: center; background: var(--slate-50); color: var(--slate-600); }
.center-action { text-align: center; margin-top: 40px; }

/* Generic content */
.content-area { padding: 72px 0; }
.entry-card { background: white; border: 1px solid var(--slate-100); border-radius: 20px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.entry-title { color: var(--slate-900); font-size: clamp(30px, 4vw, 48px); margin-top: 0; }
.entry-content { line-height: 2; color: var(--slate-700); }
.entry-content h2, .entry-content h3 { color: var(--slate-900); }
.course-hero { display: grid; grid-template-columns: 1fr .9fr; gap: 36px; align-items: center; }
.course-hero img { border-radius: 20px; width: 100%; max-height: 460px; object-fit: cover; }

/* Footer */
.site-footer { background: var(--slate-900); color: white; border-top: 4px solid var(--primary-600); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 42px; }
.footer-brand .brand { color: white; }
.footer-text, .footer-links a { color: var(--slate-400); line-height: 1.9; font-size: 14px; }
.footer-title { border-right: 3px solid var(--primary-500); padding-right: 10px; margin: 0 0 20px; font-size: 17px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: #93c5fd; }
.newsletter { display: grid; gap: 10px; }
.newsletter input { width: 100%; border: 1px solid #334155; background: #1e293b; color: white; border-radius: 10px; padding: 12px 14px; outline: none; }
.newsletter input:focus { border-color: var(--primary-500); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid #1e293b; color: var(--slate-500); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }

/* WordPress helpers */
.alignwide { width: min(1200px, 100%); }
.alignfull { width: 100vw; margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-panel { display: none; position: absolute; inset-inline: 0; top: 80px; background: white; border-top: 1px solid var(--slate-100); box-shadow: var(--shadow-xl); padding: 18px 16px 24px; }
  .mobile-panel.is-open { display: block; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .mobile-panel a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 800; color: var(--slate-700); }
  .mobile-panel a:hover { background: var(--primary-50); color: var(--primary-700); }
  .hero-grid, .course-hero { grid-template-columns: 1fr; }
  .hero-copy-col { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { max-width: 720px; margin-inline: auto; }
  .feature-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 64px 0; }
  .hero { padding: 58px 0 70px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 17px; }
  .hero-stats { gap: 10px; }
  .stat-number { font-size: 24px; }
  .stat-label { font-size: 12px; }
  .feature-grid, .course-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-head { align-items: flex-start; flex-direction: column; }
  .floating-card { left: 8px; right: 8px; bottom: 12px; }
  .hero-image img { min-height: 340px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Version 1.1 — header and front-end authentication fixes */
body.modal-open { overflow: hidden; }
.header-inner { position: relative; }
.brand { min-width: 210px; flex: 0 0 auto; }
.brand-logo, .custom-logo-link { display: inline-flex; align-items: center; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; color: var(--primary-900); }
.brand-copy strong { font-size: 20px; font-weight: 900; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: var(--slate-500); font-size: 10px; font-weight: 700; white-space: nowrap; }
.custom-logo { max-width: 190px; max-height: 52px; object-fit: contain; }
.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.main-nav ul, .mobile-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav li, .mobile-nav li { margin: 0; padding: 0; }
.header-actions { min-width: 250px; justify-content: flex-end; }
.mobile-panel { display: none; }
.mobile-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.mobile-auth-actions .btn { width: 100%; }

/* Authentication modal */
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.auth-modal.is-open { visibility: visible; opacity: 1; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .72); backdrop-filter: blur(8px); }
.auth-modal-dialog { position: relative; width: min(100%, 500px); max-height: calc(100vh - 44px); overflow-y: auto; border-radius: 26px; box-shadow: 0 35px 90px rgba(15, 23, 42, .32); transform: translateY(18px) scale(.98); transition: transform .24s ease; }
.auth-modal.is-open .auth-modal-dialog { transform: translateY(0) scale(1); }
.auth-modal-close { position: absolute; top: 15px; left: 15px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--slate-100); color: var(--slate-600); cursor: pointer; transition: .2s ease; }
.auth-modal-close:hover { background: #fee2e2; color: #dc2626; transform: rotate(5deg); }
.auth-modal-pane[hidden] { display: none !important; }
.auth-card { position: relative; width: 100%; background: white; border: 1px solid rgba(226,232,240,.9); border-radius: 26px; padding: 34px; box-shadow: var(--shadow-xl); }
.auth-card-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 18px; background: linear-gradient(145deg, var(--primary-50), #eef2ff); color: var(--primary-600); font-size: 25px; box-shadow: inset 0 0 0 1px var(--primary-100); }
.auth-card-head { text-align: center; margin-bottom: 24px; }
.auth-card-head h2 { margin: 0 0 8px; color: var(--slate-900); font-size: 27px; }
.auth-card-head p { margin: 0; color: var(--slate-500); font-size: 14px; line-height: 1.8; }
.auth-message { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 800; line-height: 1.7; }
.auth-message.is-error { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.auth-message.is-success { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.massar-auth-form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--slate-700); font-size: 13px; font-weight: 800; }
.form-field small { color: var(--slate-500); font-size: 11px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i { position: absolute; right: 15px; color: var(--slate-400); pointer-events: none; }
.input-wrap input { width: 100%; min-height: 50px; padding: 11px 44px 11px 46px; border: 1px solid var(--slate-200); border-radius: 13px; outline: none; background: white; color: var(--slate-900); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input-wrap input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 4px rgba(59,130,246,.12); background: #fff; }
.password-toggle { position: absolute; left: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--primary-600); cursor: pointer; }
.password-toggle:hover { background: var(--primary-50); }
.remember-row { display: inline-flex; align-items: center; gap: 9px; color: var(--slate-600); font-size: 13px; font-weight: 700; cursor: pointer; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--primary-600); }
.auth-submit { width: 100%; min-height: 52px; margin-top: 2px; }
.auth-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.auth-switch { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--slate-100); text-align: center; color: var(--slate-500); font-size: 13px; }
.auth-switch a { color: var(--primary-600); font-weight: 900; }
.massar-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* Authentication pages and student account */
.auth-page-wrap { min-height: 620px; display: grid; place-items: center; padding: 70px 16px; background-color: var(--slate-50); background-image: radial-gradient(#dbeafe 1px, transparent 1px); background-size: 22px 22px; }
.auth-page-wrap .auth-card { max-width: 500px; }
.auth-already { text-align: center; }
.auth-already h2 { margin-top: 0; color: var(--slate-900); }
.account-dashboard { width: min(1120px, calc(100% - 32px)); margin: 70px auto; display: grid; grid-template-columns: 310px 1fr; gap: 26px; align-items: start; }
.account-sidebar, .account-content { background: white; border: 1px solid var(--slate-100); border-radius: 24px; box-shadow: var(--shadow-sm); }
.account-sidebar { padding: 30px; text-align: center; }
.account-avatar { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 24px; background: linear-gradient(145deg, var(--primary-600), #4f46e5); color: white; font-size: 32px; font-weight: 900; box-shadow: var(--shadow-md); }
.account-sidebar h2 { margin: 0 0 6px; color: var(--slate-900); font-size: 20px; }
.account-sidebar p { margin: 0 0 22px; color: var(--slate-500); font-size: 12px; overflow-wrap: anywhere; }
.account-sidebar .btn { width: 100%; }
.account-content { padding: clamp(28px, 5vw, 52px); }
.account-content h1 { margin: 4px 0 10px; color: var(--slate-900); font-size: clamp(30px, 4vw, 44px); }
.account-content > p { color: var(--slate-600); line-height: 1.9; }
.account-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.account-info-item { padding: 18px; border: 1px solid var(--slate-100); border-radius: 15px; background: var(--slate-50); }
.account-info-item span { display: block; margin-bottom: 7px; color: var(--slate-500); font-size: 12px; font-weight: 700; }
.account-info-item strong { color: var(--slate-900); font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .brand { min-width: 170px; }
  .header-actions { min-width: auto; }
  .main-nav ul { gap: 20px; }
  .brand-copy small { display: none; }
}

@media (max-width: 980px) {
  .brand { min-width: 0; }
  .brand-copy strong { font-size: 18px; }
  .mobile-panel { position: absolute; inset-inline: 0; top: calc(100% + 1px); background: white; border-top: 1px solid var(--slate-100); box-shadow: var(--shadow-xl); padding: 18px 16px 24px; }
  .mobile-panel.is-open { display: block; }
  .account-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-copy { display: none; }
  .custom-logo { max-width: 150px; max-height: 44px; }
  .auth-modal { padding: 10px; }
  .auth-modal-dialog { max-height: calc(100vh - 20px); border-radius: 20px; }
  .auth-card { padding: 27px 20px 22px; border-radius: 20px; }
  .auth-card-head h2 { font-size: 23px; }
  .mobile-auth-actions { grid-template-columns: 1fr; }
  .account-info-grid { grid-template-columns: 1fr; }
}
.auth-system-page { min-height: 620px; }
.auth-system-page .auth-page-wrap { min-height: 620px; }

/* Version 1.2 — German language academy design */
[lang="de"], .hero-german-line, .visual-copy strong, .dialog-card p, .course-language-line span:first-child {
  font-family: "Manrope", "Cairo", system-ui, sans-serif;
  direction: ltr;
}
.germany-ribbon { position: absolute; inset: 0 0 auto; height: 4px; display: grid; grid-template-columns: repeat(3, 1fr); direction: ltr; z-index: 3; }
.germany-ribbon span:nth-child(1) { background: #111; }
.germany-ribbon span:nth-child(2) { background: #dd0000; }
.germany-ribbon span:nth-child(3) { background: #ffce00; }
.site-header { padding-top: 4px; }
.de-brand-mark { background: linear-gradient(145deg, #111827, #30343b); color: white; box-shadow: 0 12px 26px rgba(17,24,39,.24); position: relative; overflow: hidden; }
.de-brand-mark::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, #111 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); }
.de-brand-mark > span { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 900; letter-spacing: -.03em; transform: translateY(-2px); }
.subscription-mini-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 11px; color: #765500; background: #fff8cf; border: 1px solid #f5dd70; font-size: 12px; font-weight: 900; white-space: nowrap; }
.subscription-mini-link i { color: #a66f00; }
.mobile-subscription-link { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #765500 !important; background: #fff8cf !important; border: 1px solid #f5dd70; }
.btn-primary { background: linear-gradient(135deg, #b50000, #dc0000); box-shadow: 0 12px 28px rgba(181,0,0,.24); }
.btn-primary:hover { background: linear-gradient(135deg, #8f0000, #b50000); }
.btn-outline:hover { border-color: #b50000; color: #b50000; }
.pattern-bg { background-color: #fbfbfc; background-image: radial-gradient(rgba(17,24,39,.12) 1px, transparent 1px); }

/* German hero */
.german-hero { min-height: 720px; padding-top: 92px; background: linear-gradient(180deg, #fff 0%, #fbfbfc 72%, #f6f7f8 100%); }
.german-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(221,0,0,.035), transparent 40%, rgba(255,206,0,.06)); pointer-events: none; }
.hero-berlin-word { position: absolute; direction: ltr; left: -18px; bottom: -45px; color: rgba(17,24,39,.025); font-family: "Manrope", sans-serif; font-size: clamp(120px, 18vw, 280px); font-weight: 900; letter-spacing: -.08em; line-height: 1; user-select: none; }
.german-pill { color: #8f0000; background: #fff8f8; border-color: #ffd4d4; }
.flag-dot { width: 25px; height: 13px; display: grid; grid-template-rows: repeat(3, 1fr); overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(17,24,39,.12); }
.flag-dot i:nth-child(1) { background: #111; }
.flag-dot i:nth-child(2) { background: #dd0000; }
.flag-dot i:nth-child(3) { background: #ffce00; }
.hero-german-line { margin: 21px 0 -7px; color: #b50000; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.german-hero h1 { max-width: 690px; font-size: clamp(43px, 5.2vw, 70px); line-height: 1.16; }
.german-hero h1::after { content: "Deutsch."; display: inline-block; margin-right: 12px; color: #b50000; font-family: "Manrope", sans-serif; font-size: .45em; direction: ltr; vertical-align: middle; }
.level-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; direction: ltr; }
.level-row span { min-width: 46px; padding: 8px 11px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; color: #111827; text-align: center; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 900; box-shadow: 0 7px 18px rgba(17,24,39,.05); }
.level-row span:nth-last-child(1) { color: #fff; background: #111827; border-color: #111827; }
.german-glow { background: linear-gradient(135deg, rgba(221,0,0,.2), rgba(255,206,0,.27)); }
.german-visual-wrap { padding: 12px 0 18px; }
.german-learning-visual { position: relative; min-height: 560px; overflow: hidden; padding: 28px; border: 5px solid #fff; border-radius: 30px; background: linear-gradient(160deg, #fff 0 56%, #f3f4f6 56%); box-shadow: 0 35px 80px rgba(17,24,39,.18); transform: rotate(-1.2deg); transition: transform .4s ease; }
.german-learning-visual:hover { transform: rotate(0); }
.visual-topbar { display: flex; align-items: center; gap: 14px; direction: ltr; }
.visual-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #111827; color: #fff; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 900; box-shadow: inset 0 -5px 0 #dd0000; }
.visual-progress { flex: 1; height: 9px; overflow: hidden; border-radius: 999px; background: #eceff3; }
.visual-progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #111 0 33%, #dd0000 33% 67%, #ffce00 67%); }
.visual-level { min-width: 44px; padding: 8px; border-radius: 10px; background: #fff2b4; color: #765500; font-family: "Manrope", sans-serif; text-align: center; font-weight: 900; }
.visual-copy { max-width: 440px; margin-top: 28px; }
.visual-copy small { display: block; color: #b50000; font-weight: 800; }
.visual-copy strong { display: block; margin-top: 5px; color: #111827; font-size: clamp(25px, 3vw, 37px); line-height: 1.2; }
.visual-copy p { margin: 12px 0 0; color: #667085; font-size: 13px; line-height: 1.8; }
.dialog-card { position: relative; z-index: 3; display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: 10px; width: 88%; padding: 13px; border: 1px solid #e5e7eb; border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: 0 16px 35px rgba(17,24,39,.10); }
.dialog-card p { margin: 0; color: #273142; font-size: 12px; font-weight: 700; line-height: 1.5; }
.dialog-card > i { color: #b50000; text-align: center; }
.dialog-one { margin: 22px 0 10px auto; }
.dialog-two { margin-right: auto; }
.avatar-de, .avatar-ar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-weight: 900; }
.avatar-de { color: #fff; background: #111827; font-family: "Manrope", sans-serif; }
.avatar-ar { color: #8f0000; background: #ffe0e0; }
.brandenburg-scene { position: absolute; inset: auto 0 -5px; color: #111827; opacity: .95; }
.brandenburg-scene svg { display: block; width: 100%; height: auto; }
.visual-badge { position: absolute; z-index: 4; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 15px 35px rgba(17,24,39,.13); }
.visual-badge > i { color: #dd0000; }
.visual-badge span { display: grid; }
.visual-badge strong { color: #111827; font-family: "Manrope", sans-serif; font-size: 12px; }
.visual-badge small { color: #667085; font-size: 10px; }
.german-floating-card { left: -18px; bottom: 8px; z-index: 5; }
.german-floating-card .floating-icon { color: #765500; background: #fff4b4; }
.german-custom-image { transform: rotate(-1deg); }

.de-trust-strip { position: relative; z-index: 4; border-block: 1px solid #e5e7eb; background: #111827; color: #fff; }
.de-trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.de-trust-strip span { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 74px; padding: 14px; border-inline-start: 1px solid rgba(255,255,255,.1); font-family: "Manrope", "Cairo", sans-serif; font-size: 12px; font-weight: 800; text-align: center; }
.de-trust-strip span:first-child { border-inline-start: 0; }
.de-trust-strip i { color: #ffce00; }

/* German content sections */
.german-features { background: #fff; }
.german-feature-grid { grid-template-columns: repeat(3, 1fr); }
.german-feature-card { position: relative; overflow: hidden; background: #fbfbfc; }
.german-feature-card::after { content: "DE"; position: absolute; left: 14px; bottom: -12px; color: rgba(17,24,39,.035); font-family: "Manrope", sans-serif; font-size: 70px; font-weight: 900; }
.feature-icon.dark { background: #111827; color: #ffce00; }
.german-feature-card .feature-icon.red { background: #ffe0e0; color: #b50000; }
.german-feature-card .feature-icon.amber { background: #fff3b0; color: #8a6500; }
.german-levels-section { background: #f7f7f8; }
.level-category-list { gap: 12px; }
.de-level-chip { min-width: 160px; }
.de-level-chip > i { font-style: normal; color: #fff; background: #111827; font-family: "Manrope", sans-serif; font-weight: 900; }
.de-level-chip span { display: grid; color: #4b5563; font-size: 12px; }
.german-courses { background: #fff; }
.german-course-card { border-color: #e5e7eb; }
.german-course-card:hover { border-color: #f2b8b8; box-shadow: 0 24px 58px rgba(81,0,0,.12); }
.course-placeholder { width: 100%; height: 100%; }
.de-course-placeholder { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, #111827, #2f333a); }
.de-course-placeholder::before { content: ""; position: absolute; width: 170px; height: 170px; border: 24px solid rgba(255,255,255,.05); border-radius: 50%; left: -55px; bottom: -80px; }
.placeholder-level { position: absolute; top: 23px; right: 22px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: #111827; background: #ffce00; font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 900; }
.de-course-placeholder strong { position: relative; z-index: 2; font-family: "Manrope", sans-serif; font-size: 28px; }
.de-course-placeholder small { position: relative; z-index: 2; margin-top: 7px; color: #d1d5db; }
.placeholder-flag { position: absolute; inset: auto 0 0; height: 9px; display: grid; grid-template-columns: repeat(3, 1fr); direction: ltr; }
.placeholder-flag i:nth-child(1) { background: #111; }
.placeholder-flag i:nth-child(2) { background: #dd0000; }
.placeholder-flag i:nth-child(3) { background: #ffce00; }
.course-lock-badge { position: absolute; inset: auto auto 14px 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #ffce00; background: rgba(17,24,39,.92); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.course-language-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #667085; font-size: 10px; font-weight: 800; direction: ltr; }
.course-language-line i { width: 18px; height: 2px; background: #dd0000; }
.course-card-excerpt { margin: -8px 0 16px; color: #667085; font-size: 12px; line-height: 1.75; }
.german-course-card .course-meta i { color: #b50000 !important; }
.german-empty-state { background: linear-gradient(135deg, #fff, #f7f7f8); }
.empty-levels { display: inline-block; color: #b50000; font-family: "Manrope", sans-serif; font-weight: 900; letter-spacing: .08em; }
.home-membership-section { padding: 20px 0 45px; background: #f7f7f8; }
.home-membership-section .massar-membership-shell { margin-top: 42px; margin-bottom: 42px; }
.plugin-needed-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-block: 70px; padding: 45px; border-radius: 28px; background: #fff; border: 1px solid #e5e7eb; box-shadow: var(--shadow-xl); }
.plugin-needed-card h2 { margin: 4px 0 10px; color: #111827; font-size: 34px; }
.plugin-needed-card p { margin: 0; color: #667085; }
.plugin-lock { width: 110px; height: 110px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 30px; color: #003087; background: #ffc439; font-size: 43px; box-shadow: 0 18px 40px rgba(255,196,57,.3); }

/* Learning method */
.de-method-section { color: #fff; background: #111827; }
.de-method-section .eyebrow { color: #ffce00; }
.de-method-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.de-method-copy h2 { margin: 5px 0 18px; font-size: clamp(34px, 4.5vw, 53px); line-height: 1.25; }
.de-method-copy > p { max-width: 670px; color: #cbd5e1; line-height: 1.9; }
.method-steps { display: grid; gap: 13px; margin-top: 28px; }
.method-steps > div { display: flex; align-items: center; gap: 14px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.035); }
.method-steps b { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #111827; background: #ffce00; font-family: "Manrope", sans-serif; }
.method-steps span { display: grid; }
.method-steps strong { font-family: "Manrope", sans-serif; direction: ltr; }
.method-steps small { color: #94a3b8; }
.de-phrase-board { position: relative; padding: clamp(28px, 5vw, 48px); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: 0 35px 70px rgba(0,0,0,.22); }
.de-phrase-board::after { content: "B1"; position: absolute; left: 18px; bottom: -24px; color: rgba(255,255,255,.045); font-family: "Manrope", sans-serif; font-size: 130px; font-weight: 900; }
.phrase-board-header { display: flex; justify-content: space-between; align-items: center; color: #ffce00; font-family: "Manrope", sans-serif; font-weight: 800; direction: ltr; }
.de-phrase-board > p { position: relative; z-index: 2; margin: 34px 0 20px; color: #fff; font-family: "Manrope", sans-serif; direction: ltr; font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.45; }
.phrase-translation { position: relative; z-index: 2; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #cbd5e1; line-height: 1.8; }
.phrase-actions { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 25px; direction: ltr; }
.phrase-actions span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.08); font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 800; }
.phrase-actions i { color: #ffce00; }

/* Single course */
.single-german-course { padding: 72px 0; background: linear-gradient(180deg, #f8f8f9, #fff); }
.german-course-hero { position: relative; overflow: hidden; grid-template-columns: 1.05fr .95fr; gap: 44px; padding: clamp(30px, 5vw, 58px); background: #fff; }
.german-course-hero::before { content: "DEUTSCH"; position: absolute; right: -28px; bottom: -36px; color: rgba(17,24,39,.03); font-family: "Manrope", sans-serif; font-size: 112px; font-weight: 900; direction: ltr; }
.course-hero-copy, .course-hero-media { position: relative; z-index: 2; }
.course-hero-topline { display: flex; align-items: center; gap: 10px; color: #667085; font-size: 12px; font-weight: 800; }
.de-mini-flag { width: 31px; height: 15px; display: grid; grid-template-rows: repeat(3, 1fr); overflow: hidden; border-radius: 3px; }
.de-mini-flag i:nth-child(1) { background: #111; }
.de-mini-flag i:nth-child(2) { background: #dd0000; }
.de-mini-flag i:nth-child(3) { background: #ffce00; }
.german-course-hero .entry-title { margin: 20px 0 14px; font-size: clamp(36px, 5vw, 58px); line-height: 1.25; }
.course-lead { color: #667085; font-size: 16px; line-height: 1.9; }
.course-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; }
.course-facts span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; color: #4b5563; font-size: 12px; font-weight: 800; }
.course-facts i { color: #b50000; }
.course-hero-media > img { width: 100%; min-height: 390px; object-fit: cover; border-radius: 24px; }
.single-course-placeholder { position: relative; min-height: 390px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 35px; border-radius: 24px; color: #fff; background: linear-gradient(145deg, #111827, #333840); text-align: center; }
.single-course-de { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; color: #111827; background: #ffce00; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 900; }
.single-course-placeholder strong { margin-top: 23px; font-family: "Manrope", sans-serif; direction: ltr; font-size: 23px; }
.single-course-placeholder p { color: #cbd5e1; font-family: "Manrope", sans-serif; direction: ltr; }
.single-course-placeholder svg { position: absolute; inset: auto 0 0; width: 100%; color: rgba(255,255,255,.18); }
.course-hero-seal { position: absolute; left: -14px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 15px; color: #111827; background: #fff; box-shadow: 0 17px 40px rgba(17,24,39,.16); }
.course-hero-seal > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #b50000; }
.course-hero-seal span { font-family: "Manrope", sans-serif; direction: ltr; font-size: 12px; font-weight: 900; }
.course-hero-seal small { color: #667085; font-size: 9px; }
.protected-course-entry { margin-top: 28px; }
.protected-course-notice { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; padding: 15px; border: 1px solid #f5df7a; border-radius: 14px; background: #fffbea; }
.protected-course-notice > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #765500; background: #ffef9b; }
.protected-course-notice span { display: grid; }
.protected-course-notice strong { color: #514000; }
.protected-course-notice small { color: #7c6a2b; }
.plugin-needed-course { margin-top: 28px; text-align: center; }

/* Archive */
.german-course-archive { padding-top: 60px; }
.archive-de-banner { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 44px; padding: clamp(28px, 5vw, 54px); border-radius: 28px; color: #fff; background: linear-gradient(135deg, #111827, #2e333b); }
.archive-de-banner::after { content: "DEUTSCH"; position: absolute; left: -15px; bottom: -32px; color: rgba(255,255,255,.045); font-family: "Manrope", sans-serif; direction: ltr; font-size: 120px; font-weight: 900; }
.archive-de-banner > div { position: relative; z-index: 2; }
.archive-de-banner .eyebrow { color: #ffce00; }
.archive-de-banner h1 { margin: 4px 0 10px; color: #fff; }
.archive-de-banner p { margin: 0; color: #cbd5e1; line-height: 1.8; }
.archive-level-stack { display: flex; gap: 7px; direction: ltr; }
.archive-level-stack span { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.08); font-family: "Manrope", sans-serif; font-weight: 900; }
.archive-level-stack span:nth-child(3) { color: #111827; background: #ffce00; border-color: #ffce00; }
.archive-pagination { margin-top: 40px; }

/* Footer */
.german-footer { position: relative; background: #0c1017; border-top: 0; padding-top: 72px; }
.footer-ribbon { top: 0; bottom: auto; }
.footer-brand-lockup { color: #fff; }
.footer-language-tags { display: flex; flex-wrap: wrap; gap: 7px; direction: ltr; }
.footer-language-tags span { padding: 6px 9px; border: 1px solid #303845; border-radius: 8px; color: #d1d5db; font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 900; }
.german-footer .footer-title { border-color: #dd0000; }
.german-footer .newsletter input:focus { border-color: #dd0000; }
.paypal-only-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #94a3b8; font-size: 11px; font-weight: 700; }
.paypal-only-note i { color: #ffc439; font-size: 17px; }

@media (max-width: 1180px) {
  .subscription-mini-link { display: none; }
  .header-actions { min-width: 230px; }
  .german-learning-visual { min-height: 530px; }
}
@media (max-width: 980px) {
  .german-hero { min-height: auto; }
  .german-hero .hero-grid { gap: 48px; }
  .german-learning-visual { max-width: 700px; margin-inline: auto; }
  .de-trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .de-trust-strip span:nth-child(3) { border-top: 1px solid rgba(255,255,255,.1); }
  .de-trust-strip span:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  .german-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .de-method-grid { grid-template-columns: 1fr; }
  .german-course-hero { grid-template-columns: 1fr; }
  .archive-de-banner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .german-hero h1 { font-size: 40px; }
  .german-hero h1::after { display: block; width: max-content; margin: 10px auto 0; }
  .level-row { justify-content: center; }
  .german-learning-visual { min-height: 510px; padding: 20px; }
  .visual-copy strong { font-size: 25px; }
  .dialog-card { width: 100%; }
  .brandenburg-scene { bottom: 18px; }
  .visual-badge { bottom: 18px; left: 15px; }
  .german-floating-card { display: none; }
  .de-trust-strip .container { width: 100%; grid-template-columns: 1fr 1fr; }
  .de-trust-strip span { min-height: 66px; font-size: 10px; }
  .german-feature-grid { grid-template-columns: 1fr; }
  .plugin-needed-card { align-items: flex-start; flex-direction: column; padding: 28px; }
  .plugin-lock { width: 78px; height: 78px; border-radius: 22px; font-size: 32px; }
  .archive-level-stack { flex-wrap: wrap; }
  .archive-level-stack span { width: 46px; height: 46px; }
  .course-hero-seal { left: 10px; }
}
