/* Home Page Styles - Mobile First */

/* Hero Section - Mobile */
.hero-section {
  padding: 1rem 0;
  color: #ffffff;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-main {
  order: -1; /* Main content first on mobile */
}

.featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-content {
  padding: 0.5rem 0;
}

.featured-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  font-family: "Eudoxus Sans", sans-serif;
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.featured-title a {
  color: #ffffff;
  text-decoration: none;
}

.featured-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  font-family: "Eudoxus Sans", sans-serif;
}

.featured-author {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
}

/* Sidebar Posts - Mobile */
.sidebar-post {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  border-bottom: 1px solid #fff1eb15;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.sidebar-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-thumbnail {
  width: 100%;
}

.sidebar-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.sidebar-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.sidebar-title a {
  color: #ffffff;
  text-decoration: none;
}

.sidebar-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.author-avatar {
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

/* Compact sidebar posts */
.sidebar-post.compact {
  padding: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #fff1eb15;
}

.sidebar-post.compact:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-post.compact .sidebar-title {
  font-size: 1.0625rem;
}

/* Section Headers - Mobile */
.section-header,
.podcast-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  /* padding: 1rem 0; */
}

.kini-section-header-container {
  margin-bottom: 2rem;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title,
.section-podcast-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.see-more-btn {
  background: none;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 32px;
  font-size: 0.75rem;
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.see-more-btn:hover {
  background: rgba(255, 241, 235, 0.1);
  border-color: rgba(255, 241, 235, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Trending News */
.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 {
  border-top: 1px solid #fff1eb15;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.trending-posts,
.trending-podcast-posts {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.trending-posts::-webkit-scrollbar,
.trending-podcast-posts::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.trending-post {
  flex: 0 0 auto;
  min-width: 280px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
}

/* .trending-thumbnail img {
  width: 90px;
  height: 90px;
  object-fit: cover;
} */

.trending-title {
  font-size: 1.0625rem;
  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;
}

.trending-title a {
  color: #ffffff;
  text-decoration: none;
}

.trending-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 0.5rem;
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  align-items: center;
  margin-top: 0.5rem;
}

/* Trending Slideshow Controls */
.trending-section {
  position: relative;
}

.trending-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.trending-nav {
  display: flex;
  gap: 0.5rem;
}

.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: 1.2rem;
}

.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 */
.grid-3x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.section-post {
  overflow: hidden;
  /* background: #181818; */
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid #fff1eb15;
  transition: all 0.3s ease;
}

.section-post:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.post-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.post-content {
  padding: 1rem;
}

.post-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.post-title a {
  color: #ffffff;
  text-decoration: none;
}

.post-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  /* margin-bottom: 0.75rem; */
  line-height: 1.25;
  text-transform: capitalize;
  font-family: "Eudoxus Sans", sans-serif;
}

.post-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 0.5rem;
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
}

/* AI in Africa Section */
.ai-africa-section {
  padding: 2rem 0;
}

.section-posts {
  display: flex;
  flex-direction: row;
}

.ai-africa-section .section-posts {
  display: flex;
  margin-top: 2rem;
}
.section-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 16px 16px 18px 16px;
  border-radius: 64px;
  font-size: 14px;
  font-family: "Eudoxus Sans", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.14px;
}

.filter-btn.active {
  /* background: #fff1eb;
  color: #181818; */
  border-color: #fff1eb;
}

.filter-btn:hover {
  background: rgba(255, 241, 235, 0.1);
  border-color: rgba(255, 241, 235, 0.4);
}

.navigation-arrows {
  display: flex;
  gap: 0.5rem;
}

.nav-arrow {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 64px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.nav-arrow:hover {
  border-color: rgba(255, 241, 235, 0.4);
}

.nav-arrow.left {
  opacity: 0.2;
}

/* Podcast & Video Section */
.podcast-video-section {
  padding: 2rem 0;
}

.podcast-video-section > .container {
  display: flex;
  flex-direction: row;
}

.podcast-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.podcast-post {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
}

.podcast-thumbnail > img {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.podcast-title {
  font-size: 1.0625rem;
  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 */
.cta-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 4rem 0 0 0;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 80px 32px 80px;
  background-color: #ed7221;
}

.cta-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 278px;
  height: 342px;
  overflow: hidden;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-text {
  color: #ffffff;
  z-index: 3;
  position: relative;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1;
}

.cta-button {
  background: #000000;
  color: #ffffff;
  padding: 1.25rem 0.75rem;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  transition: background 0.3s ease;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 1rem;
  line-height: 0;
}

.cta-button:hover {
  background: #333;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
  }

  .hero-main {
    order: 0;
  }

  .trending-posts,
  .trending-podcast-posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .podcast-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
  }

  .hero-main {
    order: 0;
  }

  .featured-title {
    font-size: 2rem;
  }

  .featured-subtitle {
    font-size: 1rem;
  }

  .section-title,
  .section-podcast-title {
    font-size: 2rem;
  }

  .sidebar-thumbnail img {
    height: 180px;
  }

  .trending-posts,
  .trending-podcast-posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero-left {
    border-right: 1px solid #fff1eb15;
    padding-right: 24px;
  }

  .hero-right {
    border-left: 1px solid #fff1eb15;
    padding-left: 24px;
  }

  .sidebar-content {
    /* gap: 20px; */
  }

  .post-content {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    padding: 20px 0 0 0;
  }

  .hero-content {
    gap: 24px;
  }

  .post-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .post-title {
    color: #fff;
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 115%; /* 23px */
    letter-spacing: -0.6px;
  }

  .post-thumbnail img {
    height: 189.371px;
  }

  .trending-title {
    width: 217px;
  }

  .post-date {
    color: #fff;
    font-family: "Eudoxus Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .author-avatar {
    width: 24px;
    height: 24px;
  }

  .post-author {
    color: #fff;
    font-family: "Eudoxus Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 12px */
    opacity: 0.5;
    text-transform: capitalize;
  }

  .hero-section {
    padding: 64px 0;
  }

  .featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 64px 0; */
  }

  .featured-title {
    color: #fff;
    text-align: center;
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 46px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 50.6px */
  }

  .featured-subtitle > p {
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 27.5px */
    letter-spacing: -0.44px;
    text-transform: capitalize;
  }

  .section-title,
  .section-podcast-title {
    font-size: 2.5rem;
  }

  .section-podcast-title {
    width: 375.855px;
    border-right: 1px solid #fff1eb15;
    margin-right: 24px;
  }

  .featured-image img {
    height: 440px;
    margin-bottom: 16px;
    object-fit: cover;
  }

  .sidebar-post.compact {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .hero-sidebar {
    max-width: 322px;
  }

  .sidebar-thumbnail img {
    width: 100%;
    height: 207.406px;
    object-fit: cover;
  }

  .sidebar-thumbnail-small > img,
  .trending-thumbnail img {
    width: 77px;
    height: auto;
    aspect-ratio: 1/1;
  }

  .trending-section,
  .kini-big-deal-section,
  .global-updates-section,
  .policy-ethics-section,
  .product-spotlight-section,
  .ai-africa-section,
  .podcast-video-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .trending-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*  align-items: center; */
  }

  /* .trending-thumbnail {
    width: 120px;
    height: 120px;
  } */

  .trending-post {
    padding-right: 24px;
    border-right: 1px solid #fff1eb15;
  }

  .trending-posts,
  .trending-podcast-posts {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .trending-podcast-post {
    margin-left: 24px;
    border-left: 1px solid #fff1eb15;
  }

  .sidebar-small-title {
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 115%; /* 19.55px */
    letter-spacing: 0.51px;
    width: 109%;
  }

  .section-header,
  .podcast-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* padding-bottom: 48px; */
  }

  .section-post {
    display: flex;
    max-width: 294px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 20px; */
  }

  .post-thumbnail {
    width: 100%;
    height: 189.371px;
    align-self: stretch;
    aspect-ratio: 294/189.37;
    object-fit: cover;
  }

  .ai-africa-section .section-posts {
    margin-top: 48px;
  }

  .post-subtitle p {
    color: #fff;
    font-family: "Eudoxus Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 20px */
    text-transform: capitalize;
    opacity: 0.5;
  }

  .grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
  }

  .podcast-posts {
    grid-template-columns: repeat(4, 1fr);
  }

  .featured-title {
    font-size: 2.875rem;
  }

  .podcast-section-header,
  .section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .section-title,
  .section-podcast-title {
    font-size: 2.5rem;
  }

  .section-podcast-title {
    width: 375.855px;
    border-right: 1px solid #fff1eb15;
  }

  .cta-banner {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
  }

  .cta-image {
    width: 278.589px;
    height: 342.267px;
    position: absolute;
    top: -78px;
    left: 0px;
  }

  .cta-title {
    font-size: 3.5rem;
    width: 801.344px;
  }

  .cta-text {
    text-align: center;
  }

  .trending-controls {
    margin-bottom: 48px;
  }
}
