/* Home Page Styles - Mobile First */

/* Hero Section - Mobile */
.hero-section {
  padding: 28px 0;
  color: #ffffff;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-main {
  order: -1;
  /* Main content first on mobile */
  border-bottom: 1px solid #fff1eb11;
  padding-bottom: 50px;
}

.featured-post {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-image {
  width: 100%;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 271px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.featured-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.featured-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 400;
  /* Regular */
  line-height: normal;
  /* auto */
  letter-spacing: 0px;
}

.featured-title {
  font-size: 32px;
  font-weight: 500;
  /* Medium */
  line-height: 1.1;
  /* 110% */
  letter-spacing: 0%;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  text-align: center;
}

.featured-title a {
  color: #ffffff;
  text-decoration: none;
}

.featured-subtitle {
  display: block;
  margin: 0;
}

.featured-subtitle>p {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  /* Regular */
  line-height: 125%;
  text-align: center;
  color: #fff;
  letter-spacing: -0.02em;
  /* -2% */
  font-family: "Rethink Sans", sans-serif;
  margin: 0;
}

.featured-author {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Rethink Sans", sans-serif;
  font-style: italic;
  font-weight: 400;
  line-height: 100%;
  margin: 0;
  letter-spacing: 0px;
}

/* Sidebar Posts - Mobile */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 50px;
  border-top: 1px solid #fff1eb11;
  padding-bottom: 50px;
}

.hero-sidebar.hero-right {
  gap: 20px;
}

.sidebar-post {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 241, 235, 0.1);
  padding-bottom: 20px;
}

.sidebar-post:last-child {
  border-bottom: none;
  margin: 0;
  padding-bottom: 0;
}

.sidebar-thumbnail {
  width: 100%;
  overflow: hidden;
}

.sidebar-thumbnail img {
  width: 100%;
  height: 220.932px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.sidebar-thumbnail-small,
.trending-thumbnail {
  width: 137px;
  height: 77px;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-thumbnail-small img,
.trending-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-content .post-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Rethink Sans", sans-serif;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  /* -3% */
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  width: 100%;
}

.sidebar-title a {
  color: #ffffff;
  text-decoration: none;
}

.sidebar-small-title,
.trending-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.51px;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.sidebar-small-title a,
.trending-title a {
  color: #ffffff;
  text-decoration: none;
}

.sidebar-meta .post-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Rethink Sans", sans-serif;
  font-weight: 500;
  /* Medium */
  line-height: 100%;
  letter-spacing: 0px;
}

.sidebar-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  margin: 0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
}

.author-avatar {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

/* Compact sidebar posts */
/* Shared Compact Post Styles (Hero Right & Trending) */
.sidebar-post.compact,
.trending-post {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 241, 235, 0.1);
  /* 10% opacity */
  padding-bottom: 20px;
}

.sidebar-post.compact:last-child,
.trending-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}



/* Section Headers - Mobile */
.section-header,
.podcast-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  /* Add padding between text and button */
}

.kini-section-header-container {
  margin-bottom: 30px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title,
.section-podcast-title {
  font-size: 30px;
  width: 100%;
  /* Full width as requested */
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.15;
}

.see-more-btn {
  background: none;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 32px;
  font-size: 12px;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.see-more-btn:hover {
  background: rgba(255, 241, 235, 0.1);
  border-color: rgba(255, 241, 235, 0.4);
  color: #ffffff;
}

/* Trending News - Mobile */
.trending-section {
  padding: 0;
}

.trending-section,
.kini-big-deal-section,
.global-updates-section,
.policy-ethics-section,
.product-spotlight-section,
.ai-africa-section,
.podcast-video-section,
.ai-explainer-section,
.ai-education-section,
.ai-toolbox-section,
.demsay-demsay-section,
.sharp-sharp-section {
  /* Border moved to container for width control */
  padding-top: 0;
  padding-bottom: 0;
}

/* Desktop Only - Section Borders */
/* Section Borders - Global (Mobile + Desktop) */

/* Even Sections - Top/Bottom Borders via Pseudo-elements (Respects Padding) */
.trending-section>.container,
.ai-africa-section>.container,
.ai-toolbox-section>.container,
.sharp-sharp-section>.container {
  position: relative;
  /* Ensure container context */
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: none;
  /* Clear old borders */
  border-bottom: none;
}

.trending-section>.container::before,
.ai-africa-section>.container::before,
.ai-toolbox-section>.container::before,
.sharp-sharp-section>.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--site-padding);
  right: var(--site-padding);
  height: 1px;
  background: rgba(255, 241, 235, 0.1);
}

.trending-section>.container::after,
.ai-africa-section>.container::after,
.ai-toolbox-section>.container::after,
.sharp-sharp-section>.container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--site-padding);
  right: var(--site-padding);
  height: 1px;
  background: rgba(255, 241, 235, 0.1);
}

/* Odd Sections - Padding Only, No Borders */
.ai-explainer-section>.container,
.ai-education-section>.container,
.demsay-demsay-section>.container {
  border: none;
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1280px) {

  .trending-section>.container::before,
  .ai-africa-section>.container::before,
  .ai-toolbox-section>.container::before,
  .sharp-sharp-section>.container::before,
  .trending-section>.container::after,
  .ai-africa-section>.container::after,
  .ai-toolbox-section>.container::after,
  .sharp-sharp-section>.container::after {
    left: var(--site-padding);
    right: var(--site-padding);
  }
}

/* Trending specific overrides if needed */
.trending-posts,
.trending-podcast-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Match hero right gap */
}

.trending-posts::-webkit-scrollbar,
.trending-podcast-posts::-webkit-scrollbar {
  display: none;
}

/* .trending-thumbnail uses shared .sidebar-thumbnail-small style */
/* .trending-post uses shared .sidebar-post.compact style */

.trending-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Trending meta/author inherits or needs specific override? 
   Using the compact post author style for trending too. 
*/
.sidebar-post.compact .post-author,
.trending-post .post-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Rethink Sans", sans-serif;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0px;
  font-style: normal;
}

/* Trending Slideshow Controls */
.trending-section {
  position: relative;
}

.trending-controls,
.section-controls-wrapper {
  /* Shared class for consistency */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.trending-nav,
.section-nav {
  display: flex;
  gap: 8px;
}

.trending-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.trending-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.trending-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Grid Sections - Mobile */
.section-posts {
  display: flex;
  flex-direction: column;
  /* overflow-x: auto; */
  gap: 20px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-posts::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .section-posts {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 24px;
    box-sizing: border-box;
  }



  .section-post {
    padding-right: 24px;
    border-right: 1px solid rgba(255, 241, 235, 0.1);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    min-width: 350px;
    flex-shrink: 0;
  }

  .section-post:last-child {
    border-right: none;
    border-bottom: none;
    padding-bottom: 0;
  }
}

.section-post {
  /* Inherit layout from shared .sidebar-post logic if possible, 
     or replicate Hero Left style */
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 241, 235, 0.1);
  padding-bottom: 20px;
  margin: 0;
  transition: all 0.3s ease;
}

.section-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-post:hover {
  opacity: 0.9;
}

.post-thumbnail {
  width: 100%;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; Removed to fix spacing */
  gap: 24px;
  /* Gap from author */
  height: auto;
  /* Was 100% */
}

.post-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-title {
  font-size: 20px;
  /* Match Hero Left title size */
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.post-title a {
  color: #ffffff;
  text-decoration: none;
}

.post-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  margin: 0;
  line-height: 1.4;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 400;
}

.post-subtitle p {
  margin: 0;
  font-family: "Rethink Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  /* 20px */
  text-transform: none;
  opacity: 0.5;
}

.post-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 24px;
  flex-direction: column;
  justify-content: space-between;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 500;
  margin: 0;
}

.post-date {
  color: rgba(255, 255, 255, 0.5);
  /* Match Hero Left opacity */
  font-family: "Rethink Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0px;
  padding: 0;
  margin-bottom: 0;
}

.author-info .post-author {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Rethink Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: capitalize;
  letter-spacing: 0px;
}

/* AI in Africa Section - Mobile */


.ai-africa-section .section-posts {
  margin-top: 24px;
}

.section-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
  /* Increased from 24px per request */
}

.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  /* Horizontal scroll */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 16px;
  /* Horizontal padding to prevent first/last clip */
  margin-left: -16px;
  /* Pull back to align with text */
  margin-right: -16px;
  /* Expand right side too */
  width: calc(100% + 32px);
  /* Compensate for negative margins */
}

.filter-buttons::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 64px;
  font-size: 14px;
  /* Updated per request */
  font-family: "Rethink Sans", sans-serif;
  /* Updated font */
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  /* -1% spacing */
  white-space: nowrap;
  white-space: nowrap;
  font-weight: 400;
  /* Regular */
  outline: none;
  /* Remove default focus ring */
}

.filter-btn:focus {
  outline: none;
}

.filter-btn.active {
  background: transparent;
  outline: none;
}

.filter-btn:hover {
  background: transparent;
  border-color: #ffffff;
  /* White border on hover too */
}

.navigation-arrows {
  display: none;
  /* Hide on mobile */
  gap: 8px;
}

.nav-arrow {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 64px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 20px;
}

.nav-arrow:hover {
  border-color: rgba(255, 241, 235, 0.4);
}

.nav-arrow.left {
  opacity: 0.2;
}

/* Podcast & Video Section - Mobile */


.podcast-video-section>.container {
  display: flex;
  flex-direction: column;
}

.podcast-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.podcast-post {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 0;
}

.podcast-thumbnail {
  width: 100%;
  overflow: hidden;
}

.podcast-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.podcast-title {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: 0.51px;
  line-height: 1.15;
}

.podcast-title a {
  color: #ffffff;
  text-decoration: none;
}

/* CTA Banner - Mobile */
.cta-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 32px 0 0 0;
  margin: 32px 0;
  position: relative;
  overflow: visible;
  /* Allow image to stick out if needed */
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  /* Remove padding to let image be flush */
  background-color: transparent;
  /* Background on inner wrapper or handle differently? */
  /* The design has orange background behind text and maybe image. */
}

/* We need an orange box. Let's use ::before or style a wrapper. 
   But looking at HTML, cta-content has the background. */

.cta-content {
  background-color: #ed7221;
  padding: 0 0 40px 0px;
  border-radius: 0;
  overflow: visible;
  margin-top: 100px;
  /* Push down to make room for image sticking up? */
}

.cta-image {
  position: relative;
  margin-top: -140px;
  /* Pull image up */
  overflow: visible;
  /* margin-bottom: 16px; */
}

.cta-image img {
  width: 355px;
  object-fit: contain;
  display: block;
}

.cta-text {
  color: #ffffff;
  z-index: 3;
  position: relative;
  text-align: center;
  width: 100%;
}

.cta-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.1;
}

.cta-button {
  background: #000000;
  color: #ffffff;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.3s ease;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 14px;
}

.cta-button:hover {
  background: #333;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .hero-section {
    padding: 48px 0;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
  }

  /* Featured post spans full width on top row */
  .hero-main {
    grid-column: 1 / -1;
    order: 0;
  }

  /* Left sidebar takes left column in second row */
  .hero-left {
    grid-column: 1;
    order: 1;
    display: flex;
    border-top: none;
    border-right: 1px solid rgba(255, 241, 235, 0.1);
    padding-right: 24px;
  }

  /* Right sidebar takes right column in second row */
  .hero-right {
    grid-column: 2;
    order: 2;
    border-top: none;
  }

  .featured-title {
    font-size: 32px;
  }

  .featured-subtitle {
    font-size: 16px;
  }

  .section-title,
  .section-podcast-title {
    font-size: 32px;
  }

  .sidebar-thumbnail img {
    height: auto;
  }

  .trending-posts,
  .trending-podcast-posts {
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    overflow-x: visible;
  }



  .section-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    gap: 24px;
  }

  .section-post {
    width: 100%;
    max-width: none;
    border-bottom: 1px solid rgba(255, 241, 235, 0.1);
    padding-bottom: 24px;
    border-right: none;
    padding-right: 0;
  }

  /* Odd items (left column) get right border */
  .section-post:nth-child(odd) {
    border-right: 1px solid rgba(255, 241, 235, 0.1);
    padding-right: 24px;
    /* Stop border before meeting bottom border */
    position: relative;
  }

  /* Use pseudo-element for right border to create gap at corner */
  .section-post:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 24px;
    /* Creates gap before bottom border */
    width: 1px;
    background: rgba(255, 241, 235, 0.1);
  }

  .section-post:nth-child(odd) {
    border-right: none;
    /* Remove actual border, use pseudo-element instead */
  }

  /* Last two items (bottom row) don't need bottom border */
  .section-post:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .navigation-arrows {
    display: flex;
  }

  .cta-title {
    font-size: 48px;
  }

  .cta-image {
    display: block;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .container {
    max-width: 1440px;
    /* 1296px content + 144px padding */
    padding-left: 24px;
    /* Reduced padding for 1024px */
    padding-right: 24px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  @media (min-width: 1280px) {
    .container {
      padding-left: 72px;
      padding-right: 72px;
    }
  }

  .hero-section {
    padding: 64px 0;
  }

  .hero-left {
    border-right: 1px solid rgba(255, 241, 235, 0.1);
    padding-right: 24px;
  }

  .hero-right {
    border-left: 1px solid rgba(255, 241, 235, 0.1);
    padding-left: 24px;
    padding-bottom: 10px;
  }

  /* Specific Spacing for Hero Left Content */
  .hero-left .sidebar-text-wrapper {
    gap: 12px;
  }

  .hero-left .sidebar-content {
    gap: 24px;
  }

  .hero-left .sidebar-post {
    padding-bottom: 38px;
  }

  /* Keep reset for last item */
  .hero-left .sidebar-post:last-child {
    padding-bottom: 0;
  }

  .hero-sidebar {
    max-width: 322px;
    padding-top: 0px;
    border-top: none;
    padding-bottom: 0px;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }

  /* Desktop: restore all columns to single row */
  .hero-main {
    grid-column: 2;
    order: 0;
  }

  .hero-left {
    grid-column: 1;
    order: 0;
    display: flex;
  }

  .hero-right {
    grid-column: 3;
    order: 0;
  }

  .featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .featured-title {
    color: #fff;
    text-align: center;
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 46px;
    font-weight: 500;
    line-height: 110%;
  }

  .featured-subtitle>p {
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
    letter-spacing: -0.44px;
    text-transform: none;
  }

  .hero-main {
    border-bottom: none;
    padding-bottom: 0px;
  }

  .featured-image img {
    height: 440px;
    margin-bottom: 16px;
    object-fit: cover;
  }



  .sidebar-post.compact .post-author {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Rethink Sans", sans-serif;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0px;
    font-style: normal;
    margin-top: 4px;
    /* Add slight separation from title */
  }

  .sidebar-thumbnail img {
    width: 100%;
    max-width: 322px;
    height: auto;
    aspect-ratio: 322/207.4;
    object-fit: cover;
  }

  .sidebar-thumbnail-small {
    width: 77px;
    /* Force square on desktop */
    min-width: 77px;
  }

  .sidebar-thumbnail-small img {
    width: 100%;
    max-width: 322px;
    height: auto;
    aspect-ratio: 1/1;
    /* Square aspect ratio */
    object-fit: cover;
  }

  .sidebar-thumbnail-small>img,
  .trending-thumbnail img {
    width: auto;
    height: 77px;
    aspect-ratio: 1/1;
  }

  .trending-thumbnail {
    width: 100px;
  }

  .sidebar-small-title {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    width: 100%;
    max-width: 220px;
    font-family: "Unbounded", sans-serif;
  }

  .section-title,
  .section-podcast-title {
    font-size: 40px;
    width: auto !important;
  }

  .section-podcast-title {
    width: 375.855px;
    border-right: 1px solid rgba(255, 241, 235, 0.1);
    margin-right: 24px;
  }

  .section-header,
  .podcast-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
  }

  /* Padding moved to global Even/Odd rules (lines ~360) for consistency */

  .trending-content {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
  }

  .trending-post {
    padding-right: 24px;
    border-right: 1px solid rgba(255, 241, 235, 0.1);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    min-width: 350px;
    flex-shrink: 0;
  }

  .trending-post:last-child {
    border-right: none;
  }

  .trending-posts,
  .trending-podcast-posts {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    /* grid-template-columns: repeat(4, 1fr); */
    gap: 24px;
    box-sizing: border-box;
    width: auto;
    /* overflow: scroll; Removed to prevent vertical scroll */
  }

  .trending-podcast-posts {
    overflow-x: auto;
  }

  .podcast-video-section>.container {
    flex-direction: row;
  }

  .trending-title {
    width: 217px;
    font-size: 17px;
  }

  .trending-controls {
    margin-bottom: 48px;
  }

  .section-post {
    display: flex;
    max-width: 294px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;

    border-right: 1px solid rgba(255, 241, 235, 0.1);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .section-post:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .section-posts {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
  }

  .post-thumbnail {
    width: 100%;
    height: 189.371px;
    align-self: stretch;
    aspect-ratio: 294/189.37;
    object-fit: cover;
  }

  .post-thumbnail img {
    height: 189.371px;
  }

  .post-content {
    display: flex;
    flex-direction: column;
    padding: 0px 0 0 0;
    gap: 24px;
    /* Increased to 24px to match Hero Left layout (text vs author) */
  }

  .post-title {
    color: #fff;
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
    font-weight: 500;
    line-height: 115%;
    letter-spacing: -0.6px;
  }

  .post-subtitle p {
    color: #fff;
    font-family: "Rethink Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
    text-transform: none;
    opacity: 0.5;
  }

  .post-meta {
    display: flex;
    gap: 5px;
  }

  .post-date {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Rethink Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 0;
    padding-bottom: 0px;
    letter-spacing: 0px;
  }

  .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar-thumbnail-small img {
    width: auto;
    height: 77px;
  }

  .author-avatar {
    width: 24px;
    height: 24px;
  }

  .ai-africa-section .section-posts {
    margin-top: 48px;
  }

  .podcast-section-header,
  .section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .cta-banner {
    display: flex;
    align-items: center;
  }

  .cta-content {
    padding: 64px 80px 32px 80px;
  }

  .cta-image {
    width: 278.589px;
    height: 342.267px;
    position: absolute;
    top: 94px;
    left: 0px;
  }

  .cta-title {
    font-size: 56px;
    /* width: 801.344px; */
  }

  .cta-text {
    text-align: center;
  }
}

/* CTA Styling (From Single Post) */
.cta-wrapper {
  padding: 0 16px;
  /* 16px mobile padding */
  width: 100%;
}

/* Persona Assessment CTA */
.persona-assessment-cta {
  background-color: #ED7221;
  background-image: url('../images/spike.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  /* Ensure pattern shows */
  border-radius: 0px;
  margin-top: 80px;
  /* Make room for extruded image */
  margin-bottom: 30px;
  /* Changed to 30px */

  /* 16px side padding on mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  /* Allow image to extend outside */
  position: relative;
  width: 100%;
}

.assessment-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: -80px;
  /* Extrude 80px upwards */
  margin-bottom: 20px;
  /* Gap between image and text */
}

.assessment-person-img {
  width: 100%;
  /* Full width */
  height: auto;
  display: block;
  object-fit: contain;
}

.assessment-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px 48px 20px;
  /* No top padding, gap handles spacing */
  gap: 24px;
  width: 100%;
}

.assessment-text-content h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  /* SemiBold */
  font-size: 30px;
  line-height: 1;
  /* 100% */
  letter-spacing: 0px;
  /* 0% */
  color: #ffffff;
  margin: 0;
}

.assessment-btn {
  background-color: #000000;
  color: #ffffff !important;
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 700;
  /* Bold */
  font-size: 16px;
  line-height: 1;
  /* 100% */
  letter-spacing: 0px;
  /* 0% */
  padding: 20px 12px;
  /* Top/Bottom 20, Left/Right 12 */
  border-radius: 10px;
  /* Roundness 10 */
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s ease;
  min-width: 200px;
}

.assessment-btn:hover {
  transform: translateY(-2px);
  background-color: #222222;
}

/* Tablet and Desktop Adjustments */
@media (min-width: 768px) {

  /* Persona Assessment CTA - Desktop Layout (Full Width) */
  .persona-assessment-cta {
    background-image: url('../images/spike-bg.svg');
    height: 277px;
    margin-top: 65px;
    /* Make room for extruded image */
    margin-bottom: 0;
    padding: 0;
    /* No padding on desktop */
    flex-direction: row;
    /* Horizontal layout */
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .assessment-image-wrapper {
    position: absolute;
    left: 0;
    /* At left edge of CTA */
    top: -65px;
    width: auto;
    height: 342px;
    /* Restored original height */
    margin: 0;
  }

  .assessment-person-img {
    width: auto;
    height: 342px;
    /* Restored original height */
    object-fit: contain;
  }

  .assessment-text-content {
    padding: 0;
    max-width: 600px;
    /* Reduced max-width */
    margin: 0 auto;
    gap: 32px;
    /* Desktop gap */
  }

  .assessment-text-content h3 {
    font-size: 32px;
    /* Reduced for tablet */
    line-height: 1;
    letter-spacing: 0px;
    max-width: 600px;
    /* Reduced max-width */
    /* Match increased max-width */
  }
}

/* Desktop only (1024px+) */
@media (min-width: 1024px) {

  /* Desktop padding on wrapper */
  .cta-wrapper {
    padding: 0 var(--site-padding);
  }

  /* Restore larger size for desktop */
  .assessment-text-content h3 {
    font-size: 40px;
    /* Reduced from 56px */
  }
}