/* ===========================
   YBJ Premium Desktop Navbar
=========================== */

.ybj-navbar{
    border-top:1px solid #ececec;
    border-bottom:1px solid #ececec;
}

/* Menu Layout */
.ybj-desktop-nav{
    align-items:center;
}

/* Menu Links */
.ybj-desktop-nav .nav-link{
    color:#222 !important;
    font-weight:600;
    padding:14px 28px !important;
    position:relative;
    transition:all .25s ease;
}

/* Vertical Divider */
.ybj-desktop-nav .nav-item:not(:last-child){
    border-right:1px solid #ececec;
}

/* Hover */
.ybj-desktop-nav .nav-link:hover{
    color:#0d6efd !important;
}

/* Blue Underline Animation */
.ybj-desktop-nav .nav-link::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:3px;
    background:#0d6efd;
    transition:.25s ease;
    display: none;
}

.ybj-desktop-nav .nav-link:hover::after{
    width:100%;
}

/* Dropdown */

.ybj-desktop-nav .dropdown-menu{
    min-width:260px;
    border-radius:12px;
    margin-top:0;
}

.ybj-desktop-nav .dropdown-item{
    padding:10px 16px;
    font-weight:500;
}

.ybj-desktop-nav .dropdown-item:hover{
    background:#f8f9fa;
    color:#0d6efd;
}

/* ===========================
   Search Box
=========================== */

.ybj-search-form{
    width:260px;
}

.ybj-search-input{
    height:46px;
    border-radius:30px;
    padding-right:55px;
    border:1px solid #d8d8d8;
    box-shadow:none !important;
}

.ybj-search-input:focus{
    border-color:#0d6efd;
}

.ybj-search-btn{
    position:absolute;
    right:5px;
    top:5px;
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

/* 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;
}

.ybj-share-rail{
    position:fixed;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    z-index:999;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.ybj-share-rail a,
.ybj-share-rail button{
    width:48px;
    height:48px;
    border:none;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ffffff;
    box-shadow:0 4px 15px rgba(0,0,0,.15);
    color:#111827;
    text-decoration:none;
    transition:.3s;
}

.ybj-share-rail a:hover,
.ybj-share-rail button:hover{
    transform:translateY(-3px);
}

.ybj-mobile-share{
    position:fixed;
    right:20px;
    bottom:120px;
    z-index:999;
}

.ybj-mobile-share-btn{
    width:56px;
    height:56px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:2px solid #f4c542;
    color:#111;
}

.ybj-mobile-share-menu{
    display:none;
    position:absolute;
    bottom:60px;
    left:50%;
    transform:translateX(-50%);
    width:220px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    overflow:hidden;
}

.ybj-mobile-share-menu.show{
    display:block;
}

.ybj-mobile-share-menu a,
.ybj-mobile-share-menu button{
    width:100%;
    padding:12px 15px;
    border:none;
    background:none;
    text-align:left;
    display:block;
    text-decoration:none;
    color:#111827;
}

#ybjCopyToast{
    position:fixed;
    bottom:90px;
    left:50%;
    transform:translateX(-50%);
    background:#111827;
    color:#fff;
    padding:10px 18px;
    border-radius:999px;
    display:none;
    z-index:1001;
}

/* =========================================================
   YBJ Top Advertisement Rotation
   Step 2B - Cross Fade
   ========================================================= */

.ybj-top-ad-rotation {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/*
 * All ads occupy the same physical slot.
 * This prevents blank space and layout movement.
 */
.ybj-top-ad-item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease-in-out;
    z-index: 1;
}

.ybj-top-ad-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.ybj-top-ad-item img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * First/visible ad establishes the slot height.
 */
.ybj-top-ad-item:first-child {
    position: relative;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .ybj-top-ad-item {
        transition: none;
    }
}

   /* =========================================================
   YBJ GET FEATURED — Mobile / PWA Home CTA
   ========================================================= */
/* =========================================================
   YBJ GET FEATURED — Mobile / PWA Floating CTA
   ========================================================= */

.ybj-get-featured-float {
    position: fixed;
    right: 14px;
    bottom: 22px;
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 138px;
    padding: 12px 18px;

    background: #111827;
    color: #ffffff;

    border: 2px solid #f4c542;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .45px;
    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .22),
        0 0 0 3px rgba(244, 197, 66, .12);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.ybj-get-featured-float i {
    color: #f4c542;
    font-size: 14px;
}

.ybj-get-featured-float:hover,
.ybj-get-featured-float:focus {
    color: #ffffff;
    text-decoration: none;
    background: #1f2937;
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, .25),
        0 0 0 4px rgba(244, 197, 66, .15);
}

@media (min-width: 992px) {
    .ybj-get-featured-float {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ybj-get-featured-float {
        right: 14px;
        bottom: 18px;
        min-width: 142px;
        padding: 12px 17px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ybj-get-featured-float {
        transition: none;
    }
}
