/* Same scoped carousel presentation as tajriba-new. */
body .hadara-diaries-carousel { scroll-margin-top: 145px; }
body.hadara-academic .hadara-department-canvas .hadara-diaries-carousel .lux-head h2 {
  font-family: "Noto Kufi Arabic", sans-serif !important;
  line-height: 1.5 !important;
}
body.hadara-academic .hadara-department-canvas .hadara-diaries-carousel .lux-head p {
  font-family: "Noto Naskh Arabic", Tahoma, serif !important;
  line-height: 1.65 !important;
}
body.hadara-academic .hadara-department-canvas .hadara-diaries-carousel .card h4 {
  font-family: "Hadera Kufi", "Noto Kufi Arabic", Tahoma, sans-serif !important;
}
body.hadara-academic .hadara-department-canvas .hadara-diaries-carousel .hint {
  font-family: "Noto Naskh Arabic", Tahoma, serif !important;
  font-size: 11.5px !important;
  line-height: 1.65 !important;
}
body.hadara-academic .hadara-department-canvas .elementor > .e-con.e-parent:has(.hadara-diaries-carousel) {
  width: 100%; min-width: 0; margin: 0 !important;
  padding: 40px 20px !important; background: transparent !important;
}
body.hadara-academic .hadara-department-canvas .elementor > .e-con.e-parent:has(.hadara-diaries-carousel) > .e-con-inner {
  width: 100% !important; max-width: 1480px !important;
  padding: 0 !important; margin-inline: auto !important;
}
body.hadara-academic .hadara-department-canvas .elementor-widget-hadara_academic_student_diaries { width: 100% !important; max-width: none !important; }

body .hadara-diaries-carousel{
  --navy:#184D75;--deep:#0B2540;--deep2:#10395E;
  --acc:#82BDE8;--acc-lt:#BCD9F5;--acc-ink:#0B2540;
  --bg:#FCFCFC;
  --hawaf-surface-from:#14395E;--hawaf-surface-to:#0B2540;
  --hawaf-card:#163C60;
  --hawaf-edge:rgba(74,134,186,.50);
  --hawaf-edge-soft:rgba(130,189,232,.16);
  --hawaf-line:rgba(130,189,232,.30);
}
body .hadara-diaries-carousel{max-width:1480px;margin:0 auto;font-family:"Noto Naskh Arabic",Tahoma,serif;background:var(--bg);padding:28px 14px;color:#1d2733}
body .hadara-diaries-carousel,
body .hadara-diaries-carousel *{margin:0;padding:0;box-sizing:border-box}
body .hadara-diaries-carousel .note{background:#fff;border:1px dashed var(--navy);border-radius:12px;padding:10px 16px;font-size:12.5px;line-height:2;margin-bottom:16px;color:#333}
body .hadara-diaries-carousel .note b{color:var(--navy)}
body .hadara-diaries-carousel .lux{position:relative;overflow:hidden;background:radial-gradient(900px 320px at 85% -60px,rgba(130,189,232,.13),transparent 60%),radial-gradient(700px 300px at 10% 110%,rgba(27,79,114,.4),transparent 60%),linear-gradient(180deg,var(--hawaf-surface-from),var(--hawaf-surface-to));border-radius:20px;padding:30px 26px 26px;border:none;box-shadow:0 10px 0 var(--hawaf-edge),0 34px 70px rgba(11,37,64,.35)}
body .hadara-diaries-carousel .lux-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:6px;flex-wrap:wrap}
body .hadara-diaries-carousel .kicker{display:inline-flex;align-items:center;gap:8px;font-family:"Noto Kufi Arabic",sans-serif;font-size:12px;font-weight:700;color:var(--acc-lt)}
body .hadara-diaries-carousel .kicker::before{content:"";width:24px;height:2px;background:var(--acc);border-radius:99px}
body .hadara-diaries-carousel .lux-head h2{font-family:"Noto Kufi Arabic",sans-serif;font-size:24px;color:#fff;margin-top:6px}
body .hadara-diaries-carousel .lux-head p{font-size:13px;color:#D7E6EF;margin-top:5px}
body .hadara-diaries-carousel .lux-head .more{display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;border:1px solid rgba(130,189,232,.5);border-radius:7px;color:#fff;background:linear-gradient(180deg,#1B456B,#12324E);box-shadow:0 3px 0 rgba(6,20,36,.6),0 6px 0 rgba(130,189,232,.4);font:700 15px "Hadera Kufi","Noto Kufi Arabic",Tahoma,sans-serif;text-decoration:none;white-space:nowrap;margin-bottom:6px;transition:transform .25s ease,box-shadow .25s ease}
body .hadara-diaries-carousel .lux-head .more:hover{background:linear-gradient(180deg,#23537F,#173E63);color:#fff;transform:translateY(-2px)}
body .hadara-diaries-carousel .lux a:focus-visible,
body .hadara-diaries-carousel .lux button:focus-visible{outline:2px solid var(--acc-lt);outline-offset:3px;border-radius:8px}
body .hadara-diaries-carousel .stage{position:relative}
body .hadara-diaries-carousel .track{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;overflow-y:clip;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:54px max(12px,calc(50% - 138px)) 10px;scrollbar-width:none;overflow-anchor:none;cursor:grab}
body .hadara-diaries-carousel .track::-webkit-scrollbar{display:none}
body .hadara-diaries-carousel .track.drag{cursor:grabbing;scroll-snap-type:none;user-select:none;-webkit-user-select:none}
body .hadara-diaries-carousel .card{flex:0 0 275px;scroll-snap-align:center;position:relative;z-index:1;background:none;border:0;box-shadow:none}
body .hadara-diaries-carousel .card:hover,
body .hadara-diaries-carousel .card:focus-within{z-index:2}
body .hadara-diaries-carousel .card a{position:relative;display:flex;flex-direction:column;height:100%;background:linear-gradient(180deg,#173E63,#0E2C47);border:1px solid rgba(130,189,232,.5);border-bottom:none;border-radius:7px;text-decoration:none;transform-origin:50% 100%;transition:transform .18s ease-out,border-color .3s}
body .hadara-diaries-carousel .card a::after{content:"";position:absolute;top:0;right:0;left:0;height:3px;border-radius:7px 7px 0 0;background:linear-gradient(90deg,#1B4F72,var(--acc-lt));transform:scaleX(0);transform-origin:right;transition:transform .9s cubic-bezier(.16,1,.3,1);z-index:2}
body .hadara-diaries-carousel .card a:hover::after,
body .hadara-diaries-carousel .card a:focus-visible::after{transform:scaleX(1)}
body .hadara-diaries-carousel .card .ph{position:relative;overflow:hidden;border-radius:7px 7px 0 0}
body .hadara-diaries-carousel .card img{height:168px;width:100%;object-fit:cover;display:block;filter:brightness(.94);transition:filter .5s ease}
body .hadara-diaries-carousel .card a:hover img,
body .hadara-diaries-carousel .card a:focus-visible img{filter:brightness(1.06)}
body .hadara-diaries-carousel .card .ph::before{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-18deg);transition:left .8s ease;z-index:1;pointer-events:none}
body .hadara-diaries-carousel .card a:hover .ph::before,
body .hadara-diaries-carousel .card a:focus-visible .ph::before{left:135%}
body .hadara-diaries-carousel .card .bd{padding:14px 15px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
body .hadara-diaries-carousel .card .cat{align-self:flex-start;font-family:"Noto Kufi Arabic",sans-serif;font-size:11px;font-weight:700;color:#9DB4C8;background:transparent;padding:3px 12px;border-radius:999px;transition:.3s}
body .hadara-diaries-carousel .card a:hover .cat,
body .hadara-diaries-carousel .card a:focus-visible .cat{background:var(--acc);color:var(--acc-ink)}
body .hadara-diaries-carousel .card h4{font-family:"Noto Kufi Arabic",sans-serif;font-size:14.5px;font-weight:600;line-height:1.8;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:52px;background:linear-gradient(var(--acc-lt),var(--acc-lt)) right bottom/no-repeat;background-size:0% 2px;transition:background-size .5s ease}
body .hadara-diaries-carousel .card a:hover h4,
body .hadara-diaries-carousel .card a:focus-visible h4{background-size:100% 2px}
body .hadara-diaries-carousel .card .ft{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:8px}
body .hadara-diaries-carousel .card time{font-size:11px;color:#9DB4C8}
body .hadara-diaries-carousel .card .go{display:inline-flex;align-items:center;gap:6px;font-family:"Noto Kufi Arabic",sans-serif;font-size:11.5px;font-weight:700;color:#fff;border:1px solid rgba(130,189,232,.45);padding:4px 12px;border-radius:8px;transition:.3s}
body .hadara-diaries-carousel .card a:hover .go,
body .hadara-diaries-carousel .card a:focus-visible .go{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
body .hadara-diaries-carousel .stage:has(.card a:hover) .card.is-center a:not(:hover),
body .hadara-diaries-carousel .stage:has(.card a:focus-visible) .card.is-center a:not(:focus-visible){background:linear-gradient(180deg,#173E63,#0E2C47)}
body .hadara-diaries-carousel .stage:has(.card a:hover) .card.is-center a:not(:hover)::after,
body .hadara-diaries-carousel .stage:has(.card a:focus-visible) .card.is-center a:not(:focus-visible)::after{transform:scaleX(0)}
body .hadara-diaries-carousel .stage:has(.card a:hover) .card.is-center a:not(:hover) .cat,
body .hadara-diaries-carousel .stage:has(.card a:focus-visible) .card.is-center a:not(:focus-visible) .cat{background:transparent;color:#9DB4C8}
body .hadara-diaries-carousel .stage:has(.card a:hover) .card.is-center a:not(:hover) .go,
body .hadara-diaries-carousel .stage:has(.card a:focus-visible) .card.is-center a:not(:focus-visible) .go{color:#fff}
body .hadara-diaries-carousel .ctrl{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:2px}
body .hadara-diaries-carousel .arrow{width:40px;height:40px;border-radius:50%;border:1.5px solid rgba(130,189,232,.55);background:transparent;color:var(--acc-lt);font-size:18px;cursor:pointer;transition:.25s;line-height:1;padding:0}
body .hadara-diaries-carousel .arrow:hover{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
body .hadara-diaries-carousel .dots{display:flex;gap:8px;align-items:center}
body .hadara-diaries-carousel .dots button{width:10px;height:10px;border-radius:50%;border:1px solid rgba(130,189,232,.6);background:transparent;cursor:pointer;padding:0;transition:.25s}
body .hadara-diaries-carousel .dots button.on{background:var(--acc);border-color:var(--acc);transform:scale(1.25)}
body .hadara-diaries-carousel .hint{text-align:center;font-size:11.5px;color:#8FA6BB;margin-top:10px}
@media(max-width:560px){
body .hadara-diaries-carousel .lux{padding:22px 14px}
body .hadara-diaries-carousel .card{flex-basis:72vw}
body .hadara-diaries-carousel .card img{height:180px}}
@media(prefers-reduced-motion:reduce){
body .hadara-diaries-carousel .track{scroll-snap-type:x proximity}
body .hadara-diaries-carousel .card a,
body .hadara-diaries-carousel .card img,
body .hadara-diaries-carousel .more,
body .hadara-diaries-carousel .arrow,
body .hadara-diaries-carousel .card .go{transition:none}}

/* Keep the preview's blue palette while repairing its article-card typography and base. */
body .hadara-diaries-carousel .lux .track > p,
body .hadara-diaries-carousel .lux .card > p,
body .hadara-diaries-carousel .lux .card > a > p { display: none; }

body .hadara-diaries-carousel .lux .card > a {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #173e63, #0e2c47);
  border: 1px solid rgba(130,189,232,.52);
  border-bottom-color: #80bbd3;
  border-radius: 7px;
  box-shadow: 0 3px 0 #345d7b, 0 6px 0 #679bad;
  font-family: "Hadera Kufi", "Noto Kufi Arabic", Tahoma, sans-serif;
  color: #fff;
  text-align: right;
  text-decoration: none;
  transform-origin: 50% 100%;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform .85s cubic-bezier(.22,.61,.36,1), opacity .8s ease, border-color .55s ease;
}
body .hadara-diaries-carousel .lux .card > a::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  transform: none !important;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(162,216,244,.16), transparent 48%, rgba(97,168,205,.06));
  box-shadow: inset 0 0 0 1px rgba(183,226,248,.38), inset 0 0 24px rgba(131,197,227,.07);
  opacity: 0;
  transition: opacity .65s ease;
}
body .hadara-diaries-carousel .lux .card .ph {
  min-height: 168px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}
body .hadara-diaries-carousel .lux .card .ph img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  will-change: transform;
  transition: transform .85s cubic-bezier(.22,.61,.36,1);
}
body .hadara-diaries-carousel .lux .card .ph::before { display: none; }
body .hadara-diaries-carousel .lux .track {
  gap: 22px;
  padding-top: 75px;
  padding-bottom: 16px;
}
@media (min-width: 1280px) {
  body .hadara-diaries-carousel .lux .card {
    flex: 0 0 var(--hadara-card-width, 195px);
  }
  body .hadara-diaries-carousel .lux .card.is-center { flex-basis: var(--hadara-card-width, 195px); }
}
body .hadara-diaries-carousel .lux .card.is-center { z-index: 3; }
body .hadara-diaries-carousel .lux .card.is-center > a {
  transform: translate3d(0,-22px,0) scale(1.15) !important;
  border-color: #a7d7ed;
  box-shadow: 0 3px 0 #345d7b, 0 6px 0 #679bad, 0 18px 30px rgba(2, 20, 40, .28);
}
body .hadara-diaries-carousel .lux .card:not(.is-center) > a { transform: translate3d(0,0,0) !important; }
body .hadara-diaries-carousel .lux .card:not(.is-center):hover,
body .hadara-diaries-carousel .lux .card:not(.is-center):focus-within { z-index: 4; }
body .hadara-diaries-carousel .lux .card:not(.is-center):hover > a,
body .hadara-diaries-carousel .lux .card:not(.is-center):focus-within > a {
  transform: translate3d(0,-10px,0) !important;
  border-color: #b4dcec;
  box-shadow: 0 3px 0 #345d7b, 0 6px 0 #679bad, 0 14px 26px rgba(2, 20, 40, .34);
}
body .hadara-diaries-carousel .lux .card.is-center:hover > a,
body .hadara-diaries-carousel .lux .card.is-center:focus-within > a {
  transform: translate3d(0,-26px,0) scale(1.15) !important;
  box-shadow: 0 3px 0 #345d7b, 0 6px 0 #679bad, 0 22px 35px rgba(2, 20, 40, .35);
}
body .hadara-diaries-carousel .lux .card:hover .ph img,
body .hadara-diaries-carousel .lux .card:focus-within .ph img {
  transform: scale(1.055);
  filter: brightness(1.02);
}
body .hadara-diaries-carousel .lux .card:hover > a::after,
body .hadara-diaries-carousel .lux .card:focus-within > a::after { opacity: 1; }
body .hadara-diaries-carousel .lux .card:not(.is-center):hover .cat,
body .hadara-diaries-carousel .lux .card:not(.is-center):focus-within .cat {
  color: #c5e5f6 !important;
  background: transparent !important;
}
body .hadara-diaries-carousel .lux .card:hover h4,
body .hadara-diaries-carousel .lux .card:focus-within h4 { color: #d9f0ff; }
body .hadara-diaries-carousel .lux .card:hover .go,
body .hadara-diaries-carousel .lux .card:focus-within .go {
  color: #fff;
  background: #224c69;
  border-color: #a7d7ed;
  box-shadow: 0 2px 8px rgba(2,20,40,.18);
  transform: translateX(-2px);
}
body .hadara-diaries-carousel .lux .card.is-center .cat {
  background: #8dc3e4 !important;
  color: #0d2c47 !important;
  padding: 3px 12px;
  border-radius: 999px;
}
body .hadara-diaries-carousel .lux .card .bd {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 16px 19px;
  gap: 8px;
}
body .hadara-diaries-carousel .lux .card .cat {
  align-self: flex-start;
  font-family: inherit;
  color: #9db4c8;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.6;
}
body .hadara-diaries-carousel .lux .card h4 {
  display: block;
  overflow: visible;
  min-height: 0;
  font-family: inherit;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
  transition: color .6s ease;
  background: none !important;
}
body .hadara-diaries-carousel .lux .card .ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 8px;
  border-top: 1px solid rgba(130,189,232,.25);
  padding-top: 11px;
}
body .hadara-diaries-carousel .lux .card time,
body .hadara-diaries-carousel .lux .card .go {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}
body .hadara-diaries-carousel .lux .card time { color: #9db4c8; }
body .hadara-diaries-carousel .lux .card .go {
  display: inline-flex;
  align-items: center;
  color: #fff;
  border: 1px solid rgba(130,189,232,.45);
  padding: 4px 12px;
  transition: background .6s ease, border-color .6s ease, box-shadow .6s ease, transform .6s ease;
}
body .hadara-diaries-carousel .lux .card .go { border-radius: 6px; }
body .hadara-diaries-carousel .lux .card > a:focus-visible { outline: 3px solid #bcd9f5; outline-offset: 7px; }

@media (max-width: 560px) {
  body .hadara-diaries-carousel .lux .track { gap: 12px; padding-top: 70px; }
  body .hadara-diaries-carousel .lux .card.is-center > a { transform: translateY(-12px) scale(1.08) !important; }
  body .hadara-diaries-carousel .lux .card h4 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  body .hadara-diaries-carousel .lux .card > a,
  body .hadara-diaries-carousel .lux .card > a::after,
  body .hadara-diaries-carousel .lux .card .ph img,
  body .hadara-diaries-carousel .lux .card .go,
  body .hadara-diaries-carousel .lux .card h4 { transition: none; }
  body .hadara-diaries-carousel .lux .card:hover .ph img,
  body .hadara-diaries-carousel .lux .card:focus-within .ph img,
  body .hadara-diaries-carousel .lux .card:hover .go,
  body .hadara-diaries-carousel .lux .card:focus-within .go { transform: none; }
}



/* Center the outer frame within full-width Elementor containers. */
body.hadara-academic .hadara-department-canvas .elementor-widget-hadara_academic_student_diaries {
  max-width: 1480px !important;
  margin-inline: auto !important;
  align-self: center;
}
body .hadara-diaries-carousel {
  width: 100%;
  margin-inline: auto;
  background: transparent;
  border-radius: 20px;
}
