/* =======================================================
   CLOUDX FLIC UI - NEWS PAGE
   Shortcode: [flic_news]
   Card style bám theo card trang chủ .acx-card của website hiện tại
======================================================= */
.cflic-news-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #f3fbff 0%, #f8fcff 46%, #ffffff 100%);
  padding: 24px 0 64px;
  font-family: inherit;
}

.cflic-news-page *,
.cflic-news-page *::before,
.cflic-news-page *::after { box-sizing: border-box; }

.cflic-news-container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.cflic-news-hero {
  padding: 30px 28px;
  border: 1px solid #cfe6f5;
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(7,150,216,.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 60%, #eaf7ff 100%);
  box-shadow: 0 6px 22px rgba(7,150,216,.08);
  margin-bottom: 22px;
}

.cflic-news-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0678b5;
}

.cflic-news-hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.18;
  color: #172033;
  font-weight: 650;
  letter-spacing: -.02em;
}

.cflic-news-hero p {
  margin: 0;
  max-width: 720px;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

.cflic-news-categories {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.cflic-news-cat {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d5e3ee;
  color: #17324d !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(7,150,216,.05);
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}

.cflic-news-cat:hover,
.cflic-news-cat.is-active {
  background: #0796d8;
  border-color: #0796d8;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(7,150,216,.18);
  transform: translateY(-1px);
}

.cflic-news-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cflic-news-section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #172033;
  font-weight: 650;
}

.cflic-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cflic-news-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(7,150,216,.07);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  height: 100%;
  border: 1px solid #d5e3ee;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.cflic-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(7,150,216,.13);
  border-color: rgba(7,150,216,.45);
}

.cflic-news-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 16/9;
  border: 1px solid #e8f3fb;
  border-radius: 3px;
  text-decoration: none !important;
}

.cflic-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.cflic-news-thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9dddf7, #0796d8, #0678b5);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .08em;
}

.cflic-news-card-body {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cflic-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

.cflic-news-meta span:first-child {
  color: #0678b5;
  font-weight: 600;
}

.cflic-news-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: #172033;
  min-height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cflic-news-card h3 a {
  color: #172033 !important;
  text-decoration: none !important;
}

.cflic-news-card h3 a:hover { color: #0796d8 !important; }

.cflic-news-card p {
  margin: 0 0 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
  min-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cflic-news-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  margin-top: auto;
  border-radius: 4px;
  background: #fff;
  color: #0796d8 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #0796d8;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}

.cflic-news-readmore:hover {
  background: #0796d8;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(7,150,216,.2);
  transform: translateY(-1px);
}

.cflic-news-pagination {
  margin-top: 28px;
}
.cflic-news-pagination ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cflic-news-pagination a,
.cflic-news-pagination span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d5e3ee;
  border-radius: 4px;
  background: #fff;
  color: #17324d;
  text-decoration: none;
  font-weight: 500;
}
.cflic-news-pagination .current,
.cflic-news-pagination a:hover {
  background: #0796d8;
  border-color: #0796d8;
  color: #fff;
}

.cflic-news-empty {
  padding: 26px;
  border-radius: 4px;
  background: #fff;
  border: 1px dashed #a8d8f1;
  color: #667085;
}

@media (max-width: 1180px) {
  .cflic-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .cflic-news-page { padding-top: 14px; }
  .cflic-news-container { width: calc(100% - 28px); }
  .cflic-news-hero { padding: 24px 18px; }
  .cflic-news-hero h1 { font-size: 28px; }
  .cflic-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  .cflic-news-container { width: calc(100% - 20px); }
  .cflic-news-grid { grid-template-columns: 1fr; }
  .cflic-news-cat { width: 100%; justify-content: center; }
}

/* v1.6.6 - News responsive polish */
@media (max-width: 921px) {
  .cflic-news-page {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .cflic-news-container {
    width: calc(100% - 32px);
  }

  .cflic-news-section-head {
    align-items: flex-start;
    gap: 10px;
  }

  .cflic-news-section-head h2 {
    font-size: 22px;
  }

  .cflic-news-categories {
    gap: 8px;
    margin-bottom: 22px;
  }

  .cflic-news-cat {
    min-height: 36px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 13.5px;
  }
}

@media (max-width: 600px) {
  .cflic-news-container {
    width: calc(100% - 24px);
  }

  .cflic-news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cflic-news-card {
    padding: 12px;
  }

  .cflic-news-card h3 {
    min-height: 0;
    font-size: 15.5px;
  }

  .cflic-news-card p {
    min-height: 0;
  }
}

/* =======================================================
   FLIC NOTIFICATIONS PAGE
   Khoảng cách trên/dưới gọn, không tạo vùng trống lớn.
======================================================= */
.cflic-notifications-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 16px 0 18px;
  background: linear-gradient(180deg, #f3fbff 0%, #ffffff 100%);
  font-family: inherit;
}

.cflic-notifications-page *,
.cflic-notifications-page *::before,
.cflic-notifications-page *::after { box-sizing: border-box; }

.cflic-notifications-container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}


.cflic-notifications-heading {
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
}

.cflic-notifications-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #17324d;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.cflic-notifications-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.cflic-notifications-view .entry-header,
body.cflic-notifications-view .page-header,
body.cflic-notifications-view .ast-single-post-order,
body.cflic-notifications-view .entry-title {
  display: none !important;
}

body.cflic-notifications-view .site-content,
body.cflic-notifications-view .ast-container,
body.cflic-notifications-view #primary,
body.cflic-notifications-view .site-main,
body.cflic-notifications-view article.page,
body.cflic-notifications-view .entry-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.cflic-notifications-view #primary,
body.cflic-notifications-view .site-main,
body.cflic-notifications-view article.page {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1180px) {
  .cflic-notifications-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .cflic-notifications-page { padding: 12px 0 14px; }
  .cflic-notifications-heading { margin-bottom: 10px; }
  .cflic-notifications-title { font-size: 26px; }
  .cflic-notifications-container { width: calc(100% - 28px); }
  .cflic-notifications-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 520px) {
  .cflic-notifications-container { width: calc(100% - 20px); }
  .cflic-notifications-grid { grid-template-columns: 1fr; }
}

/* =======================================================
   AUTHOR PROFILE & IELTS SHARING GUIDE (.ast-author-box)
   ======================================================= */
.archive.author .ast-author-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 32px 36px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 32px !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

.archive.author .ast-author-avatar {
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.archive.author .ast-author-avatar img.avatar {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  margin: 0 !important;
  display: block !important;
}

.archive.author .ast-author-bio {
  flex-grow: 1 !important;
}

.archive.author .ast-author-bio .ast-archive-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}

.archive.author .ast-author-bio > p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  margin-bottom: 16px !important;
}

.acx-author-guide-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.acx-author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.acx-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  line-height: 1.4;
}

.acx-badge-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.acx-badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.acx-badge-neutral {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.acx-author-guide-head {
  margin-bottom: 24px;
}

.acx-author-guide-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.acx-author-guide-lead {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.acx-author-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.acx-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.acx-guide-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.acx-guide-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  padding: 8px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.acx-guide-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.4;
}

.acx-guide-body p {
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

.acx-author-guide-foot {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acx-author-quote {
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  color: #0369a1;
  line-height: 1.6;
}

.acx-author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.acx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.acx-btn-primary {
  background: #0284c7;
  color: #ffffff !important;
  border: 1px solid #0284c7;
}

.acx-btn-primary:hover {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff !important;
}

.acx-btn-secondary {
  background: #ffffff;
  color: #0284c7 !important;
  border: 1px solid #bae6fd;
}

.acx-btn-secondary:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

@media (max-width: 921px) {
  .archive.author .ast-author-box {
    flex-direction: column-reverse !important;
    align-items: center !important;
    text-align: center !important;
    padding: 24px 20px !important;
  }
  .acx-author-badges {
    justify-content: center;
  }
  .acx-author-guide-grid {
    grid-template-columns: 1fr;
  }
  .acx-guide-item {
    text-align: left;
  }
}

