/* ==========================================
   CFU SPORTS NEWS PORTAL
   ========================================== */

.cfu-news-page {
  --navy: #102d46;
  --navy-light: #1a4c65;
  --teal: #17b6a4;
  --text: #25394c;
  --muted: #718296;
  --border: #e3ebf1;
  direction: rtl;
  text-align: right;
  background: #f7f9fc;
  color: var(--text);
  font-family: IRANYekan, sans-serif;
}

.cfu-news-page * {
  box-sizing: border-box;
}

.cfu-news-page a {
  text-decoration: none;
}

/* HERO */
.cfu-news-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 85px 0 110px;
  min-height: 350px;
  background: linear-gradient(125deg, #091e32, #153c56 65%, #116174);
  color: white;
}

.cfu-news-hero::before,
.cfu-news-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cfu-news-hero::before {
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  top: -270px;
  left: -130px;
  animation: cfuNewsOrbit 28s linear infinite;
}

.cfu-news-hero::after {
  width: 330px;
  height: 330px;
  border: 1px dashed rgba(87, 221, 204, 0.23);
  right: -130px;
  bottom: -240px;
  animation: cfuNewsOrbit 38s linear infinite reverse;
}

@keyframes cfuNewsOrbit {
  to {
    transform: rotate(360deg);
  }
}

.cfu-news-hero .container {
  position: relative;
  z-index: 2;
}

.cfu-news-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 33px;
  font-size: 13px;
  color: #bcd2e1;
}

.cfu-news-breadcrumb a {
  color: #bcd2e1;
}

.cfu-news-breadcrumb a:hover {
  color: white;
}

.cfu-news-breadcrumb .current {
  color: #6be6d5;
}

.cfu-news-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(100, 231, 211, 0.24);
  border-radius: 40px;
  padding: 9px 17px;
  font-size: 12px;
  color: #a0f3e7;
  margin-bottom: 22px;
}

.cfu-news-live {
  width: 8px;
  height: 8px;
  background: #50e0ca;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(80, 224, 202, 0.13);
  animation: cfuNewsPulse 2.8s infinite;
}

@keyframes cfuNewsPulse {
  50% {
    box-shadow: 0 0 0 11px rgba(80, 224, 202, 0);
  }
}

.cfu-news-hero h1 {
  font-size: clamp(28px, 4vw, 47px);
  line-height: 1.65;
  font-weight: 800;
  color: white !important;
  margin: 0 0 17px;
}

.cfu-news-hero h1 span {
  color: #72e6d6;
}

.cfu-news-hero p {
  max-width: 730px;
  font-size: 15px;
  line-height: 2.3;
  color: #d0e0e9;
  margin: 0;
}

.cfu-news-filter-title {
  margin-top: 20px;
  font-size: 13px;
  color: #a9e8de;
}

/* INTRO STRIP */
.cfu-news-intro-wrap {
  position: relative;
  z-index: 5;
  margin-top: -46px;
}

.cfu-news-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: white;
  border: 1px solid #eaf0f3;
  border-radius: 19px;
  box-shadow: 0 18px 50px rgba(16, 45, 70, 0.08);
  overflow: hidden;
}

.cfu-news-intro-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid #edf1f5;
}

.cfu-news-intro-item:last-child {
  border-left: 0;
}

.cfu-news-intro-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #eaf8f5;
  color: #0b8e82;
  border-radius: 13px;
  font-size: 19px;
}

.cfu-news-intro-item h3 {
  font-size: 14px;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 6px;
}

.cfu-news-intro-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.9;
}

/* MAIN */
.cfu-news-main {
  padding: 80px 0 100px;
}

.cfu-news-heading {
  margin-bottom: 30px;
}

.cfu-news-heading .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0b9788;
  margin-bottom: 11px;
}

.cfu-news-heading h2 {
  font-size: 27px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 11px;
}

.cfu-news-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

/* NEWS CARDS - wrapping existing blog_item.html */
.cfu-news-grid {
  display: flex;
  flex-wrap: wrap;
}

.cfu-news-grid > * {
  min-width: 0;
}

.cfu-news-grid .blog-item,
.cfu-news-grid .blog-post,
.cfu-news-grid article,
.cfu-news-grid .single-blog,
.cfu-news-grid .card {
  position: relative;
  isolation: isolate;
  border-radius: 17px !important;
  background: #fff;
  border: 1px solid #e4ebf0 !important;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}

.cfu-news-grid .blog-item:hover,
.cfu-news-grid .blog-post:hover,
.cfu-news-grid article:hover,
.cfu-news-grid .single-blog:hover,
.cfu-news-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(14, 46, 70, 0.1);
}

.cfu-news-grid article::before,
.cfu-news-grid .blog-item::before,
.cfu-news-grid .blog-post::before,
.cfu-news-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--news-angle, 0deg),
    transparent 0 63%,
    #22b8a5 76%,
    #a5f3e6 82%,
    transparent 94%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s;
}

@property --news-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.cfu-news-grid article:hover::before,
.cfu-news-grid .blog-item:hover::before,
.cfu-news-grid .blog-post:hover::before,
.cfu-news-grid .card:hover::before {
  opacity: 1;
  animation: cfuNewsBorder 4s linear infinite;
}

@keyframes cfuNewsBorder {
  to {
    --news-angle: 360deg;
  }
}

.cfu-news-grid img {
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cfu-news-grid article:hover img,
.cfu-news-grid .blog-item:hover img,
.cfu-news-grid .blog-post:hover img {
  transform: scale(1.035);
}

.cfu-news-grid h2,
.cfu-news-grid h3,
.cfu-news-grid h4 {
  font-weight: 800;
  line-height: 1.9;
}

.cfu-news-grid h2 a,
.cfu-news-grid h3 a,
.cfu-news-grid h4 a {
  color: var(--navy);
}

.cfu-news-grid h2 a:hover,
.cfu-news-grid h3 a:hover,
.cfu-news-grid h4 a:hover {
  color: #0b9788;
}

.cfu-news-grid p {
  color: #708194;
  font-size: 13px;
  line-height: 2.1;
}

/* SIDEBAR */
.cfu-news-sidebar {
  position: relative;
}

.cfu-news-sidebar-header {
  padding: 24px 26px;
  background: linear-gradient(125deg, #102d46, #1a5064);
  color: white;
  border-radius: 16px 16px 0 0;
}

.cfu-news-sidebar-header h3 {
  color: white;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 7px;
}

.cfu-news-sidebar-header p {
  color: #c7dde6;
  font-size: 12px;
  line-height: 2;
  margin: 0;
}

.cfu-news-sidebar-content {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 22px;
}

.cfu-news-sidebar-content h3,
.cfu-news-sidebar-content h4 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.cfu-news-sidebar-content a {
  color: #23546a;
  transition: color 0.25s;
}

.cfu-news-sidebar-content a:hover {
  color: #0b9a8b;
}

.cfu-news-quicklinks {
  margin-top: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.cfu-news-quicklinks h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 17px;
}

.cfu-news-quicklinks a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f4;
  font-size: 13px;
  font-weight: 700;
  color: #36566b;
  transition:
    color 0.3s,
    padding-right 0.3s;
}

.cfu-news-quicklinks a:last-child {
  border-bottom: none;
}

.cfu-news-quicklinks a:hover {
  color: #078c81;
  padding-right: 6px;
}

/* PAGINATION */
.cfu-news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.cfu-news-pagination a,
.cfu-news-pagination .current {
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.cfu-news-pagination a {
  background: white;
  color: var(--navy);
  border: 1px solid var(--border);
  transition:
    background 0.3s,
    color 0.3s;
}

.cfu-news-pagination a:hover {
  background: var(--navy);
  color: white;
}

.cfu-news-pagination .current {
  color: #63798c;
}

/* EMPTY */
.cfu-news-empty {
  width: 100%;
  padding: 65px 25px;
  border: 1px dashed #cbdce5;
  border-radius: 17px;
  background: #fff;
  text-align: center;
}

.cfu-news-empty i {
  font-size: 40px;
  color: #3a9c97;
  margin-bottom: 18px;
}

.cfu-news-empty h3 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
}

.cfu-news-empty p {
  color: var(--muted);
  font-size: 13px;
}

/* REVEAL */
.cfu-news-page .cfu-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.cfu-news-page .cfu-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .cfu-news-intro {
    grid-template-columns: 1fr;
  }

  .cfu-news-intro-item {
    border-left: 0;
    border-bottom: 1px solid #edf1f5;
  }

  .cfu-news-intro-item:last-child {
    border-bottom: 0;
  }

  .cfu-news-sidebar {
    margin-top: 35px;
  }
}

@media (max-width: 767px) {
  .cfu-news-hero {
    padding: 60px 0 90px;
  }

  .cfu-news-hero h1 {
    font-size: 29px;
  }

  .cfu-news-main {
    padding: 60px 0;
  }

  .cfu-news-heading h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfu-news-page *,
  .cfu-news-page *::before,
  .cfu-news-page *::after {
    animation: none !important;
    transition: none !important;
  }

  .cfu-news-page .cfu-reveal {
    opacity: 1;
    transform: none;
  }
}
