/* assets/css/style.css — Rwanda Hills (Black / White / Orange) */

:root {
  --rh-black:  #000000;
  --rh-white:  #ffffff;
  --rh-orange: #F94D00;
  --rh-gray:   #6c757d;
  --rh-lightgray: #f4f4f4;

  /* legacy aliases kept so nothing else breaks */
  --rh-navy: var(--rh-black);
  --rh-blue: var(--rh-orange);
  --rh-teal: var(--rh-orange);
  --rh-gold: var(--rh-orange);
  --rh-sage: var(--rh-lightgray);
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #1a1a1a;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .fw-bold { font-family: 'Montserrat', sans-serif; }

a { color: var(--rh-orange); }
a:hover { color: #cc3e00; }

/* ── Logo ── */
.rh-logo { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.5px; text-decoration: none; }
.rh-logo .rh-l1 { color: var(--rh-orange); }
.rh-logo .rh-l2 { color: var(--rh-white); }

/* ── Navbar ── */
.navbar.rh-navbar { background: var(--rh-black) !important; }
.navbar-nav .nav-link { font-weight: 500; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--rh-orange) !important; }
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:focus { color: var(--rh-orange) !important; }

/* Kill Bootstrap's default blue/yellow focus rings site-wide, use brand orange */
a:focus, .btn:focus, .btn:active:focus, .form-control:focus, .nav-link:focus {
  outline-color: var(--rh-orange) !important;
  box-shadow: 0 0 0 0.2rem rgba(249,77,0,.25) !important;
}
.dropdown-item:active, .dropdown-item.active { background-color: var(--rh-orange) !important; color: #fff !important; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--rh-orange) !important; }
.page-link { color: var(--rh-orange); }
.page-item.active .page-link { background-color: var(--rh-orange); border-color: var(--rh-orange); }

/* ── Hero / Chart box ── */
.chart-hero {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  border: 2px solid var(--rh-orange);
}

.position-number { font-size: 1.2rem; font-weight: 700; color: #555; }
.top-three { color: var(--rh-orange); font-size: 1.4rem; }

.thumb-placeholder {
  width: 44px; height: 44px; background: #eee;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* ── Trending Cards ── */
.trending-card { transition: transform 0.15s; border-top: 3px solid var(--rh-orange) !important; }
.trending-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important; }
.trending-rank {
  width: 36px; height: 36px; background: var(--rh-orange); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.trending-growth { color: #1a8a3d; font-weight: 600; }
.trending-mini-player { width: 96px; height: 64px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.trending-mini-player iframe { width: 100%; height: 100%; border: 0; }

/* ── Playlist / Artist Cards ── */
.playlist-card { transition: transform 0.15s; cursor: pointer; }
.playlist-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important; }
.active-playlist { border: 2px solid var(--rh-orange) !important; }
.artist-card { transition: transform 0.15s; }
.artist-card:hover { transform: translateY(-2px); }
.artist-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rh-orange), #000);
  color: #fff; font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Category badges ── */
.badge-category { background: var(--rh-black); color: #fff; font-weight: 600; text-decoration: none; }
.badge-category.is-news { background: var(--rh-orange); }

/* ── News / Entertainment cards ── */
.news-section-title {
  border-left: 4px solid var(--rh-orange);
  padding-left: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rh-black);
}
.news-card { transition: transform 0.15s; height: 100%; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important; }
.news-card img { object-fit: cover; object-position: center top; height: 230px; width: 100%; }
.news-card .card-body { display: flex; flex-direction: column; }
.news-card h6 { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.news-card .news-meta { font-size: 0.8rem; color: #6c757d; }

/* ── Compact list-style posts (design variety) ── */
.rh-list-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #eee; text-decoration: none; }
.rh-list-item:last-child { border-bottom: none; }
.rh-list-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.rh-list-item-placeholder { width: 84px; height: 84px; border-radius: 6px; background: #eee; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rh-list-item .fw-semibold { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.rh-list-group { border-top: 1px solid #eee; }

.rh-related-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.rh-related-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.rh-related-item .fw-semibold { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }

/* ── Single post ── */
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.post-content p { line-height: 1.8; margin-bottom: 1.1rem; }
.post-featured-wrap { position: relative; width: 100%; max-height: 640px; min-height: 320px; border-radius: 10px; overflow: hidden; background: #111; }
.post-featured-wrap .post-featured-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(25px) brightness(0.55); transform: scale(1.15); }
.post-featured-img { position: relative; z-index: 1; display: block; width: 100%; max-height: 640px; object-fit: contain; margin: 0 auto; }

.post-extra-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 1.5rem 0; }
.post-extra-images figure { margin: 0; cursor: zoom-in; }
.post-extra-images img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; transition: opacity .15s; }
.post-extra-images img:hover { opacity: 0.85; }
.post-extra-images figcaption { font-size: 0.8rem; color: var(--rh-gray); margin-top: 6px; }

.rh-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px;
}
.rh-lightbox.open { display: flex; }
.rh-lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 6px; }
.rh-lightbox figcaption { color: #fff; margin-top: 12px; text-align: center; max-width: 80vw; }
.rh-lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }

.share-btn { border-radius: 50px; font-weight: 600; }
.share-btn.share-x { background: #000; color: #fff; }
.share-btn.share-facebook { background: #1877f2; color: #fff; }
.share-btn.share-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }

/* ── Comments ── */
.comment-item { border-bottom: 1px solid #e9ecef; padding: 12px 0; }
.comment-item:last-child { border-bottom: none; }

/* ── Ad banners ── */
.ad-slot { display: flex; justify-content: center; align-items: center; margin: 1.25rem auto; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 4px; }
.ad-banner1 { max-width: 1400px; }
.ad-banner2 { max-width: 650px; }
.ad-banner3 { max-width: 300px; margin-top: -17px; }
.ad-label { font-size: 0.65rem; text-transform: uppercase; color: #adb5bd; text-align: center; letter-spacing: 1px; margin-bottom: 2px; }
.ad-row .ad-slot { margin: 0; }
.ad-row img { max-width: 100%; height: auto; display: block; }
.ad-row a { display: inline-block; max-width: 100%; }

@media (max-width: 767px) {
  /* banners now stay visible on mobile — they already scale down responsively */
}

/* ── Trending short videos grid (4 columns) ── */
.rh-video-embed { width: 100%; aspect-ratio: 9/16; overflow: hidden; border-radius: 8px; background: #000; }
.rh-video-embed iframe, .rh-video-embed blockquote { width: 100%; height: 100%; border: 0; }
.rh-quote-card { border-top: 3px solid var(--rh-orange) !important; }

/* ── Featured partners strip (top of footer) ── */
.rh-partners-strip { background: #f4f4f4; border-top: 1px solid #e5e5e5; padding: 16px 0; }
.rh-partners-track { position: relative; min-height: 60px; }
.rh-partners-page {
  display: none; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 10px;
  opacity: 0; transition: opacity .5s ease;
}
.rh-partners-page.active { display: grid; opacity: 1; }
@media (min-width: 576px) { .rh-partners-page { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .rh-partners-page { grid-template-columns: repeat(8, 1fr); gap: 8px; } }
.rh-partner-logo { display: flex; align-items: center; justify-content: center; height: 56px; filter: grayscale(40%); transition: filter .15s; }
.rh-partner-logo:hover { filter: grayscale(0%); }
.rh-partner-logo img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* ── Homepage News hero video (CNN-style, bigger, custom controls) ── */
.rh-hero-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.rh-hero-video-wrap iframe { width: 100%; height: 100%; border: 0; }
.rh-hero-mute-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.rh-hero-mute-btn:hover { background: var(--rh-orange); }


/* ── Horizontal carousels (artists / radios / entertainers) ── */
.rh-carousel { position: relative; }
.rh-carousel-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding: 6px 2px 14px; -ms-overflow-style: none; scrollbar-width: none;
}
.rh-carousel-track::-webkit-scrollbar { display: none; }
.rh-carousel-arrow {
  position: absolute; top: 65px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ddd;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 1rem; transition: all .15s;
}
.rh-carousel-arrow:hover { background: var(--rh-orange); color: #fff; border-color: var(--rh-orange); transform: scale(1.08); }
.rh-carousel-arrow.prev { left: -18px; }
.rh-carousel-arrow.next { right: -18px; }

.rh-avatar-fallback {
  background: linear-gradient(135deg, var(--rh-orange), #000); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.8rem;
  width: 100%; aspect-ratio: 1/1;
}

.rh-artist-card { flex: 0 0 160px; scroll-snap-align: start; text-align: center; cursor: pointer; text-decoration: none; color: inherit; }
.rh-artist-card img, .rh-artist-card .rh-avatar-fallback {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.rh-artist-card .rh-avatar-fallback {
  background: linear-gradient(135deg, var(--rh-orange), #000); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 2.1rem;
}
.rh-artist-card .rh-card-name { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.2px; }

.rh-radio-card { flex: 0 0 160px; scroll-snap-align: start; text-align: center; text-decoration: none; color: inherit; }
.rh-radio-card img, .rh-radio-card .rh-avatar-fallback {
  width: 140px; height: 140px; border-radius: 12px; object-fit: cover; margin: 0 auto 12px; display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.rh-radio-card .rh-avatar-fallback {
  background: linear-gradient(135deg, var(--rh-orange), #000); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 2.1rem; border-radius: 12px;
}
.rh-radio-card .rh-card-name { font-size: 0.92rem; font-weight: 600; }

/* ── Albums ── */
.rh-album-card { text-decoration: none; color: inherit; display: block; }
.rh-album-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.rh-album-card .rh-card-name { font-size: 0.85rem; font-weight: 600; margin-top: 8px; }
.rh-album-card .text-muted { font-size: 0.78rem; }

.rh-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rh-view-all-btn { font-size: 0.8rem; font-weight: 600; color: var(--rh-orange); text-decoration: none; white-space: nowrap; }
.rh-view-all-btn:hover { text-decoration: underline; }

/* ── Spotify-style dark hub (Artists page) ── */
body.rh-dark-page { background: var(--rh-black); }
.rh-dark-page-container .ad-label { color: #888; }
.rh-dark-page-container .ad-slot > div,
.rh-hub-dark .ad-slot > div {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px;
}
.rh-hub-dark { background: var(--rh-black); min-height: 60vh; }
.rh-hub-title { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0; }
.rh-hub-dark .rh-section-header { margin-top: 8px; }
.rh-hub-dark .rh-card-sub { color: #9a9a9a; font-size: 0.75rem; }
.rh-hub-dark .rh-carousel-arrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.rh-hub-dark .rh-carousel-arrow:hover { background: var(--rh-orange); border-color: var(--rh-orange); }
.rh-hub-dark .rh-artist-card:hover .rh-card-name,
.rh-hub-dark .rh-album-card:hover .rh-card-name,
.rh-hub-dark .rh-radio-card:hover .rh-card-name { color: var(--rh-orange) !important; }

/* ── Album audio player ── */
.rh-audio-play-trigger { cursor: pointer; }
.rh-audio-play-trigger.rh-audio-active { background: #fff7f2; }

.rh-audio-bar {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  background: #fff; color: #1a1a1a; padding: 10px 14px; border-radius: 12px;
  display: none; align-items: center; gap: 10px; width: 320px; max-width: calc(100vw - 40px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22); border: 1px solid #eee;
}
.rh-audio-bar.show { display: flex; }
.rh-audio-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #eee; }
.rh-audio-thumb:not([src]), .rh-audio-thumb[src=""] { display: none; }
.rh-audio-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--rh-orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.rh-audio-close {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: #f1f1f1; color: #555;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0;
}
.rh-audio-close:hover { background: #e5e5e5; }
.rh-audio-resume {
  border: none; background: var(--rh-orange); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 6px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 480px) { .rh-audio-bar { right: 10px; bottom: 10px; width: calc(100vw - 20px); } }

.rh-audio-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex-shrink: 0; }
.rh-audio-wave span { width: 3px; background: var(--rh-orange); height: 4px; border-radius: 2px; transition: height .15s; }
.rh-audio-wave.playing span { animation: rhWave 1s ease-in-out infinite; }
.rh-audio-wave.playing span:nth-child(1) { animation-delay: 0s; }
.rh-audio-wave.playing span:nth-child(2) { animation-delay: .15s; }
.rh-audio-wave.playing span:nth-child(3) { animation-delay: .3s; }
.rh-audio-wave.playing span:nth-child(4) { animation-delay: .45s; }
.rh-audio-wave.playing span:nth-child(5) { animation-delay: .6s; }
@keyframes rhWave {
  0%, 100% { height: 4px; } 
  50% { height: 20px; }
}

/* ── Footer ── */
footer.rh-footer { background: var(--rh-black) !important; }
footer.rh-footer a { color: #ddd; text-decoration: none; }
footer.rh-footer a:hover { color: var(--rh-orange); }
footer.rh-footer h6 { color: var(--rh-orange); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 14px; }
.rh-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff !important; margin: 0 4px 0 0;
  transition: background 0.15s;
}
.rh-social a:hover { background: var(--rh-orange); }

/* new style */
.rh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
  padding: 4px 0;
   /* margin-right: 20px; */
}

.rh-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transform: scale(2.8);
  transform-origin: left center;
}

/* Hide the old text but keep it for SEO/screen readers */
.rh-logo .rh-l1,
.rh-logo .rh-l2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.rh-navbar {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}


/*  */
.rh-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
}

.rh-footer-logo img {
  height: 64px;              
  width: auto;
  object-fit: contain;
  display: block;
  transform: scale(2.2);     
  transform-origin: left center;
}

.rh-footer-logo .rh-l1,
.rh-footer-logo .rh-l2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}