/* Dropdown Menu */
    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-content {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      min-width: 160px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s;
      pointer-events: none;
      border-radius: 0.5rem;
    }

    .dropdown:hover .dropdown-content {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .dropdown-content a {
      color: #374151;
      padding: 0.5rem 1rem;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background: #f3f4f6;
    }

.recent-stories:hover {
  transform: scale(1.09);
  box-shadow: rgba(141, 177, 205, 0.618) 0px 30px 30px -25px;
}
.content {
    padding: 3rem 0;
}

.contact-wrap {
    -webkit-box-shadow: 0 0px 20px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0px 20px 0 rgba(0, 0, 0, 0.2);
}

.contact-wrap .contact-info {
    background: #35477d;
}

/* Suggestions dropdown styling */
#suggestions {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-top: none;
  background: #fff;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

/* When visible */
#suggestions.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#suggestions li {
  cursor: pointer;
}

#suggestions li:hover {
  background: #f8f9fa;
}

.suggestion-text{
  font-size: 12px;
  color: dimgray;
}

/* Search overlay */
.search-bar {
  display: none;
  position: fixed;
  top: 56px; /* height of navbar */
  left: 0;
  width: 100%;
  z-index: 1050;
}
.search-bar.active { display: block; }

#mobileSearch{
  background-color: #00aff0;
}

.navbg{
    background-color: #FFFFFF;
}

/* Professional media card: used in category blocks */
/* ============================
   YBJ — Premium Editorial Layout
   TechCrunch + Wired Hybrid
   ============================ */

/* SECTION HEADER (▌ ACCENT BAR) */
.ybj-section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ybj-section-title::before {
    content: "";
    width: 6px;
    height: 22px;
    background: #FFC107; /* YBJ Gold */
    border-radius: 3px;
    display: inline-block;
}

/* EDITORIAL CARD */
.ybj-editorial-card {
    display: flex;
    gap: 18px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 14px;
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.ybj-editorial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 22px rgba(0, 0, 0, 0.10);
}

/* IMAGE (40%) */
.ybj-editorial-img {
    width: 40%;
    min-height: 170px;
    max-height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.ybj-editorial-card:hover .ybj-editorial-img {
    transform: scale(1.05);
}

/* CONTENT (60%) */
.ybj-editorial-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ybj-editorial-title a {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    text-decoration: none;
}

.ybj-editorial-title a:hover {
    color: #111;
    text-decoration: underline;
}

.ybj-editorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e7e7e7;
    padding-top: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

/* META ICONS */
.ybj-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ybj-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
}

/* ICON SIZE */
.ybj-meta-item svg {
    width: 17px;
    height: 17px;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .ybj-editorial-card {
        flex-direction: column;
    }
    .ybj-editorial-img {
        width: 100%;
        height: 220px;
    }
    .ybj-editorial-content {
        width: 100%;
    }
}

/* -------------------------
   Mobile: carousel date pill + divider + categories menu
   ------------------------- */

/* Date pill appearing on mobile carousel card (bottom-left) */
.mobile-slide-date {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.62); /* dark translucent for contrast */
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 999px;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(6,12,20,0.12);
  z-index: 3;
}

/* Optional light variant if you prefer light pill on dark images */
/* .mobile-slide-date.light { background: rgba(255,255,255,0.92); color:#111; } */

/* visual divider between carousel and next section */
.ybj-mobile-divider {
  border-top: 1px solid #eef0f2;
  margin: 12px 0 18px;
  width:100%;
}

/* Mobile categories horizontal menu */
.ybj-mobile-cats {
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:10px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;  /* firefox */
}
.ybj-mobile-cats::-webkit-scrollbar { display:none; } /* chrome/safari hide */

.ybj-mobile-cat {
  flex: 0 0 auto;
  background: #fcca03;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #f0f2f4;
  font-weight:600;
  font-size:13px;
  color:#111;
  box-shadow: 0 4px 12px rgba(6,12,20,0.06);
  white-space:nowrap;
}

/* active cat highlight (gold) */
.ybj-mobile-cat.active {
  background: linear-gradient(90deg,#fff 0%, #fff 60%);
  border-color: #ffd54a;
  box-shadow: 0 6px 18px rgba(255,193,7,0.08);
  color:#111;
}

/* small screen padding so next section is visually spaced */
@media (max-width: 991px) {
  .ybj-section {
    padding-top: 14px;
    padding-bottom: 20px;
  }
}

/* Mobile magazine/app carousel + chips */
.ybj-mobile-carousel { padding: 4px 0; }
.ybj-mobile-carousel .ybj-mobile-slide { box-sizing: border-box; padding: 0 3px; scroll-snap-align: center; outline: none; }
.mobile-slide-image {
  width: 100%; height: 220px; border-radius: 12px; background-size: cover; background-position: center;
  box-shadow: 0 10px 24px rgba(6,12,20,0.12); overflow: hidden; position: relative;
}
.mobile-slide-image::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:55%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  border-bottom-left-radius:12px; border-bottom-right-radius:12px;
}
.mobile-slide-date {
  position:absolute; left:12px; bottom:12px; background:rgba(0,0,0,0.62); color:#fff;
  padding:6px 9px; font-size:12px; border-radius:999px; font-weight:600; z-index:3;
}
.mobile-slide-body { margin-top:10px; padding-left:6px; padding-right:6px; }
.mobile-slide-title { font-size:16px; line-height:1.25; font-weight:700; margin-top:0; color:#111;
  transform: translateY(-32px); margin-bottom: -22px; text-shadow: 0 3px 14px rgba(0,0,0,0.08);
}
.mobile-slide-excerpt { font-size:13px; color:#666; margin-top:6px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; }

/* Chips */
.ybj-mobile-cats { display:flex; gap:10px; overflow-x:auto; padding:10px 12px; -webkit-overflow-scrolling:touch; }
.ybj-mobile-cats::-webkit-scrollbar{ display:none; }
.ybj-mobile-cat {
  flex:0 0 auto; background:#fff; padding:8px 12px; border-radius:20px; border:1px solid #f0f2f4;
  font-weight:600; font-size:13px; color:#111; box-shadow: 0 4px 12px rgba(6,12,20,0.06); white-space:nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ybj-mobile-cat:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(6,12,20,0.12); }
.ybj-mobile-cat.active { border-color:#FFD54A; box-shadow: 0 6px 18px rgba(255,193,7,0.08); }

.ybj-mobile-divider { border-top:1px solid #eef0f2; margin:12px 0 18px; width:100%; }

/* small responsive tweaks */
@media (max-width:420px){
  .mobile-slide-image { height:200px; }
  .mobile-slide-title { font-size:15px; transform: translateY(-30px); margin-bottom:-24px; }
}

/* --- Fix empty vertical spaces in mobile UI --- */

.ybj-mobile-gradient {
background-image: linear-gradient(to top, #ebd197 0%, white 100%);
}

/* Bring title closer to image */
.mobile-slide-title {
  transform: translateY(-18px) !important;
  margin-bottom: -12px !important;
}

/* Tighten excerpt spacing */
.mobile-slide-excerpt {
  margin-top: 2px !important;
}

/* Reduce dots spacing */
.ybj-carousel-hint {
  margin-top: 4px !important;
}

/* Reduce divider spacing */
.ybj-mobile-divider {
  margin: 8px 0 10px !important;
}

/* Reduce space between slides */
.ybj-mobile-slide {
  padding: 0 6px !important;
}

