/* PLACE YOU CUSTOM STYLES IN THIS FILE */


/*------------------------------------------------------------------

  Base - common css

 -------------------------------------------------------------------*/

/* Transparent Boxes*/
.bg-dark-trans {
  background-color: rgba(35, 41, 48, 0.79);
}

/*Upload bar */
.progress {
  height: 20px;
  margin-top: 20px;
}

.progress-bar {
  background-color: #4caf50;
  height: 100%;
  width: 0;
  text-align: center;
  color: white;
}


/*------------------------------------------------------------------

  Videos - home, user_videos & videos page css

 -------------------------------------------------------------------*/
video {
  width: 100%;
  border-radius: 12px; /* Makes the corners round */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Soft outer glow */
  overflow: hidden; /* Ensures inner content doesn't overflow the rounded corners */
  display: block; /* Avoid inline spacing issues */
}

.video-item {
  background-color: #232930;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  flex: 1 1 calc(25% - 20px);
  /* 4 items per row with 20px gap */
  max-width: calc(25% - 20px);
  margin-bottom: 20px;
}

.video-item:hover {
  transform: translateY(-5px);
}

.video-title {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.video-thumbnail img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.rounded-circle {
  border-radius: 50%;
}

@media (max-width: 992px) {
  .video-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .video-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Transparent Box Home*/
.bg-dark-trans-home {
  background-color: rgba(35, 41, 48, 0.33);
}

/* ===============================
   Videos Top Bar — Full Styles
   =============================== */

/* Layout row that holds category + search + results count */
/* The row container must not clip */
.search-bar-row{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: visible;
}

/* Holder anchors the field; create a stacking context */
.yt-search-holder{ position: relative; width: 100%; max-width: 680px; isolation: isolate; }

/* Capsule shell */
.yt-search-wrap{
  position: relative; /* needed for the select caret overlay */
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid #2b2b2b;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.yt-search-wrap:focus-within{
  border-color: #3a3a3a;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.03) inset;
}

/* Field contents */
.yt-search-input{
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: #e6e6e6;
  font-size: 15px;
  min-height: 40px;
  line-height: 1.2;
}
input.yt-search-input{ caret-color: #e6e6e6; }

/* Right segment button for the SEARCH field */
.yt-search-btn{
  width: 56px;
  border: none;
  outline: none;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease;
}
.yt-search-btn:hover{ background:#2a2a2a; }

/* ——— Category SELECT that looks like the capsule ——— */
.yt-select-wrap{ position: relative; }
select.yt-search-input{
  appearance: none; -webkit-appearance:none; -moz-appearance:none;
  cursor: pointer;
  width: 100%;                /* covers the whole capsule, incl. arrow area */
  padding-right: 56px;        /* leave room for the caret segment */
}

/* Decorative caret segment (sits on top-right, click passes to select underneath) */
.yt-select-caret{
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:#222;
  border-left: 1px solid #2b2b2b;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  pointer-events: none;       /* clicks go to the select */
}

/* Dark options list (Chromium/Firefox/Edge) */
select.yt-search-input option,
select.yt-search-input optgroup{
  background:#111;
  color:#e6e6e6;
}
select.yt-search-input option:hover,
select.yt-search-input option:focus,
select.yt-search-input option:checked{
  background:#1a1a1a;
  color:#fff;
}

/* Suggestions dropdown base (used when not portaled) */
.suggest-box{
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 4000;
  width: 100%;
  background: #111;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* When portaled to <body>, force it above everything */
.suggest-portal{
  position: fixed !important;
  z-index: 2147483647 !important; /* max out */
}

/* Suggestion rows */
.suggest-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #e6e6e6;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.suggest-item:hover,
.suggest-item.active{ background:#1a1a1a; }
.suggest-item .badge{
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background:#2b2b2b;
  color:#bbb;
}

/* Scrollbar (subtle dark) */
.suggest-box::-webkit-scrollbar{ width: 10px; }
.suggest-box::-webkit-scrollbar-thumb{ background:#2b2b2b; border-radius:10px; border:2px solid #111; }
.suggest-box::-webkit-scrollbar-track{ background:#111; }

/* Closed custom select looks like the input capsule */
.yt-select-display{
  display:flex; align-items:center; width:100%;
  border-radius:24px; background:#111; border:1px solid #2b2b2b;
  padding:0; text-align:left; transition:border-color 120ms ease, box-shadow 120ms ease;
}
.yt-select-display:focus{ outline:none; }
.yt-select-display:focus-visible,
.yt-select-display[aria-expanded="true"]{
  border-color:#3a3a3a; box-shadow:0 0 0 2px rgba(255,255,255,0.03) inset;
}
.yt-select-label{ flex:1; padding:10px 14px; color:#e6e6e6; font-size:15px; line-height:1.2; }
.yt-select-caret{
  width:56px; height:100%; display:flex; align-items:center; justify-content:center;
  background:#222; border-left:1px solid #2b2b2b; border-top-right-radius:24px; border-bottom-right-radius:24px;
  pointer-events:none;
}

/* Menu styled like suggestions panel with rounded corners */
.yt-select-menu{
  position:absolute; left:0; top:calc(100% + 6px); z-index:4000; width:100%;
  background:#111; border:1px solid #2b2b2b; border-radius:14px;
  box-shadow:0 12px 24px rgba(0,0,0,0.4);
  max-height:320px; overflow-y:auto; overflow-x:hidden;
}
/* when portaled to <body> */
.yt-select-portal{ position:fixed !important; z-index:2147483647 !important; }

.yt-select-item{
  padding:10px 14px; color:#e6e6e6; cursor:pointer; user-select:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.yt-select-item[aria-selected="true"]{ background:#1a1a1a; color:#fff; }
.yt-select-item:hover{ background:#1a1a1a; }

/* Keep the row from clipping */
.search-bar-row{ overflow:visible; }

@media (max-width: 992px){
  .yt-search-holder{ max-width: 100%; }
}
@media (max-width: 768px){
  .search-bar-row{ gap: 10px; }
  .yt-search-holder, .yt-search-wrap, .suggest-box{ max-width: 100%; }
}

/*------------------------------------------------------------------

  profile - profile_header, profile css

 -------------------------------------------------------------------*/

/* Profile_header and Image */
.profile-header {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: auto;
}

.profile-banner {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0; /* Round only the top corners of the banner */
}

.profile-picture {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid transparent;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Profile info box */
.profile-info {
  text-align: center;
  background-color: rgba(35, 41, 48, 0.7);
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto; /* Remove any extra margins */
  padding: 70px 10px 10px; /* Adjust top padding to remove gap */
  z-index: 1;
  border-radius: 0 0 10px 10px; /* Round only the bottom corners of the info section */
  border-bottom: 2px solid rgba(35, 41, 48, 0.9);
  border-left: 2px solid rgba(35, 41, 48, 0.9);
  border-right: 2px solid rgba(35, 41, 48, 0.9);
  border-top: none;
}

.profile-info h2,
.profile-info h4 {
  margin: 5px 0;
}

.profile-info h4 {
  color: #dd163b;
}

/* Team box */
.team-logo {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

.team-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Profile menu scoped styling */
.profile-menu {
  background-color: rgba(211, 211, 211, 0); /* Dark background for contrast */
  border-radius: 8px;
  padding: 10px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Navbar links */
.profile-menu .navbar-nav .nav-link {
  color: #ffffff !important;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hover state */
.profile-menu .navbar-nav .nav-link:hover,
.profile-menu .navbar-nav .nav-link:focus {
  color: #168add !important;
  background-color: rgba(211, 211, 211, 0.01);
  border-radius: 6px;
  transform: scale(1.05); /* Optional hover effect for a dynamic feel */
}

/* Active link */
.profile-menu .navbar-nav .nav-item.active .nav-link {
  color: #168add !important;
  font-weight: 600;
}

/* Dropdown menu */
.profile-menu .dropdown-menu {
  background-color: rgba(35, 41, 48, 0.969);
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.969);
}

.profile-menu .dropdown-item {
  color: #fff !important;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 500;

  transition: background-color 0.3s ease, color 0.3s ease;
}

.profile-menu .dropdown-item:hover {
  color: #168add !important;
  background-color: rgba(211, 211, 211, 0.01);
  border-radius: 6px;
  transform: scale(1.05); /* Optional hover effect for a dynamic feel */
}

/* Active dropdown item */
.profile-menu .dropdown-item.active {
  color: #168add !important;
  font-weight: 600;
  background-color: transparent; /* Optional: keep background consistent */
}

/*Steam Games Profile */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  background: #4e585f;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  max-height: 90vh; /* Set max height for the overlay */
  overflow: hidden;
}

.game-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-height: 500px; /* Max height for game gallery */
  overflow-y: auto; /* Makes the gallery scrollable */
}

.game-image {
  width: 30%; /* Adjust width to fit three games per row */
  margin-bottom: 10px; /* Space between rows */
}

.game-image img {
  width: 100%; /* Make images responsive */
  height: auto; /* Maintain aspect ratio */
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.birthday-notification {
  margin: 16px auto;
  max-width: 720px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  border-radius: 10px;
  animation: birthdayPop 0.6s ease;
}

@keyframes birthdayPop {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/*------------------------------------------------------------------

  status On/Offline - profile_header, profile, members & team css

 -------------------------------------------------------------------*/

 /* Profile header */
.status-indicator {
  position: absolute;
  bottom: 105px; /* Adjust as necessary */
  right: 230px; /* Adjust as necessary */
  width: 15px; /* Size of the circle */
  height: 15px; /* Size of the circle */
  border-radius: 50%; /* Makes the circle */
}
 
.profile-picture.online {
  border-color: #4caf50;
  box-shadow: 0 0 20px rgba(255, 251, 0, 0.5); /* Green glow effect */
}

.profile-picture.offline {
  border-color: #f44336;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); /* Green glow effect */
  background-color: rgb(102, 102, 102); /* Red for offline */
}

/* Members & Teams */

.user-avatar {
  border: 3px solid transparent;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.user-avatar.online {
  border-color: #4caf50;
  box-shadow: 0 0 20px rgba(255, 251, 0, 0.5); /* Green glow effect */
}

.user-avatar.offline {
  border-color: #f44336;
  background-color: rgb(102, 102, 102); /* Red for offline */
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); /* Red glow effect */
}

/*------------------------------------------------------------------

  members - css

 -------------------------------------------------------------------*/

.sort-form {
  margin-bottom: 20px;
}

.sort-form select {
  padding: 5px 10px;
  font-size: 16px;
}

.sort-form label {
  margin-right: 10px;
  font-weight: bold;
  color: white;
}

/* 🎂 Birthday badge for members */
/* Make the avatar container a positioning context */
.nk-feature-1 .nk-feature-icon {
  position: relative;
}

/* Birthday badge pinned to the avatar’s top-left corner */
.bday-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 2;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff4081;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,64,129,0.7), 0 0 20px rgba(255,64,129,0.5);
  animation: bdayPulse 1.5s infinite;
}

@keyframes bdayPulse {
  0%   { box-shadow: 0 0 5px rgba(255,64,129,.8), 0 0 15px rgba(255,64,129,.6); }
  50%  { box-shadow: 0 0 15px rgba(255,64,129,1), 0 0 30px rgba(255,64,129,.8); }
  100% { box-shadow: 0 0 5px rgba(255,64,129,.8), 0 0 15px rgba(255,64,129,.6); }
}

/* If your avatar size changes on mobile, keep the badge readable */
@media (max-width: 576px) {
  .bday-badge {
    top: -4px;
    left: -4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/*------------------------------------------------------------------

  Register - css

 -------------------------------------------------------------------*/

 /* Password hide */
.input-group-text a {
  color: inherit;
  text-decoration: none;
}

/* Container for the password strength indicator */
.pwindicator {
  position: relative;
  height: 6px; /* Reduced height for a thinner bar */
  background-color: #4e585f; /* Light gray background */
  margin-top: 5px;
  border-radius: 3px; /* Slightly rounded corners */
  overflow: hidden; /* Ensure the bar stays inside */
}

/* The actual strength bar */
.pwindicator .bar {
  height: 100%;
  width: 0%; /* Initial width (will be changed dynamically) */
  background-color: #ff0000; /* Default red color for weak password */
  transition: width 0.3s ease; /* Smooth transition for width change */
}

/* The label inside the indicator (positioned below the bar) */
.pwindicator .label {
  position: absolute;
  top: 100%; /* Position below the bar */
  left: 50%;
  transform: translateX(-50%); /* Center the text horizontally */
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  margin-top: 5px; /* Add some space between the bar and the label */
  pointer-events: none; /* Prevent label from blocking interaction */
}

/* Password strength levels */
.pwindicator.weak .bar {
  background-color: #ff0000; /* Red for weak */
}

.pwindicator.medium .bar {
  background-color: #ff9900; /* Orange for medium strength */
}

.pwindicator.strong .bar {
  background-color: #33cc33; /* Green for strong */
}

/*------------------------------------------------------------------

  Teams - css

 -------------------------------------------------------------------*/

/* Team name length */
.team-name-ellipsis {
  display: inline-block;
  max-width: 200px; /* Adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/*------------------------------------------------------------------

  Galleries - css

 -------------------------------------------------------------------*/

/* Galleries - Equal spacing */
.row.equal-spacing {
  margin-left: -15px;
  margin-right: -15px;
}
.equal-spacing > .col-md-4 {
  padding: 15px;
}

/* Footer Nav */
.footer-nav {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/*------------------------------------------------------------------

  Footer - css

 -------------------------------------------------------------------*/

.footer-nav li > a:hover,
.footer-nav li > a.hover {
  color: rgb(169, 169, 169);
}

.footer-nav li > a {
  font-weight: 600;
  -webkit-transition: 0.15s color;
  -o-transition: 0.15s color;
  transition: 0.15s color;
  display: block;
  text-transform: uppercase;
}

.footer-nav > li {
  position: relative;
  display: block;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 1px; /* <-- Add this line for spacing */
  font-family: "Montserrat", sans-serif;
  font-size: 1.07rem;
  color: #fff;
  -webkit-transition: 0.3s background-color;
  -o-transition: 0.3s background-color;
  transition: 0.3s background-color;
  z-index: 1000;
  will-change: background-color;
}

.footer-nav > li:last-child {
  margin-bottom: 0; /* optional: remove margin from last item */
}

/*------------------------------------------------------------------

  Like/Dislike - videos & articles css

 -------------------------------------------------------------------*/

/* Like Dislike Thumbs*/
.like-dislike-icons i {
  color: transparent;
  -webkit-text-stroke: 1.5px white;
  cursor: pointer;
  transition: 0.2s ease;
}
.like-dislike-icons i.liked {
  color: white;
  -webkit-text-stroke: 0;
}
.like-dislike-icons i.disliked {
  color: white;
  -webkit-text-stroke: 0;
}

/*------------------------------------------------------------------

  Comments - videos & articles css

 -------------------------------------------------------------------*/

/* Comments */
.edit-info {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.nk-comment:hover .edit-info {
  opacity: 1;
}

/*------------------------------------------------------------------

  Admin - css

 -------------------------------------------------------------------*/

/* Enable_Disable */
.form-control,
.form-check-input,
.btn,
.table {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.btn {
  width: auto;
  padding: 6px 12px;
}

.alert {
  padding: 10px;
  background-color: #d9edf7;
  border: 1px solid #bce8f1;
  margin-top: 10px;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.btn-danger {
  background-color: #d9534f;
  color: #fff;
  border: none;
}

.btn-success {
  background-color: #5cb85c;
  color: #fff;
  border: none;
}

.btn-primary {
  background-color: #0275d8;
  color: #fff;
  border: none;
}

.form-check-label {
  margin-left: 5px;
}

/* Bootstrap Toggle Style */
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Adnib sidebar Menu */
.list-group {
  background-color: #232930;
  /* Set menu background color */
}

.list-group-item-action {
  color: white;
  /* Default text color */
}

.list-group-item-action:hover {
  background-color: #a9a9a9;
  /* Light grey on hover */
  color: black;
  /* Change text color to black on hover */
}

.active {
  background-color: rgb(43, 43, 43);
  /* Grey background for active items */
  color: white;
  /* Ensure text is white for active items */
}

/* Ensure the default state of the menu items has a consistent background and text color */
.list-group-item-action:not(.active) {
  background-color: #232930;
  /* Background color for inactive items */
  color: white;
  /* Text color for inactive items */
}

/* New styles for the welcome message */
.sidebar-separator-title {
  background-color: #303e47;
  /* Set background color for welcome message */
  color: white;
  /* Set text color for welcome message */
}

.list-group-item-action.active {
  background-color: #303e47;
  /* Grey background for active items */
  color: #168add;
  /* Change text color to the desired color */
}

.big-icon {
  font-size: 128px; /* or any size you want */
}

/*------------------------------------------------------------------

  Bootstrap 5 form-switch styling for Bootstrap 4

 -------------------------------------------------------------------*/

/* Bootstrap 5 Switch Style on Bootstrap 4 */
.form-switch {
  padding-left: 2.5em;
  position: relative;
}

.form-switch .form-check-input[type="checkbox"] {
  width: 2em;
  height: 1em;
  margin-left: -2.5em;
  background-color: #dee2e6;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 2em;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0.1em;
  width: 0.8em;
  height: 0.8em;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-switch .form-check-input:checked::before {
  transform: translateX(1em);
}

/*------------------------------------------------------------------

  Image carousel - homepage

 -------------------------------------------------------------------*/

/* Ensure the slider itself has a fixed height */
#imageSlider {
    max-width: 100%;
    height: 500px; /* Change this to your preferred height */
    overflow: hidden;
    position: relative;
}

/* Make all images fill the carousel size and be centered */
#imageSlider .carousel-item img {
    width: 100%;
    height: 500px; /* Same height as #imageSlider */
    object-fit: cover; /* Ensures images cover the area without distortion */
    object-position: center;
}

/* Optional: Keep carousel caption readable */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 15px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #imageSlider,
    #imageSlider .carousel-item img {
        height: 300px;
    }
}

/*------------------------------------------------------------------

  Latest Members - homepage

 -------------------------------------------------------------------*/

.sv-new-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 blocks per row */
  gap: 10px;
}

.sv-member-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.05); /* matches the grey squares */
  aspect-ratio: 1 / 1; /* perfect square */
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sv-member-block:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.sv-member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.sv-member-username {
  font-size: 0.85rem;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.sv-new-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sv-member-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.05);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sv-member-block:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.sv-member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.sv-member-username {
  font-size: 0.85rem;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

/*------------------------------------------------------------------

  Latest News Widget - homepage

 -------------------------------------------------------------------*/

/* --- Latest News Widget (scoped, conflict-safe) --- */
.news-widget {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
}

/* Local design tokens (scoped via CSS vars on the container) */
.news-widget {
  --panel: #111826;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
}

/* Left column */
.news-widget .news-list {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  padding: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.news-widget .news-list-header {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px 10px;
}
.news-widget .news-list-header h2{
  margin:0; font-size: 14px; letter-spacing:.2em; text-transform: uppercase; color: var(--muted);
}

.news-widget .scroll-area {
  overflow-y: auto; overflow-x: hidden; padding-right: 6px; 
  scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent;
}
.news-widget .scroll-area::-webkit-scrollbar{ width: 10px; }
.news-widget .scroll-area::-webkit-scrollbar-track{ background: transparent; }
.news-widget .scroll-area::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(148,163,184,.4), rgba(148,163,184,.15)); border-radius: 10px;
}

.news-widget .news-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  align-items: center;
  padding: 10px;
  margin: 6px 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .3s ease, border-color .3s ease;
}
.news-widget .news-item:hover{ transform: translateY(-1px); border-color: rgba(99,102,241,.4); }
.news-widget .news-item[aria-selected="true"]{
  background: linear-gradient(180deg, rgba(56,189,248,.12), rgba(56,189,248,.03));
  border-color: rgba(99,102,241,.55);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.35), 0 8px 20px rgba(17,24,39,.45);
}

.news-widget .thumb { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; background: #0b1220; }
.news-widget .meta { min-width: 0; }
.news-widget .title { font-weight: 800; font-size: 15px; letter-spacing:.02em; color: #dbeafe; text-transform: uppercase; }
.news-widget .excerpt { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-widget .date { display:flex; align-items:center; gap:8px; color: #a3b2c6; font-size: 13px; margin-top: 6px; }
.news-widget .date svg{ opacity:.7 }

/* Right column */
.news-widget .news-detail {
  position: relative;
  background: radial-gradient(80% 80% at 65% 10%, rgba(99,102,241,.16), transparent 60%), var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: clip;
  display: grid;
  grid-template-rows: 1fr auto;
}

.news-widget .hero { position: relative; display: grid; min-height: 0; }
.news-widget .hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.news-widget .hero::after{ content: ""; position: absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6) 90%); }

.news-widget .category {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #00111a; font-weight: 800; letter-spacing:.08em; text-transform: uppercase; font-size: 13px;
  padding: 6px 10px; border-radius: 10px; box-shadow: 0 6px 18px rgba(34,211,238,.25);
}

.news-widget .hero-content { position: absolute; inset: auto 0 0 0; padding: 18px; z-index:2; }
.news-widget .hero-title { font-size: 28px; line-height: 1.1; margin: 0 0 6px 0; font-weight: 900; letter-spacing:.02em; }
.news-widget .hero-excerpt { color: #c9d8e8; font-size: 16px; margin: 0 0 14px 0; }

.news-widget .hero-actions { display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.news-widget .button {
  display:inline-flex; align-items:center; gap:10px; 
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  color: inherit; text-decoration: none; font-weight: 700; letter-spacing:.03em;
  padding: 10px 14px; border-radius: 12px; transition: transform .15s ease, box-shadow .2s ease, border .2s ease;
}
.news-widget .button:hover{ transform: translateY(-1px); border-color: rgba(99,102,241,.55); box-shadow: 0 8px 20px rgba(17,24,39,.4); }

.news-widget .detail-footer{ display:flex; align-items:center; gap:8px; color: #bfd1e6; font-size:14px; }

/* Animations (scoped) */
.news-widget .fade-in { opacity: 0; transform: translateY(8px); }
.news-widget .fade-in.is-visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

.news-widget .reveal { animation: news-reveal .45s cubic-bezier(.2,.65,.2,1) both; }
@keyframes news-reveal {
  from { clip-path: inset(0 0 100% 0); opacity:.5 }
  to   { clip-path: inset(0 0 0 0);   opacity:1 }
}

/* Responsive (mobile) */
@media (max-width: 900px){
  /* Stack the columns and let the page scroll naturally */
  .news-widget{
    grid-template-columns: 1fr;
    height: auto;
    gap: 18px;
  }

  /* Stop inner scroll on phones so the page can scroll to the hero */
  .news-widget .news-list{
    overflow: visible;
  }
  .news-widget .scroll-area{
    overflow: visible;         /* remove inner scroller */
    max-height: none;
    padding-right: 0;
  }

  /* HERO CARD — look like your screenshot */
  .news-widget .news-detail{
    min-height: 560px;         /* tall hero so text+button are visible */
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(80% 80% at 65% 10%, rgba(99,102,241,.16), transparent 60%), var(--panel);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
  }

  .news-widget .hero{
    height: 100%;
  }
  .news-widget .hero img{
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .news-widget .hero::after{
    /* slightly longer gradient so bottom overlay has contrast */
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.68) 95%);
  }

  .news-widget .category{
    top: 16px;
    right: 16px;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 13px;
  }

  .news-widget .hero-content{
    padding: 22px;             /* larger padding like the screenshot */
  }
  .news-widget .hero-title{
    font-size: 30px;
    line-height: 1.1;
    margin: 0 0 8px 0;
  }
  .news-widget .hero-excerpt{
    font-size: 16px;
    color: #d7e3f1;
    margin: 0 0 16px 0;
    display: block;
  }
  .news-widget .hero-actions{
    gap: 14px;
    flex-wrap: wrap;
  }
  .news-widget .button{
    font-size: 16px;
    padding: 12px 18px;
    border-radius: 14px;
  }
  .news-widget .detail-footer{
    font-size: 15px;
  }

  /* Slightly roomier list items on mobile */
  .news-widget .news-item{
    margin: 10px 6px;
    padding: 12px;
  }
}

/* Make scrollIntoView land below your sticky header (tweak 72px if needed) */
#hero { scroll-margin-top: 72px; }

/* Mobile: remove inner scroll so the PAGE can scroll to the hero */
@media (max-width: 900px){
  .news-widget{
    grid-template-columns: 1fr;
    height: auto;
    gap: 18px;
  }
  .news-widget .news-list{ overflow: visible; }
  .news-widget .scroll-area{
    overflow: visible;      /* was auto */
    max-height: none;       /* remove desktop cap */
    padding-right: 0;       /* no gutter on phones */
  }
  .news-widget .news-detail{
    min-height: 560px;      /* ensure title/excerpt/button are visible */
    border-radius: 18px;
    overflow: hidden;
  }
}





