body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: url('../images/bg.png') no-repeat center center fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #fff;
  overflow-x: hidden;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background-color: rgba(20, 20, 30, 0.85);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.left-side {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  width: 40px;
  height: 40px;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
}

.nav-buttons {
  display: flex;
  align-items: center; /* 🔹 Вирівнює всі кнопки по центру */
  gap: 20px;
}

.nav-button {
  display: inline-flex; /* 🔹 Робимо як у back-button */
  align-items: center;
  justify-content: center;
  height: 30px; /* 🔹 Така ж висота як у back-button */
  line-height: 1; /* 🔹 Убираємо "зсув" від шрифта */
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-button:hover {
  background: linear-gradient(90deg, #ff1a1a, #ff4d4d, #cc0000, #ff1a1a);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: redPulse 2.5s linear infinite;
}

.nav-button-pro {
  background: linear-gradient(90deg, #ff1a1a, #ff4d4d, #cc0000, #ff1a1a);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: redPulse 2.5s linear infinite;
}

@keyframes redPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.language-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

#lang-selector-top {
  background-color: rgba(30,30,40,0.9);
  border: 1px solid #ff1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

#lang-selector-top option {
  background-color: #20202a;
  color: #fff;
}

#lang-selector-top:focus {
  outline: none;
}

.center-copy {
  margin-right: 6.77vw;
  display: flex;
  align-items: center;      /* вертикальне вирівнювання */
  justify-content: center;  /* горизонтально по центру */  
  pointer-events: none;     
}

.center-copy .back-button {
  pointer-events: auto;     /* щоб кнопка була клікабельна */
}

.center-copy .link-button {
  pointer-events: auto;     /* щоб кнопка була клікабельна */
}

.center-copy .copyright {
  font-size: 14px;
  color: #ccc;
  pointer-events: auto;     /* щоб копірайт не блокував кліки */
}

/* Стиль для кнопки "Назад" */
.back-button {
  margin-right: 6.77vw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s;
}

.back-button:hover {
  transform: scale(1.1);
}

.back-icon {
  width: 30px;
  height: 30px;
}

.link-button {
  margin-right: 3vw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s;
}

.link-button:hover {
  transform: scale(1.1);
}

.link-icon {
  width: 30px;
  height: 30px;
}

.main-wrapper { display:flex; justify-content:center; gap:20px; }

.sidebar.left-ads,
.sidebar.right-ads {
  position: fixed;
  top: 70px;
  width: 16.302%;
  height: 92vh;
  z-index: 999;
  box-shadow: 0 0 20px rgba(0,0,0,1);
}

.sidebar.left-ads { left:0; }
.sidebar.right-ads { right:0; }

.ad-link { display:block; width:100%; height:100%; }
.ad-block { position:relative; width:100%; height:100%; }
.ad-block img { width:100%; height:100%; object-fit:cover; }
.ad-overlay-text,
.ad-subtitle {
  position:absolute;
  left:0;
  width:100%;
  text-align:center;
  color:#fff;
  text-shadow:1px 1px 4px rgba(0,0,0,0.6);
}
.ad-overlay-text { top:30px; font-size:18px; }
.ad-subtitle { bottom:30px; font-size:20px; }

.article-wrapper {
  width: 60vw;
  padding: 30px;
  flex-shrink: 0;
}

.article-content p {
  font-size:1.2rem;
  line-height:1.7;
  color:#fff;
  word-break:break-word;
  margin-bottom:30px;
}

/* ===== Фото та відео в стопчик ===== */
.article-content img,
.article-content video,
.article-content .video-wrapper {
  display: block;      /* кожен блок окремо */
  clear: both;         /* стопчик */
  margin-bottom: 15px; /* відступ між блоками */
}

/* Зберігаємо float для обтікання текстом */
.article-content img.float-left,
.article-content .video-wrapper.float-left {
  float: left;
  margin-right: 15px;
  margin-left: 0;
}

.article-content img.float-right,
.article-content .video-wrapper.float-right {
  float: right;
  margin-left: 15px;
  margin-right: 0;
}

/* Розміри залишаються як раніше */
.article-content img { width: 30vw; border-radius: 8px; }
.article-content .video-wrapper { width: 30vw; height: 315px; margin: 0 0 15px 0; border-radius: 8px; position: relative; }
.article-content .video-wrapper iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; position: absolute; top: 0; left: 0; }

/* ======== Мінімалістична легка цитата ======== */
blockquote {
  margin: 16px 0;
  color: #ffffff;                /* темно-сірий текст, не важкий чорний */
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 90%;             /* щоб не тягнулася на всю ширину */
}

/* Лапки перед і після цитати */
blockquote::before {
  content: "“";
  font-size: 1.5rem;
  color: #ccc;
  vertical-align: top;
  margin-right: 4px;
}

blockquote::after {
  content: "”";
  font-size: 1.5rem;
  color: #ccc;
  margin-left: 4px;
}

/* Автор або джерело цитати */
blockquote small {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #999;
}

/* ======== Мінімалістичний стиль для секцій з вправами ======== */
section.dl-section h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

/* Список визначень */
dl {
  margin: 0;
}

/* Назви м’язів */
dt {
  font-weight: bold;
  font-size: 1.15rem;
  margin-top: 12px;
  padding-left: 0;
}

/* Опис вправ */
dd {
  margin: 4px 0 12px 16px;
  font-size: 1rem;
}

/* Легкий hover-ефект для читабельності */
dd:hover {
  opacity: 0.9;
  transition: opacity 0.3s;
}

/* ======== Таблиці ======== */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.article-content th, .article-content td {
  border: 1px solid #fff;
  padding: 10px;
  text-align: left;
}

.article-content th {
  font-weight: bold;
}

/* ===== МОБІЛЬНА ОПТИМІЗАЦІЯ ===== */
@media(max-width: 1000px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 75px !important;
    box-sizing: border-box;
    display: block !important;
    text-align: left !important;
  }

  .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px 40px 14px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }

  .article-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .quad-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .quad-section {
    gap: 16px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-content {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .article-content p,
  .article-content li {
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .article-content img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 0 0 15px 0 !important;
    border-radius: 8px !important;
    display: block !important;
    object-fit: cover !important;
  }

  .article-content table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
  }

  .article-content .video-wrapper {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
    float: none !important;
    margin: 0 0 15px 0 !important;
    border-radius: 8px !important;
    display: block !important;
    position: relative !important;
  }

  .article-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .info-card { width: 100%; height: auto; margin-bottom: 2vh; padding: 0 10px; box-sizing: border-box; }
  .info-card img { width: 100%; max-width: 100%; height: auto; object-fit: cover; display: block; }

  /* Completely hide desktop bilateral ad sidebars on mobile */
  .sidebar.left-ads,
  .sidebar.right-ads {
    display: none !important;
  }

  
  
  .center-copy, .language-select, .site-logo { display: none !important; }

  header {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 8px 10px !important;
    background-color: rgba(15, 17, 26, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .left-side {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .nav-buttons {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 8px !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
  }

  .nav-buttons::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    border-radius: 9px !important;
    background: rgba(255, 26, 26, 0.08) !important;
    border: 1px solid rgba(255, 26, 26, 0.22) !important;
    font-size: 13px !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
  }

  .nav-button:hover, .nav-button:active {
    background: rgba(255, 26, 26, 0.22) !important;
    border-color: #ff1a1a !important;
  }

}

/* ===== Нижня панель для мобільних ===== */
.bottom-panel {
  display: none;
  width: 100%; max-width: 100%;
  min-height: 60px;
  background-color: rgba(20,20,30,0.95);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 0;
  color: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  font-size: clamp(12px,3vw,16px);
  justify-content: center;
  align-items: center;
  gap: 0; /* прибираємо відстань між дочірніми елементами */
}

.bottom-panel .panel-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0;
  gap: 0; /* прибираємо відстань між дочірніми елементами */
}

.bottom-panel .panel-content .center-copy,
.bottom-panel .panel-content .language-select {
  display: flex;
  align-items: center;
  color: #fff;
  gap: 0; /* прибираємо відступи */
}

.bottom-panel .language-select select {
  background-color: rgba(30,30,40,0.9);
  border: 1px solid #ff1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.bottom-panel .language-select select:hover {
  background-color: rgba(50,50,60,0.95);
}

.bottom-panel .language-select select:focus {
  outline: none;
}

.bottom-panel .language-select select option {
  background-color: #20202a;
  color: #fff;
}

@media (max-width: 1000px) {
  .bottom-panel {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 14px !important;
    min-height: 56px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
  }

  .bottom-panel .panel-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }
}

/* ========================================================
   REDPORTED DESIGN SYSTEM: IN-ARTICLE MEDIA & APPS
   Dark Cyberpunk / Neon Red Aesthetic
   ======================================================== */

/* In-Article Scientific Visual Media Cards */
.article-media-card {
  width: 100%;
  margin: 40px 0 35px 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(18, 20, 32, 0.90);
  border: 1px solid rgba(255, 26, 26, 0.30);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 26, 26, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.article-media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 26, 26, 0.60);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 26, 26, 0.30);
}

.article-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(12, 14, 22, 0.95);
  border-bottom: 1px solid rgba(255, 26, 26, 0.20);
}

.article-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff4d4d;
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.article-media-badge i {
  font-size: 0.95rem;
  color: #ff1a1a;
}

.article-media-img-wrap {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #08090e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-media-img {
  width: 100% !important;
  height: 100% !important;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-media-card:hover .article-media-img {
  transform: scale(1.03);
}

.article-media-img-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 22, 0.85));
  pointer-events: none;
}

.article-media-caption {
  padding: 12px 20px;
  background: rgba(14, 16, 26, 0.95);
  border-top: 1px solid rgba(255, 26, 26, 0.15);
  color: #a0a5b8;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-media-caption i {
  color: #ff4d4d;
  font-size: 1rem;
}

/* Featured Interactive App Card (Chapter 4/5) */
.article-featured-app-card {
  width: 100%;
  margin: 45px 0 40px 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(22, 25, 40, 0.95) 0%, rgba(14, 16, 26, 0.95) 100%);
  border: 1px solid rgba(255, 26, 26, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.70), 0 0 25px rgba(255, 26, 26, 0.20);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 290px 1fr;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.article-featured-app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 26, 26, 0.65);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.80), 0 0 35px rgba(255, 26, 26, 0.35);
}

.featured-app-media {
  position: relative;
  overflow: hidden;
  background: #08090e;
  min-height: 220px;
}

.featured-app-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.article-featured-app-card:hover .featured-app-media img {
  transform: scale(1.05);
}

.featured-app-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.15) 0%, rgba(10, 11, 18, 0.85) 100%);
  pointer-events: none;
}

.featured-app-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.featured-app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.featured-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 26, 26, 0.15);
  border: 1px solid rgba(255, 26, 26, 0.40);
  color: #ff4d4d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

.featured-app-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c4c8d8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.featured-app-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.featured-app-desc {
  margin: 0;
  font-size: 1rem;
  color: #a0a5b8;
  line-height: 1.6;
}

.featured-app-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  border: 1px solid #ff4d4d;
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 26, 26, 0.35);
  transition: all 0.25s ease;
}

.featured-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 26, 26, 0.55);
  background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
}

/* Related Apps Toolkit Grid (Before Chapter 10) */
.article-apps-toolkit {
  width: 100%;
  margin: 50px 0 40px 0;
  padding: 30px;
  background: rgba(15, 17, 26, 0.90);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.60);
  box-sizing: border-box;
}

.toolkit-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.toolkit-header i.toolkit-main-icon {
  font-size: 2rem;
  color: #ff1a1a;
  filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.5));
}

.toolkit-header-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.toolkit-header-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #8c91a4;
  line-height: 1.5;
}

.article-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.article-app-grid-card {
  background: rgba(20, 22, 34, 0.95);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.40);
  cursor: pointer;
}

.article-app-grid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 26, 26, 0.60);
  box-shadow: 0 10px 30px rgba(255, 26, 26, 0.25);
}

.app-grid-photo-wrap {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: #08090e;
}

.app-grid-photo-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-app-grid-card:hover .app-grid-photo-wrap img {
  transform: scale(1.06);
}

.app-grid-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 17, 26, 0.85) 100%);
  pointer-events: none;
}

.app-grid-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 16, 26, 0.85);
  border: 1px solid rgba(255, 26, 26, 0.35);
  color: #ff4d4d;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.app-grid-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-grid-title {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.app-grid-desc {
  margin: 0 0 16px 0;
  font-size: 0.88rem;
  color: #8c91a4;
  line-height: 1.5;
  flex-grow: 1;
}

.app-grid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ff4d4d;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.article-app-grid-card:hover .app-grid-cta {
  color: #ff1a1a;
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.4);
}

/* Responsive adjustments for mobile/tablet */
@media (max-width: 1000px) {
  .article-featured-app-card {
    grid-template-columns: 1fr;
  }
  .featured-app-media {
    min-height: 180px;
    height: 180px;
  }
  .featured-app-body {
    padding: 18px;
  }
  .featured-app-title {
    font-size: 1.25rem;
  }
  .article-apps-toolkit {
    padding: 18px;
  }
  .article-apps-grid {
    grid-template-columns: 1fr;
  }
  .article-media-card {
    margin: 25px 0;
  }
  .article-media-img-wrap,
  .article-media-img {
    max-height: 260px !important;
  }
}

