/* ── Variables ──────────────────────────────────── */
:root {
  --ink:       #0d1117;
  --paper:     #f7f6f2;
  --accent:    #178ECE;
  --accent-dk: #4361C2;
  --muted:     #6b6b6b;
  --border:    #e2dfd8;
  --card-bg:   #ffffff;
  --hero-bg:   #0d1117;
  --radius:    4px;
      --amber: #178ECE;
    --amber-pale: #eff9ff;
    --amber-dark: #178ECE;
}

/* ── Google Fonts ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset / Base ───────────────────────────────── */
.articles-page * { box-sizing: border-box; }

/* ── Page Hero ──────────────────────────────────── */
.articles-hero {
  background: #0F1C2E;
  color: #fff;
  padding: 2.5rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.articles-hero::after {
  content: 'Resources';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  color: rgba(255,255,255,.04);
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.articles-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .6rem;
}
.articles-hero .breadcrumb {
  
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.articles-hero .breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.articles-hero .breadcrumb a:hover { color: #fff; }

/* ── Layout wrapper ─────────────────────────────── */
.articles-page {
  background: var(--paper);
  
}
.articles-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .articles-container { grid-template-columns: 1fr; }
}

/* ── Section label ──────────────────────────────── */
.section-label {
  
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
}

/* ── Search active notice ───────────────────────── */
.search-notice {
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.search-notice strong { color: var(--ink); }
.search-notice a {
  font-size: .8rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: .15rem .5rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.search-notice a:hover { background: var(--accent); color: #fff; }

/* ── Article Cards ──────────────────────────────── */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  /* grid-template-columns: 220px 1fr;
  transition: box-shadow .25s, transform .2s; */
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .article-card { grid-template-columns: 1fr; }
}

/* Thumbnail */
.card-thumb {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  background: var(--hero-bg);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.article-card:hover .card-thumb img { transform: scale(1.06); }

.card-thumb .no-image {
  width: 100%; height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #0d1117 0%, #1e2940 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(200,57,43,.25);
  letter-spacing: -1px;
  padding: 1rem;
  text-align: center;
  line-height: 1;
}

/* Category badge */
.card-category {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 2px;
  line-height: 1.4;
  z-index: 1;
}

/* Card body */
.card-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-meta {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  margin-bottom: .65rem;
}
.card-meta svg { width: 13px; height: 13px; flex-shrink: 0; vertical-align: middle; }

.card-title {
  
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .6rem;
  transition: color .2s;
  font-weight: 600;
}
.article-card:hover .card-title { color: var(--accent); }

.card-excerpt {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.read-more {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
  text-decoration: none;
}
.read-more:hover { border-color: var(--accent); }

/* ── No results ─────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.no-results strong {
  display: block;
  
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.no-results a { color: var(--accent); }

/* ── Pagination ─────────────────────────────────── */
.articles-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.articles-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--card-bg);
  transition: all .2s;
}
.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Sidebar ─────────────────────────────────────── */
.articles-sidebar { position: sticky; top: 80px; }

.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}

/* Search widget */
.search-form {
  display: flex;
  gap: .5rem;
  position: relative;
}
.search-form input[type="text"] {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  
  font-size: .9rem;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s;
}
.search-form input[type="text"]:focus { border-color: var(--accent); }
.search-form button {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  padding: 0px 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
    height: 33px;
    position: absolute;
    right: 0px;
    top: 7px;
}
.search-form button:hover { background: var(--accent-dk); }

/* Recent articles widget */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-item {
  display: flex;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-thumb {
  width: 64px; height: 52px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--hero-bg);
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-thumb .no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d1117, #1e2940);
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: .9rem;
  color: rgba(200,57,43,.5);
  font-weight: 900;
}
.recent-info {}
.recent-title {
  font-size: .83rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .3rem;
  transition: color .2s;
}
.recent-item:hover .recent-title { color: var(--accent); }
.recent-date { font-size: .74rem; color: var(--muted); }

#fulltitle{
    display: none;
}

.card-tag {
        font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
    display: inline-block;
    background: #178ECE;
    padding: 1px 15px;
    border-radius: 31px;
    width: fit-content;
}

.card-meta span {
    margin-left: 8px;
}

.card-title span {
    color: #178ECE;
}

.wrapall{
  background: var(--paper);
}

.resource-tabs {
  max-width: 1000px;
  margin: 30px auto 0;
  background: #fff;
  border-radius: 60px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.resource-tab {
  padding: 0px 20px;
  border-radius: 40px;
  color: #000;
  text-decoration: none;
  font-size: 16px;
}

.resource-tab:hover,
.resource-tab.active {
  background: #0866c2;
  color: #fff;
}

.res_listview{
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recent-tag{
  font-size: 10px;
    color: #fff;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
    display: inline-block;
    background: #178ECE;
    padding: 1px 15px;
    border-radius: 31px;
    width: fit-content;
}