/*=======Common Styles=======*/
:root {
  --font-family:"Reddit Sans",serif;
  --font-size:16px;
  --font-weight:400;
  --font-color:#212121;
  --primary-color:#6b21a8;
  --primary-color-light:#6b21a854;
  --secondary-color:#be185d;
  --secondary-color-light:#be185d5c;
  --light-color:#ffffff;
}

body.profile-page{background-color:var(--secondary-color-light);}

h1,h2,h3,h4,h5,h6,p,span,a{font-family:var(--font-family);}
a,i,span{display:inline-block;}
a{text-decoration:none;color:var(--primary-color);font-weight:600;}

h1{font-size:4rem;font-weight:800;color:var(--secondary-color);}
h2{font-size:3rem;font-weight:600;color:var(--secondary-color);}
h3{font-size:2rem;font-weight:600;color:var(--secondary-color);}
h4{font-size:1.5rem;font-weight:500;color:var(--secondary-color);}
h5{font-size:1.25rem;font-weight:500;color:var(--secondary-color);}
h6{font-size:1rem;font-weight:500;color:var(--secondary-color);text-transform:uppercase;}

p{font-size:var(--font-size);font-weight:var(--font-weight);line-height:26px;}

.hide-on-mobile{display:block;}
.show-on-mobile{display:none!important;}

.section{padding:70px 0;}

/* ============================================
   YOUR ORIGINAL BUTTONS - PRESERVED
   ============================================ */
:root {
  --btn-primary-color: #7c3aed;
  --btn-primary-color-dark: #6d28d9;
  --btn-primary-color-light: #8b5cf6;
  --btn-primary-soft: rgba(124, 58, 237, 0.1);
  --btn-border-radius: 12px;
  --btn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --btn-shadow-soft: 0 4px 14px rgba(124, 58, 237, 0.25);
  --btn-shadow-hover: 0 8px 24px rgba(124, 58, 237, 0.35);
}

/* ================================
   BUTTON RESET / BASE
   Modern, clean foundation
================================== */
.btn,
.cta-btn,
.search-submit,
.hero-btn,
.explore-xp-btn,
.feature-card button,
.feature-card .btn,
.featured-cta {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: var(--btn-border-radius);
  border: none;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  color: #ffffff !important;
  background-color: var(--btn-primary-color);
  box-shadow: var(--btn-shadow-soft);
  transition: var(--btn-transition);
  position: relative;
  overflow: hidden;
}

/* Modern hover with better contrast */
.btn:hover,
.cta-btn:hover,
.search-submit:hover,
.hero-btn:hover,
.explore-xp-btn:hover,
.featured-cta:hover {
  background-color: var(--btn-primary-color-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

/* Active/pressed state for tactile feedback */
.btn:active,
.cta-btn:active,
.search-submit:active,
.hero-btn:active,
.explore-xp-btn:active,
.featured-cta:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* Focus states for accessibility */
.btn:focus,
.cta-btn:focus,
.search-submit:focus,
.hero-btn:focus,
.explore-xp-btn:focus,
.featured-cta:focus {
  outline: 3px solid rgba(124, 58, 237, 0.4);
  outline-offset: 2px;
}

/* ================================
   SIZE VARIANTS
================================== */

/* Small buttons - clean and compact */
.btn-small,
.btn.btn-sm,
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 10px;
  font-weight: 600;
}

/* Large buttons - hero CTAs */
.btn-lg,
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 14px;
  font-weight: 600;
}

/* ================================
   PRIMARY BUTTONS
   Solid, bold, main actions
================================== */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  border: none;
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  box-shadow: var(--btn-shadow-hover);
}

/* Primary Small - White with Purple (Ghost Style) */
.btn-primary.btn-small,
.btn-primary.btn-sm {
  background: #ffffff !important;
  border: 2px solid var(--btn-primary-color) !important;
  color: var(--btn-primary-color-dark) !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
  font-weight: 600;
}

.btn-primary.btn-small:hover,
.btn-primary.btn-sm:hover {
  background: var(--btn-primary-color) !important;
  border-color: var(--btn-primary-color-dark) !important;
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-hover);
}

/* ================================
   CTA BUTTONS - Premium Hero Actions
================================== */
.cta-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: none;
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
  font-weight: 600;
}

.cta-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5);
}

/* ================================
   SECONDARY CTA - Glass Morphism
================================== */
.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
}

/* ================================
   LIGHT / GHOST BUTTONS
   Subtle, modern outline style
================================== */
.btn-light {
  background-color: #ffffff !important;
  border: 2px solid var(--btn-primary-color) !important;
  color: var(--btn-primary-color-dark) !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
  font-weight: 600;
}

.btn-light:hover {
  background-color: var(--btn-primary-color) !important;
  border-color: var(--btn-primary-color-dark) !important;
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-hover);
}

/* ================================
   OUTLINE BUTTONS
   Modern bordered style
================================== */
.btn-outline {
  background: transparent;
  border: 2px solid var(--btn-primary-color);
  color: var(--btn-primary-color) !important;
  box-shadow: none;
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--btn-primary-color);
  border-color: var(--btn-primary-color-dark);
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-soft);
}

/* ================================
   HERO SPLIT BUTTONS
   Premium split panel CTAs
================================== */
.hero-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  border-radius: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5);
}

/* Volunteer variant */
.hero-btn.volunteer-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.hero-btn.volunteer-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  box-shadow: 0 12px 36px rgba(168, 85, 247, 0.5);
}

/* Company variant */
.hero-btn.company-btn {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
}

.hero-btn.company-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  box-shadow: 0 12px 36px rgba(91, 33, 182, 0.5) !important;
  color: #ffffff !important;
}

/* ================================
   SEARCH SUBMIT BUTTON
   Modern search pill with shine effect
================================== */
.search-submit {
  position: relative;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  border: none;
  overflow: hidden;
  font-weight: 600;
  box-shadow: var(--btn-shadow-soft);
}

.search-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.search-submit:hover::before {
  transform: translateX(100%);
}

.search-submit:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  box-shadow: var(--btn-shadow-hover);
}

/* ================================
   EXPLORE XP BUTTON
   Special animated button for XP section
================================== */
.explore-xp-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
  position: relative;
}

.explore-xp-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.explore-xp-btn:hover::after {
  opacity: 1;
}

.explore-xp-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(168, 85, 247, 0.5);
}

/* ================================
   FEATURED CTA
   Card action buttons
================================== */
.featured-cta {
  background: transparent;
  border: 2px solid var(--btn-primary-color);
  color: var(--btn-primary-color) !important;
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 10px;
  box-shadow: none;
  font-weight: 600;
}

.featured-cta:hover {
  background: var(--btn-primary-color);
  border-color: var(--btn-primary-color-dark);
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-soft);
}

/* ================================
   DISABLED STATE
   All buttons when disabled
================================== */
.btn:disabled,
.btn.disabled,
.cta-btn:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ================================
   ICON BUTTONS
   Buttons with icons only
================================== */
.btn-icon {
  padding: 0.75rem;
  aspect-ratio: 1;
  border-radius: 10px;
}

.btn-icon.btn-sm {
  padding: 0.5rem;
  border-radius: 8px;
}

/* ================================
   TAG CHIPS (Popular tags in search)
   .tag – still “button-like”
================================== */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(129, 140, 248, 0.8);
  color: #e5e7eb !important;
  font-size: 0.75rem;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: var(--btn-transition);
}

.tag-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.tag-text {
  position: relative;
  z-index: 1;
}

.tag:hover .tag-bg {
  opacity: 1;
}

.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.7);
}

/* ================================
   FEATURED CARD CTA
   .featured-cta
================================== */
.featured-cta {
  margin-top: 1.25rem;
  align-self: flex-start;
  background: transparent;
  border-radius: 999px;
  padding-inline: 1.4rem;
  padding-block: 0.55rem;
  border: 1px solid rgba(196, 181, 253, 0.9);
  color: #ffffff !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.featured-cta i {
  font-size: 0.9rem;
}

.featured-cta:hover {
  background: rgba(124, 58, 237, 0.85);
  border-color: transparent;
  transform: translateY(-1px);
}

/* ================================
   UTILITY: FULL-WIDTH MOBILE BUTTONS
================================== */
@media (max-width: 576px) {
  .btn,
  .cta-btn,
  .hero-btn,
  .search-submit,
  .explore-xp-btn,
  .featured-cta {
    width: 100%;
  }

  .hero-cta,
  .hero-content .hero-cta,
  .mobile-hero-carousel .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}


/* ============================================
   YOUR HEADER STYLES - PRESERVED
   ============================================ */

#site-header {
  background: none;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1000; /* Increase from 10 to 1000 */
}




#site-logo {
  width: 180px;
  height: 55px;
}

@keyframes fixedhead {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(0px); }
}

#site-header.on-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  animation: 0.9s fixedhead;
  transition: animation 0.3s ease-in-out;
  z-index: 10000; /* This is good */
}

.navbar-expand-md .navbar-nav .nav-link {
  color: var(--light-color);
}

.navbar-nav .nav-link.link-btn {
  padding: 10px 20px;
  background-color: var(--light-color);
  color: var(--primary-color);
  border-radius: 100px;
  margin: 0 3px;
}

.navbar-nav .btn-light {
  border-radius: 100px;
}

.navbar-nav .btn-light:hover {
  color: #ffffff !important;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffcc00;
  color: #1A1A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-transform: uppercase;
}

.avatar-initials {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.navbar-nav .nav-icon {
  margin-right: 1rem;
}

#site-header .container-fluid {
  width: 100% !important;
  flex: 0 0 100%;
}

#logo img {
  width: 80%;
  margin: 10px 0;
}

.main-menu li {
  display: inline-block;
  list-style: none;
}

.main-menu li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--light-color);
}

.main-menu li a i {
  margin: 0 0 0 5px;
}

.main-menu li a:hover {
  opacity: 0.7;
  color: var(--light-color);
}

.main-menu li:last-child a {
  opacity: 1;
  color: var(--primary-color);
}

.nav-item .btn {
  background-color: var(--light-color);
  color: var(--primary-color) !important;
}

.nav-item .btn:hover {
  color: var(--light-color) !important;
}

.nav-item form .btn:hover {
  background-color: var(--primary-color);
  color: var(--light-color) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,.8);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/*----Header Styles-----*/



#site-logo{width:180px;height:55px;}

@keyframes fixedhead{
  0%{transform:translateY(-100px);}
  100%{transform:translateY(0);}
}

#site-header.on-scroll{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:var(--primary-color);
  animation:.9s fixedhead;
  z-index:10000;
}

.navbar-expand-md .navbar-nav .nav-link{color:var(--light-color);}
.navbar-nav .nav-link.link-btn{
  padding:10px 20px;
  background-color:var(--light-color);
  color:var(--primary-color);
  border-radius:100px;
  margin:0 3px;
}

.navbar-nav .btn-light{border-radius:100px;}
.navbar-nav .btn-light:hover{color:#fff!important;}

.nav-icon{
  width:40px;
  height:40px;
  border-radius:50%;
  background-color:#ffcc00;
  color:#1A1A2E;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  text-transform:uppercase;
}

.avatar-initials{
  font-size:.875rem;
  font-weight:700;
  color:var(--primary-color);
  line-height:1;
}

.navbar-nav .nav-icon{margin-right:1rem;}

#site-header .container-fluid{width:100%!important;flex:0 0 100%;}

#logo img{width:80%;margin:10px 0;}

.main-menu li{display:inline-block;list-style:none;}
.main-menu li a{font-size:16px;font-weight:400;color:var(--light-color);}
.main-menu li a i{margin-left:5px;}
.main-menu li a:hover{opacity:.7;color:var(--light-color);}
.main-menu li:last-child a{opacity:1;color:var(--primary-color);}

.nav-item .btn{background-color:var(--light-color);color:var(--primary-color)!important;}
.nav-item .btn:hover{color:var(--light-color)!important;}
.nav-item form .btn:hover{background-color:var(--primary-color);color:var(--light-color)!important;}


/* Dropdown */
.navbar .dropdown-menu {
  background: rgba(107, 33, 168, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  z-index: 10001 !important; /* Higher than header */
  position: absolute;
}

.navbar .dropdown-menu .dropdown-item{
  color:#fff!important;
  font-weight:500;
}
.navbar .dropdown-menu .dropdown-item:hover{
  background:linear-gradient(to right,var(--primary-color),var(--secondary-color));
  color:#fff!important;
}

/* Mobile navbar collapse glassmorphism */
@media (max-width:991px){
  .navbar-collapse{
    background:linear-gradient(135deg,rgba(107,33,168,0.85),rgba(190,24,93,0.85))!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
    border-radius:16px;
    margin-top:15px;
    padding:20px;
    box-shadow:0 8px 32px rgba(0,0,0,0.3);
    border:1px solid rgba(255,255,255,0.18);
    
  }
  
  .navbar-collapse.show,
  .navbar-collapse.collapsing{
    background:linear-gradient(135deg,rgba(107,33,168,0.85),rgba(190,24,93,0.85))!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
  }
  
  .navbar-nav{
    gap:8px;
  }
  
  .navbar-nav .nav-link{
    padding:12px 15px!important;
    border-radius:10px;
    transition:all 0.3s;
  }
  
  .navbar-nav .nav-link:hover{
    background:rgba(255,255,255,0.15);
  }
  
  .navbar-nav .btn-primary{
    background:rgba(255,255,255,1)!important;
    color:var(--primary-color)!important;
    font-weight:700;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
    border:none!important;
    width:100%;
    padding:12px 20px!important;
  }
  
  .navbar-nav .btn-primary:hover{
    background:rgba(255,255,255,0.9)!important;
    transform:translateY(-2px);
  }
  /*----Added styles by Sohail----*/
  .top-bar .container,
  .navbar .container{
    max-width: 100%;
    flex: 0 0 100%;
  }
  .navbar-nav li{
    width: 100%;
  }
}



#site-footer {
  padding: 0;
  background: var(--primary-color);
  background-size: cover;
}
.site-footer{
  background: #6a1bb7; /* your purple */
}

.footer-logo{
  max-width: 160px;
  width: 100%;
  height: auto;
}

.footer-text{
  opacity: 0.92;
  line-height: 1.55;
  font-size: 0.95rem;
  max-width: 38ch;
}

.footer-title{
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links li{
  margin-bottom: 8px;
}

.footer-links a{
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-links a:hover{
  opacity: 1;
  transform: translateX(2px);
}

.footer-social a{
  font-size: 1.1rem;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-social a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0.85;
}

@media (max-width: 768px){
  .footer-text{ max-width: 100%; }
  .footer-links{ text-align: center; }
  #site-footer h4{ text-align: center; }
}
/* Footer section titles */
#site-footer h4,
#site-footer h5 {
  color: #ffffff !important;
}

.social-section a {
  transition: all 0.3s;
}

.social-section a:hover {
  transform: scale(0.8);
}



/* Pagination, tabs, tables */

.pagination li .page-link,
#myTab .nav-link {
  color: var(--primary-color) !important;
}

#myTab .nav-link.active,
.pagination li.active > .page-link,
.page-link.active {
  background-color: var(--primary-color);
  color: var(--secondary-color-light) !important;
  border: none;
}

.dataTables_wrapper thead .datatable-column-filter-row th input {
  height: 36px;
  border-radius: 5px;
  border: 1px solid var(--primary-color-light);
}

.table > :not(caption) > * > * {
  background-color: transparent;
}

.dataTables_wrapper thead tr {
  padding: 10px;
  background-color: var(--primary-color-light);
}

table .btn-small {
  float: left;
  color: var(--primary-color);
  background: none !important;
  padding: 0;
  border: none;
  margin: 0 2px;
}

table .btn-small:hover {
  color: var(--secondary-color);
}

table .btn-small i {
  font-size: 20px;
}

table.table-bordered.dataTable,
table.dataTable {
  font-size: 14px;
  line-height: 18px;
}




.slick-next,
.slick-prev {
  transform: translate(0,0);
  top: -50px;
}

.slick-next:before,
.slick-prev:before {
  opacity: 1;
}

.slick-prev {
  left: unset;
  right: 40px;
}

.slick-next {
  right: 0;
}

.slick-arrow:before {
  color: var(--primary-color);
  font-size: 30px;
}

/* Mobile nav link colours */
#navbarNav ul li a.nav-link {
  color: var(--light-color);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


.floating-logo {
  position: fixed;
  top: 55px;
  left: 28%;
  transform: translateX(-50%);
  z-index: 1055;

  display: flex;
  align-items: center;
}

.floating-logo img {
  height: 60px;
  width: auto;
}










.navbar-toggler{
  position: relative;
  border: none;
  box-shadow: none !important;
}

/* Burger */
.navbar-toggler-icon{
  transition: opacity .25s ease, transform .25s ease;
}

/* V icon */
#navVIcon{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) scale(.75);
  opacity: 0;
  display: block;
  pointer-events: none;
  z-index: 3;
  transition: opacity .25s ease, transform .25s ease;
}

/* When open */
.navbar-toggler.is-open .navbar-toggler-icon{
  opacity: 0;
  transform: scale(.75);
}

.navbar-toggler.is-open #navVIcon{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}







.user-chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px !important;
}

/* Solid white circle */
.user-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #ffffff !important;

  display: grid;
  place-items: center;

  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Gradient text INSIDE the circle */
.user-initials{
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;

  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.user-chip:hover .user-avatar{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}


@media (max-width: 991px){

  /* Make dropdowns lay out INSIDE the collapsed panel */
  .navbar .dropdown{
    width: 100%;
  }

  /* Stop Bootstrap from absolutely positioning the menu */
  .navbar .dropdown-menu{
    position: static !important;
    transform: none !important;
    inset: auto !important;
    float: none !important;

    width: 100%;
    margin-top: 10px;
    padding: 10px;

    border-radius: 14px;
    z-index: 1 !important; /* not needed when static, but keeps it sane */
  }

  /* Make the toggle row full-width and consistent */
  .navbar .dropdown-toggle.user-chip{
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px !important;
    border-radius: 12px;
  }

  /* Dropdown items: full width, nicer tap targets */
  .navbar .dropdown-menu .dropdown-item{
    padding: 12px 12px;
    border-radius: 10px;
  }

  .navbar .dropdown-menu .dropdown-item:active{
    background: rgba(255,255,255,0.15);
  }
}







/* ===== Light sweep effect ===== */
.user-avatar{
  position: relative;
  overflow: hidden; /* contain the sweep */
}

/* Sweep layer */
.user-avatar::after{
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;

  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.85) 50%,
    transparent 60%
  );

  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
}

/* Triggered animation */
.user-avatar.sweep::after{
  animation: avatarSweep 0.55s ease-out forwards;
}

@keyframes avatarSweep{
  0%{
    left: -150%;
    opacity: 0;
  }
  20%{
    opacity: 1;
  }
  100%{
    left: 150%;
    opacity: 0;
  }
}

@media (max-width: 991px) {
  #site-header .top-bar .container > .d-flex.gap-3 {
    display: none !important;
  }
}









/* Navigation Link Hover Underline Effects - Desktop Only */
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
  }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--light-color);
    transition: width 0.3s ease;
  }

  .navbar-nav .nav-link:hover::after {
    width: 80%;
  }

  /* Don't apply underline to button-style links and user avatar */
  .navbar-nav .btn::after,
  .navbar-nav .user-chip::after {
    display: none !important;
  }

  /* Main menu links (if you have them) */
  .main-menu li a {
    position: relative;
    padding-bottom: 5px;
  }

  .main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--light-color);
    transition: width 0.3s ease;
  }

  .main-menu li a:hover::after {
    width: 80%;
  }

  /* Don't apply to last child (button) */
  .main-menu li:last-child a::after {
    display: none;
  }
}
