  /* =========================
   Viva Media Creative - learn Page (Luxury Blog UI)
   ضع هذا الملف كـ learn.css داخل /learn/
   ========================= */

/* أساسيات */
.learn {
  background: #0b0f19;
  color: #e9eefc;
}

/* حاوية الصفحة (لو عندك .container أصلاً في style.css سيكمل، هذا فقط لتحسينها) */
.learn .container {
  max-width: 1180px;
}

/* عنوان + وصف */
.learn .section {
  padding-top: 28px;
  padding-bottom: 60px;
}

.learn .section-title {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 800;
  margin: 14px 0 10px;
  letter-spacing: 0.2px;
}

.learn .section-desc {
  color: rgba(233, 238, 252, 0.78);
  max-width: 780px;
  line-height: 1.9;
  margin: 0 0 26px;
}

/* Breadcrumb */
.learn nav[aria-label="Breadcrumb"] {
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.learn nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.learn nav[aria-label="Breadcrumb"] a {
  color: rgba(233, 238, 252, 0.85);
  text-decoration: none;
}

.learn nav[aria-label="Breadcrumb"] a:hover {
  text-decoration: underline;
}

.learn nav[aria-label="Breadcrumb"] li {
  color: rgba(233, 238, 252, 0.7);
}

.learn nav[aria-label="Breadcrumb"] li::after {
  content: "•";
  margin: 0 10px;
  color: rgba(233, 238, 252, 0.35);
}

.learn nav[aria-label="Breadcrumb"] li:last-child::after {
  content: "";
  margin: 0;
}

/* شبكة المقالات */
.learn .services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* الكروت */
.learn .card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

/* وهج */
.learn .card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(900px 280px at 20% 0%,
    rgba(0,119,255,0.35),
    transparent 60%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.learn .card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,119,255,0.35);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.50),
    0 0 0 1px rgba(0,119,255,0.10) inset;
}

.learn .card:hover::before {
  opacity: 1;
}

/* الصورة */
.learn .card-image {
  position: relative;
  display: block;
  overflow: hidden;
}

.learn .card-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.01);
  transition: transform .35s ease, filter .35s ease;
}

.learn .card:hover .card-image img {
  transform: scale(1.06);
  filter: saturate(1.18) contrast(1.06);
}

/* التدرج فوق الصورة فقط */
.learn .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10),
    rgba(0,0,0,0.45)
  );
  pointer-events: none;
}

/* المحتوى */
.learn .card-content {
  position: relative;
  z-index: 2;
  padding: 16px;
}

.learn .card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 800;
}

.learn .card h3 a {
  color: #f2f6ff;
  text-decoration: none;
}

.learn .card h3 a:hover {
  color: #74b4ff;
}

.learn .card p {
  margin: 0 0 14px;
  color: rgba(233, 238, 252, 0.74);
  line-height: 1.85;
  font-size: 0.96rem;
}

.learn .card-link {
  display: inline-block;
  color: #9ad0ff;
  text-decoration: none;
  font-weight: 700;
}

.learn .card-link:hover {
  text-decoration: underline;
}

/* شارة بسيطة */
.learn .card h3 a::after {
  content: " ↗";
  opacity: 0.55;
  font-weight: 700;
}

/* المقال المميز */
.learn .services-grid .card:first-child {
  grid-column: span 12;
  border-radius: 22px;
}

.learn .services-grid .card:first-child .card-image img {
  height: 360px;
}

.learn .services-grid .card:first-child h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

.learn .services-grid .card:first-child p {
  max-width: 900px;
  font-size: 1.02rem;
}

/* تابلت */
@media (max-width: 980px) {
  .learn .card { grid-column: span 6; }
  .learn .services-grid .card:first-child { grid-column: span 12; }
}

/* موبايل */
@media (max-width: 640px) {
  .learn .services-grid { gap: 14px; }
  .learn .card { grid-column: span 12; border-radius: 16px; }
  .learn .card-image img { height: 190px; }
  .learn .services-grid .card:first-child .card-image img { height: 240px; }
  .learn .card-content { padding: 14px; }
}

/* =========================
   FIX HEADER (learn Page)
   ========================= */

.learn .site-header{
  background: rgba(10,14,25,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.learn .site-header .header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

/* يمنع “تمدد” اللوجو اللي عامل المشكلة */
.learn .site-header .logo{
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: cover !important;
  border-radius: 14px;
  display: block;
}

/* منطقة البراند (لوجو + اسم) */
.learn .site-header .brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.learn .site-header .brand a{
  display: inline-flex;
  align-items: center;
}

/* نص البراند */
.learn .site-header .brand-text{
  text-align: right;
}

.learn .site-header .brand-text h1{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.learn .site-header .brand-text .tag{
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: rgba(233,238,252,0.75);
}

/* منيو الهيدر */
.learn .site-header .main-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.learn .site-header .main-nav a{
  color: rgba(233,238,252,0.9);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
}

.learn .site-header .main-nav a:hover{
  background: rgba(255,255,255,0.08);
}

.learn .site-header .main-nav a.active{
  background: rgba(0,119,255,0.18);
  color: #9ad0ff;
}

/* اللغة */
.learn .site-header .lang{
  color: rgba(233,238,252,0.8);
  white-space: nowrap;
}

.learn .site-header .lang a{
  color: #9ad0ff;
  text-decoration: none;
}

.learn .site-header .lang a:hover{
  text-decoration: underline;
}

/* موبايل */
@media (max-width: 768px){
  .learn .site-header .header-inner{
    flex-direction: column;
    align-items: stretch;
  }
  .learn .site-header .brand{
    justify-content: center;
  }
  .learn .site-header .main-nav{
    justify-content: center;
  }
  .learn .site-header .lang{
    text-align: center;
  }
}


/* هادئ، مرتب، يشبه الشركات الكبرى — بدون الاعتماد على ألوان خاصة */
.site-footer{
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0 22px;
  align-items: start;
}

.footer-col h3{
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a{
  text-decoration: none;
  color: rgba(233, 238, 252, 0.86);
}

.footer-col a:hover{
  color: rgba(233, 238, 252, 1);
}

.footer-brand .footer-logo img{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255,255,255,0.14);
}

.footer-desc{
  margin: 14px 0 14px;
  color: rgba(233, 238, 252, 0.72);
  line-height: 1.9;
  font-size: 0.95rem;
  max-width: 44ch;
}

.footer-contact{
  display: grid;
  gap: 10px;
}

.footer-mail{
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.footer-lang{
  color: rgba(233, 238, 252, 0.65);
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-cta{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cta .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(233, 238, 252, 0.92);
}

.footer-cta .btn.primary{
  background: rgba(0,119,255,0.18);
  border-color: rgba(0,119,255,0.32);
}

.footer-bottom{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 26px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(233, 238, 252, 0.70);
  font-size: 0.9rem;
}

.footer-legal{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Responsive */
@media (max-width: 1100px){
  .footer-grid{ grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-desc{ max-width: none; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

