/* =====================
   DESIGN SYSTEM TOKENS
===================== */
:root {
  --news-primary: #21409A;
  --news-accent: #ED952B;
  --news-bg-light: #f8fafc;
  --news-text: #1e293b;
  --news-text-muted: #64748b;
  --news-glass-bg: rgba(255, 255, 255, 0.7);
  --news-glass-border: rgba(255, 255, 255, 0.3);
  --news-shadow: 0 20px 40px rgba(33, 64, 154, 0.08);
  --news-shadow-hover: 0 30px 60px rgba(33, 64, 154, 0.15);
}

/* =====================
   SECTION BASE
===================== */
.ajs-news-section {
  padding: 100px 0;
  background: radial-gradient(circle at 0% 0%, rgba(33, 64, 154, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(237, 149, 43, 0.03) 0%, transparent 50%),
              #ffffff;
  position: relative;
  overflow: hidden;
}

.ajs-news-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(33, 64, 154, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* =====================
   HEADER
===================== */
.ajs-news-section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.ajs-news-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--news-primary);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.ajs-news-section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--news-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.ajs-news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--news-primary);
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(33, 64, 154, 0.2);
}

.ajs-news-view-all:hover {
  background: var(--news-accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(237, 149, 43, 0.3);
}

.ajs-news-view-all i {
  transition: transform 0.3s ease;
}

.ajs-news-view-all:hover i {
  transform: translateX(5px);
}

/* =====================
   GRID & CARDS
===================== */
.ajs-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) { .ajs-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ajs-news-grid { grid-template-columns: 1fr; } }

.ajs-news-card {
  background: var(--news-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--news-glass-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--news-shadow);
}

.ajs-news-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--news-shadow-hover);
  border-color: rgba(33, 64, 154, 0.2);
}

/* Card Wrap */
.ajs-news-card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.ajs-news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ajs-news-card:hover .ajs-news-card-img {
  transform: scale(1.1);
}

.ajs-news-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* Badge */
.ajs-news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  backdrop-filter: blur(5px);
}

.ajs-news-badge-blue   { background: rgba(33, 64, 154, 0.85); }
.ajs-news-badge-orange { background: rgba(237, 149, 43, 0.85); }

/* Body */
.ajs-news-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ajs-news-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--news-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ajs-news-card:hover .ajs-news-card-title {
  color: var(--news-accent);
}

.ajs-news-card-desc {
  font-size: 15px;
  color: var(--news-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta */
.ajs-news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--news-text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ajs-news-meta-dot {
  width: 4px;
  height: 4px;
  background: var(--news-accent);
  border-radius: 50%;
}

/* Button */
.ajs-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--news-primary);
  transition: all 0.3s ease;
}

.ajs-news-btn i {
  transition: transform 0.3s ease;
}

.ajs-news-card:hover .ajs-news-btn {
  color: var(--news-accent);
}

.ajs-news-card:hover .ajs-news-btn i {
  transform: translateX(4px);
}

/* =====================
   FOOTER
===================== */
.ajs-news-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.ajs-news-footer-text {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--news-text-muted);
  margin-bottom: 20px;
}

.ajs-news-social-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.ajs-news-social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--news-glass-border);
  border-radius: 50%;
  color: var(--news-primary);
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
}

.ajs-news-social-btn:hover {
  background: var(--news-primary);
  color: #fff;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 20px rgba(33, 64, 154, 0.2);
}

/* =====================
   ANIMATIONS
===================== */
@keyframes newsFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.ajs-news-section-header, .ajs-news-card, .ajs-news-footer {
  animation: newsFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ajs-news-grid .ajs-news-card:nth-child(1) { animation-delay: 0.1s; }
.ajs-news-grid .ajs-news-card:nth-child(2) { animation-delay: 0.2s; }
.ajs-news-grid .ajs-news-card:nth-child(3) { animation-delay: 0.3s; }