/* Latest News & Announcements — Illuminated Manuscript Style */

.hp-news-wrap {
  position: relative;
  background: #F4EEDD;
  border-radius: 4px;
  overflow: hidden;
  border: 0.5px solid rgba(11,79,74,0.16);
  box-shadow: inset 0 0 0 6px #FBF7EE;
  font-family: 'Jost', sans-serif;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.hp-news-header {
  position: relative;
  background: #062F2C;
  padding: 52px 44px 46px;
  overflow: hidden;
}
.hp-news-girih-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@keyframes hpNewsGirihGlow {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.4; }
}
.hp-news-girih-line { animation: hpNewsGirihGlow 6s ease-in-out infinite; }

.hp-news-rail-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  opacity: 0.9;
}

.hp-news-header-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hp-news-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hp-news-eyebrow-row span {
  font-size: 11.5px;
  letter-spacing: 2.2px;
  font-weight: 500;
  color: #E4C371;
  text-transform: uppercase;
}

@keyframes hpNewsCrescentPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}
.hp-news-crescent-dot {
  animation: hpNewsCrescentPulse 3s ease-in-out infinite;
  transform-origin: center;
}

.hp-news-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 4px;
  line-height: 1.06;
  letter-spacing: 0.2px;
}
.hp-news-drop-cap {
  font-family: 'Amiri', serif;
  font-size: 1.15em;
  color: #E4C371;
}

.hp-news-urdu {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: #E4C371;
  margin: 10px 0 24px;
  opacity: 0.8;
  font-style: italic;
}

.hp-news-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 0 28px;
  font-weight: 400;
}

.hp-news-cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FBF7EE;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
}
.hp-news-cta-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #E4C371;
  transition: width 0.4s ease;
}
.hp-news-cta-link:hover::after { width: 100%; }
.hp-news-cta-glyph {
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  display: inline-block;
}
.hp-news-cta-link:hover .hp-news-cta-glyph {
  transform: translateX(5px) rotate(8deg);
}

/* ── Content grid ──────────────────────────────────────────────────────── */
.hp-news-content {
  padding: 46px 44px 50px;
}
.hp-news-rail {
  display: none;
}
@media (max-width: 680px) {
  .hp-news-headline { font-size: 32px !important; }
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.hp-news-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hp-news-ms {
  position: relative;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(.16,1,.3,1), box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: hpNewsFadeIn 0.8s cubic-bezier(.2,.7,.2,1) both;
}
.hp-news-ms:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,79,74,0.12); }
.hp-news-ms:hover .hp-news-muqarnas { opacity: 1; transform: translateY(0); }
.hp-news-ms:hover .hp-news-ms-inner { border-color: #17693b; }
.hp-news-ms:hover .hp-news-title-word { color: #A6472F; }
.hp-news-ms:hover .hp-news-tile-reveal { opacity: 0.55; transform: scale(1); }
.hp-news-ms:hover .hp-news-seal { transform: rotate(-12deg) scale(1.08); }

@keyframes hpNewsFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hp-news-ms-inner {
  position: relative;
  background: #FBF7EE;
  border: 1.5px solid rgba(184,134,11,0.25);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

.hp-news-muqarnas {
  position: absolute;
  top: -1px;
  left: 20px;
  width: 70px;
  height: 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}

.hp-news-ms-visual {
  position: relative;
  height: 100px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0B4F4A 0%, #0D5A54 50%, #0B4F4A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-news-tile-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.15);
  transition: all 0.7s cubic-bezier(.2,.8,.2,1);
}

.hp-news-seal {
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
}

.hp-news-ms-content {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hp-news-ms-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hp-news-ms-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: #17693b;
  letter-spacing: 0.5px;
}
.hp-news-ms-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #17693b;
  opacity: 0.6;
}
.hp-news-ms-badge {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #17693b, #A6472F);
  padding: 3px 10px;
  border-radius: 999px;
}

.hp-news-ms-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A2B27;
  margin: 0 0 8px;
  line-height: 1.25;
}
.hp-news-title-word {
  transition: color 0.5s ease;
}

.hp-news-ms-desc {
  font-size: 13px;
  color: #5B6863;
  line-height: 1.7;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hp-news-ms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #17693b;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
  margin-top: auto;
}
.hp-news-ms-link:hover { color: #A6472F; gap: 10px; }

@media (max-width: 680px) {
  .hp-news-cards { grid-template-columns: 1fr; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
.hp-news-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: hpNewsFadeIn 0.8s cubic-bezier(.2,.7,.2,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .hp-news-girih-line,
  .hp-news-crescent-dot,
  .hp-news-ms,
  .hp-news-fade,
  .hp-news-muqarnas,
  .hp-news-tile-reveal,
  .hp-news-seal,
  .hp-news-cta-glyph {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Mobile fixes ── */
@media (max-width: 680px) {
  .hp-news-header { padding: 32px 18px 28px; }
  .hp-news-content { padding: 28px 18px 32px; }
}
