
/* ----------------------- CAROUSEL ------------------------ */
@font-face {
    font-family: Naroapp ;
    src: url(/assests/Naroapp-medium.ttf);
}
/* ================= DARK / LIGHT MODE TOGGLE ================= */
.theme-toggle {
    position: absolute;
    right: 460px; /* perfectly left of download box */
    top: 0;
    bottom: 0;
    margin: auto;
    width: 55px;
    height: 55px;
    border: 2px solid #9F00FF;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-size: 23px;
}
.theme-toggle {
    background-color: var(--card-bg);
}

.theme-toggle:hover {
    box-shadow: 0 0 15px #9F00FF;
    background-color: #9F00FF33;
}

.light-mode {
    --bg: #f1f1f1;
    --text: #000;
    --box: #ffffff;
}

.dark-mode {
    --bg: #141414;
    --text: #ffffff;
    --box: #1e1e1e;
}

/* Apply variables */
body {
    color: var(--text);
    transition: 0.4s;
}

.footer, .gn-feature-box {
    background: var(--box) !important;
}
/* Fix text not visible in light mode */
.light-mode * {
    color: #111111 !important;
}


.light-mode .content-one a {
    border-color: #9F00FF !important;
}

/* Fix dark boxes in light mode */
.light-mode .heading,
.light-mode .footer,
.light-mode .gn-feature-box,
.light-mode .stat-box {
    background: #ffffff !important;
}

/* Fix tab colors */
.light-mode .tab {
    background: #eee !important;
    color: #222 !important;
}

.light-mode .tab.active {
    background: #9F00FF !important;
    color: #fff !important;
}

/* Fix header text */
.light-mode .heading h4 {
    color: #111 !important;
}

/* Fix carousel overlay */
.light-mode .slide-content {
    background: #ffffff !important;
}

/* Fix footer text */
.light-mode .footer p,
.light-mode .footer a {
    color: #222 !important;
}

/* Always keep purple visible */
.tab.active,
.heading .dl,
.content-one a:hover,
.gn-feature-box:hover {
    color: #fff !important;
}
.popup-box {
    color: #ffffff !important;
}

.popup-box h3,
.popup-box p,
.popup-box li,
.popup-box .patchy {
    color: #ffffff !important;
}
.closePopup{
    color: #ffffff !important;
}
#gn-chat-fullscreen,
#gn-chat-fullscreen * {
    background: #0e0e0e !important;
    color: #ffffff !important;
}

#gn-chat-launcher,
#gn-chat-launcher * {
    background: #9F00FF !important;
    color: #ffffff !important;
}

* {
    box-sizing: border-box;
    font-family: Naroapp;
    color: aliceblue;
    font-weight: bolder;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: 0.3s;
    margin: 0;
    padding: 0;
}
/* ====== FLOATING PARTICLES BACKGROUND ====== */
/* Particles canvas container (full-bleed, behind everything) */
#gn-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 500vw !important;
    height: 500vh !important;
    pointer-events: none;
    z-index: 0 !important;
}
/* Optional: reduce intensity on small screens */
@media (max-width: 600px) {
  #gn-particles { opacity: 0.7; }
}

/* darker in dark mode, lighter in light mode */
body.dark-mode #gn-particles {
    opacity: 1;
}

body.light-mode #gn-particles {
    opacity: 1;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.footer {
    margin-top: auto;
}


::-webkit-scrollbar {
    display: none;
}

/* ----------------------- HEADER ------------------------ */

.heading {
    font-size: 25px;
    position: fixed;
    background-color: #141414de;
    backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-radius: 0px 0px 20px 20px;
    margin: auto;
    width: 96%;
    height: 120px;
    text-align: center;
    animation: scale-in-ver-top 0.5s;
}

.heading h4 {
    position: absolute;
    left: 16%;
    margin-top: 15px;
    font-size: 45px;
    font-weight: bolder;
    letter-spacing: 2px;
}

.heading h4::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -10px;
    background-color: #9F00FF;
    border-radius: 50px;
    width: 60%;
    height: 5px;
}

.heading .logo {
    width: 100px;
    position: absolute;
    left: 10%;
    top: 0px;
    bottom: 0;
    margin: auto;
    margin-top: -5px;
}
@media (min-width:1400px) {
    .heading .logo{
        margin-top:  5px !important; 
    }
}
.heading ul {
    position: absolute;
    left: 0 ;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heading li {
    display: inline-block;
    margin-right: 20px;
}

.heading li a {
    text-decoration: none;
    transition: 0.4s;
    font-size: 20px;
    letter-spacing: 1px;
}

.heading li a:hover {
    color: #e3f2fd;
    padding: 10px;
    background-color: #9F00FF;
    border-radius: 10px;
    color: white !important;
}

.heading .dl {
    position: absolute;
    right: 2%;
    text-decoration: none;
    background-color: #9F00FF;
    width: 300px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    top: 0;
    bottom: 0;
    margin: auto;
    transition: 0.4s;
}

.heading .dl:hover {
    box-shadow: 1px 1px 15px #9F00FF;
}

.heading .dl i {
    margin-right: 10px;
    color: #e3f2fd !important;
}

.heading .dl::before {
    content: "";
    background-color: #e3f2fd;
    position: absolute;
    width: 5px;
    border-radius: 50px;
    height: 100%;
    left: -25px;
}
.footer {
    background: #000000;
    padding: 40px 0;
    border-top: 2px solid #9F00FF55;
    margin-top: auto; /* THIS MAKES IT STICK AT THE BOTTOM ONLY AFTER SCROLL */
    margin-bottom: -100px;
    z-index: 9999 !important;
}

.footer-container {
    width: 85%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    width: 30%;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #9F00FF;
}

.footer p,
.footer a {
    font-size: 20px;
    line-height: 30px;
    color: #dcdcdc;
    text-decoration: none;
}

.footer a:hover {
    color: #9F00FF;
    text-shadow: 0 0 8px #9F00FF;
}

.footer-social {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 30px;
    transition: 0.3s;
    border: 1px solid #9F00FF;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-social a:hover {
    color: #9F00FF;
    background-color: #9F00FF;
    text-shadow: 0 0 15px #9F00FF;

    i{
        color: white !important;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #9F00FF33;
    font-size: 18px;
    color: #bfbfbf;
}

@media(max-width: 900px){
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
}

/* Prevent footer overlap using bottom padding */
body {
    padding-bottom: 100px;
}
@media(max-width: 900px){
    .fixed-footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .fixed-footer-links a {
        margin: 10px;
        display: inline-block;
    }
}
/* ===================== FULLSCREEN SEARCH ===================== */
/* SEARCH BUTTON */
.gn-search-btn {
    position: absolute;
    right: 390px;      /* left of download box */
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 55px;
    height: 55px;
    background: var(--search-btn-bg) !important;
    border: 2px solid #9F00FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    z-index: 10001;   /* must be above the header */
}

.gn-search-btn i {
    color: white;
}

.gn-search-btn:hover {
    background: #9F00FF33;
    box-shadow: 0 0 10px #9F00FF;
}

.gn-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.726);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding-top: 150px;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

/* Search bar wrapper */
.gn-search-wrapper {
    width: 60%;
    max-width: 650px;
    min-width: 300px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
    animation: zoomIn 0.25s ease;
}

/* Search Icon */
.search-icon {
    font-size: 22px;
    color: #ffffffdd  !important;
}

/* Search Input */
#gn-search-input {
    flex: 1;
    padding: 10px 5px;
    background: transparent;
    border: none;
    overflow: hidden;
    outline: none;
    font-size: 22px;
    color: white !important;
}

/* Placeholder */
#gn-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Close Button */
.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s;
}

.close-btn i {
    font-size: 20px;
    color: white;
}

.close-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}

/* Search results box */
.gn-search-results {
    margin-top: 25px;
    width: 60%;
    max-width: 650px;
}

/* Result item style */
.search-result-item {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 15px 22px;
    border-radius: 14px;
    color: white;
    margin-bottom: 12px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: 0.25s;
    font-size: 20px;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(6px);
}

/* Highlight matched text */
mark {
    background: #9F00FF;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}

/* No results */
.search-result-none {
    padding: 20px;
    color: white;
    text-align: center;
    font-size: 20px;
    opacity: 0.8;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
/* FORCE white card inside search overlay */
.gn-search-results .content-one {
    background: #ffffff !important;
    border: 2px solid #9F00FF !important;
    color: #000 !important;
}

/* Fix title text inside the card */
.gn-search-results .content-one h5 {
    color: #000 !important;
}

/* Fix download button */
.gn-search-results .content-one a {
    color: #000 !important;
    background: #fff !important;
    border: 2px solid #9F00FF !important;
}

.gn-search-results .content-one a:hover {
    background: #9F00FF !important;
    color: #fff !important;
}

/* Keep wrapper glass effect */
.search-card-wrapper {
    padding: 12px;
    border-radius: 18px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    transition: 0.2s;
}

.search-card-wrapper:hover {
    transform: scale(1.02);
}
.download-info {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #1c1c1c;
    border: 1px solid #9F00FF55;
    border-radius: 10px;
    color: #e3e3e3;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .5px;
    box-shadow: 0 0 10px #9F00FF44;
}

.light-mode .download-info {
    background: white !important;
    border-color: #9F00FF !important;
    color: #333 !important;
}
.light-mode .search-result-item {
    background: #ffffff !important;
    color: #111 !important;
}
/* Fix search icon not clickable */
#gn-search-btn {
    pointer-events: auto !important;
    z-index: 99999999 !important;
}

/* Prevent header glass from blocking clicks */
.heading {
    pointer-events: none;
}
.heading * {
    pointer-events: auto;
}
/* Search result items */
.search-result-item {
    background: white;
    color: black;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.search-result-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

.search-result-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.search-info h4 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: black;
}

.search-info p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.7;
}

/* No results */
.no-result {
    padding: 20px;
    background: white;
    color: black;
    text-align: center;
    border-radius: 12px;
}
/* Fix layout of cloned cards inside search overlay */
.gn-search-results .content-one {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: auto !important;
    padding: 25px !important;
    gap: 25px !important;
    position: relative !important;
}

/* Fix image */
.gn-search-results .content-one img {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    width: 110px !important;
    height: 110px !important;
    object-fit: contain !important;
}

/* Text container */
.gn-search-results .content-one .tet {
    position: relative !important;
    margin: 0 !important;
}

/* Title */
.gn-search-results .content-one .tet h5 {
    color: black !important;
    margin-bottom: 15px !important;
    font-size: 24px !important;
}

/* Download button */
.gn-search-results .content-one .tet a {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 200px !important;
    height: 55px !important;
    font-size: 18px !important;
}
@keyframes gnSearchFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Search result card layout fix + animation */
.gn-search-results .content-one {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: auto !important;
    padding: 25px !important;
    gap: 25px !important;
    position: relative !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 0 20px #9F00FF55 !important;
    transition: 0.3s ease !important;
    animation: gnSearchFadeIn 0.35s ease forwards !important;
}

/* Hover animation */
.gn-search-results .content-one:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 0 30px #9F00FFaa !important;
}
.gn-search-results .content-one img {
    position: relative !important;
    width: 110px !important;
    height: 110px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.gn-search-results .content-one .tet {
    position: relative !important;
    margin: 0 !important;
}

.gn-search-results .content-one .tet h5 {
    color: #111 !important;
    margin-bottom: 12px !important;
    font-size: 23px !important;
}

.gn-search-results .content-one .tet a {
    position: relative !important;
    bottom: 0 !important;
    width: 200px !important;
    height: 55px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 18px !important;
}
/* Allow page scroll inside overlay */
#gn-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    padding-top: 150px;

    overflow-y: auto !important; /* <-- ENABLE SCROLL */
    overflow-x: hidden;
}

/* Make results scrollable */
#gn-search-results {
    width: 60%;
    max-width: 650px;

    max-height: 70vh;            /* limit height */
    overflow-y: auto !important; /* <-- ENABLE SCROLL */
    padding-bottom: 50px;
}

/* Scrollbar styling (Firefox + Chrome) */
#gn-search-results::-webkit-scrollbar {
    width: 8px;
}
#gn-search-results::-webkit-scrollbar-thumb {
    background: #9F00FF;
    border-radius: 10px;
}
#gn-search-results::-webkit-scrollbar-track {
    background: transparent;
}

/* ========================= FLOATING PARTICLES ========================= */
/* ---------- SAFE MOBILE HEADER + HAMBURGER (MOBILE/TABLET ONLY) ---------- */

/* hide by default */
.gn-hamburger, #gn-mobile-nav { display: none; }

/* Mobile / Tablet */
@media (max-width: 1435px) {

  /* Only hide the desktop nav items that should move into the mobile menu */
  .heading ul,
  .heading h4,
  .heading .dl,    /* top download button */
  #gn-search-btn,
  .theme-toggle {
    display: none !important;
  }

  /* Keep logo centered */
  .heading .logo {
    left: 16px; /* keep original left offset for logo in your design, adjust if needed */
    top: 8px;
    width: 72px;
  }

  /* Hamburger button (fixed right) */
  .gn-hamburger {
    display: flex;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #141414;
    border: 2px solid #9F00FF;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  }

  .gn-ham-box { width: 28px; height: 20px; position: relative; }
  .gn-ham-inner, .gn-ham-inner::before, .gn-ham-inner::after {
    background: #fff;
    height: 3px;
    width: 28px;
    border-radius: 3px;
    position: absolute; left: 0;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s;
  }
  .gn-ham-inner { top:50%; transform: translateY(-50%); }
  .gn-ham-inner::before { content:""; top:-8px; }
  .gn-ham-inner::after  { content:""; top:8px; }

  .gn-hamburger.open .gn-ham-inner { transform: rotate(45deg); }
  .gn-hamburger.open .gn-ham-inner::before { opacity: 0; transform: translateX(-6px); }
  .gn-hamburger.open .gn-ham-inner::after { transform: rotate(-90deg); top:0; }

  /* Mobile nav overlay */
  #gn-mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 209000;
    pointer-events: none;
  }
  .gn-mobile-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.62);
    opacity: 0; transition: opacity .28s;
    pointer-events: none;
  }
  .gn-mobile-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(360px, 86%);
    background: linear-gradient(180deg, rgba(18,18,18,0.99), rgba(12,12,12,0.99));
    padding: 22px;
    transform: translateX(110%);
    transition: transform .33s cubic-bezier(.2,.9,.2,1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: auto;
    border-left: 1px solid rgba(159,0,255,0.06);
    box-shadow: -12px 0 40px rgba(0,0,0,0.6);
  }
  #gn-mobile-nav.open .gn-mobile-backdrop { opacity: 1; pointer-events: auto; }
  #gn-mobile-nav.open .gn-mobile-panel { transform: translateX(0); }

  /* Mobile menu elements */
  .gn-mobile-btn {
    display:flex;gap:12px;align-items:center;
    padding:12px;border-radius:12px;
    background: rgba(255,255,255,0.02);
    border: 2px solid rgba(159,0,255,0.08);
    color: #fff; font-size:16px;
  }

  .gn-mobile-links {
    list-style:none;padding:0;margin:6px 0; display:flex;flex-direction:column; gap:10px;
  }
  .gn-mobile-links a {
    display:block;padding:12px;border-radius:12px;
    background:#111;border:2px solid rgba(159,0,255,0.06);
    color:#fff;text-decoration:none;font-size:18px;
  }

  .gn-mobile-download {
    margin-top:auto;padding:14px;border-radius:12px;
    background: linear-gradient(90deg,#9F00FF,#B72BFF);
    color:white;text-align:center;font-weight:700;text-decoration:none;
    box-shadow: 0 8px 22px rgba(159,0,255,0.16);
  }

  /* keep everything responsive in very small screens */
  @media (max-width: 360px) {
    .gn-mobile-panel { width: 92%; }
    .gn-hamburger { right: 12px; width:48px; height:48px; }
  }
}

#gn-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 300vw;   /* wide area for smooth floating */
    height: 300vh;
    pointer-events: none;
    z-index: -1;    /* stays behind everything */
    opacity: 0.45;  /* default for dark mode */
}

/* Lighter effect in light mode */
.light-mode #gn-particles {
    opacity: 0.22;
}

/* Optional: smoother fade on theme change */
body {
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 1435px) {

  /* Hide desktop header elements */
  .heading ul,
  .heading h4,
  .heading .dl,
  #gn-search-btn,
  .theme-toggle {
    display: none !important;
  }

  /* Center logo */
  .heading .logo {
    left: 16px;
    top: 8px;
    width: 72px;
  }

  /* Show hamburger */
  .gn-hamburger {
    display: flex;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 210000;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #141414;
    border: 2px solid #9F00FF;
    align-items: center;
    justify-content: center;
  }

  /* … keep the rest of your mobile hamburger + menu css the same … */

}
@media (min-width: 1436px) {
  .gn-hamburger,
  #gn-mobile-nav {
    display: none !important;
  }

  /* All desktop header elements remain visible */
}
/* Prevent UL from colliding with icons on desktop */
@media (max-width: 1600px) {

    /* reduce nav font size */
    .heading ul li a {
       font-size: 20px;
    }

    /* shift logo left */
    .heading .logo {
        left: 35px !important;
        top: 10px !important;
        transform: none !important;

    }
    .heading h4{
        left: 170px;
    }
    /* give right-space so nav won't collide */
    .heading ul {
        padding-right: 140px !important;
    }
}
@media (min-width: 1601px) and (max-width: 1800px) {

    /* slightly shrink nav */
    .heading ul li a {
        font-size: 18px !important;
        
    }

    /* small shift of logo */
    .heading .logo {
        left: 50px !important;
        transform: none !important;
    }
    .heading h4{
        left: 170px;
    }
    /* moderate spacing for right icons */
    .heading ul {
        padding-right: 220px !important;
    }

}
/* brand container: logo + text aligned together */
.heading .brand {
    position: absolute;
    top: 10px;          /* adjust as needed */
    left: 20px;         /* logo hugs the left */
    display: flex;
    align-items: center;
    gap: 12px;          /* space between logo and text */
}

/* make logo normal inside flex */
.heading .brand .logo {
    position: static !important;
    transform: none !important;
    margin: 0;
}

/* make text align with logo */
.heading .brand h4 {
    position: static !important;
    margin: 0;
    font-size: 26px;     /* adjust to match your style */
    font-weight: 600;
}
/* ============================================================
   REAL LIGHT-MODE FIX (CURATED FOR YOUR VARIABLE SYSTEM)
   Fixes: search box, theme button, menu links, icons, backdrop.
   ============================================================ */

.light-mode #gn-mobile-nav .gn-mobile-panel {
    background: var(--box) !important;
    border-left: 1px solid rgba(0,0,0,0.15) !important;
}

.light-mode #gn-mobile-nav .gn-mobile-links a {
    background: var(--box) !important;
    color: var(--text) !important;
    border: 2px solid #9F00FF33 !important;
}

.light-mode #gn-mobile-nav .gn-mobile-links a:hover {
    background: #e9e9e9 !important;
}

.light-mode #gn-mobile-nav .gn-mobile-btn {
    background: var(--box) !important;
    color: var(--text) !important;
    border: 2px solid #9F00FF !important;
}

.light-mode #gn-mobile-nav .gn-mobile-btn i {
    color: var(--text) !important;
}

.light-mode .gn-hamburger {
    background: var(--box) !important;
    border-color: #9F00FF !important;
}

.light-mode .gn-hamburger .gn-ham-line,
.light-mode .gn-hamburger .gn-ham-line::before,
.light-mode .gn-hamburger .gn-ham-line::after {
    background: var(--text) !important;
}

.light-mode #gn-mobile-nav .gn-mobile-download {
    background: linear-gradient(90deg, #9F00FF, #B72BFF) !important;
    color: #fff !important;
}

.light-mode #gn-mobile-nav .gn-mobile-backdrop {
    background: rgba(0,0,0,0.40) !important;
}
/* ---------------- LIGHT MODE FIX: HAMBURGER ICON ---------------- */

.light-mode .gn-hamburger {
    background: var(--box) !important;
    border-color: #9F00FF !important;
}

/* Make lines black in light mode */
.light-mode .gn-ham-inner,
.light-mode .gn-ham-inner::before,
.light-mode .gn-ham-inner::after {
    background: #000 !important;
}
.gn-search-results .content-one {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 20px !important;
color: #111 !important;
    width: 100% !important;
    max-width: 360px !important;

    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 0 18px #9F00FF55 !important;

    margin: 14px auto !important;
}

.gn-search-results .content-one img {
    width: 75px !important;
    height: 75px !important;
    object-fit: contain !important;
}

.gn-search-results .content-one .tet h5 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    color: #111 !important;
}

.gn-search-results .content-one .tet a {
    width: 160px !important;
    height: 45px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    border-radius: 10px !important;
    font-size: 15px !important;
}
/* Move search bar slightly up inside mobile menu */
#gn-mobile-nav .gn-mobile-panel {
    padding-top: 14px !important; /* default is probably around 25px */
}
/* ================== SEARCH BAR FIXES ================== */

/* Move search bar slightly upward */

/* Keep search close button inside the bar */
.close-btn {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255,255,255,0.25) !important;
}

/* ==========================================
   FIX SEARCH RESULTS GETTING CUT OFF
   ========================================== */

/* Allow results to fully show */
#gn-search-overlay {
    overflow-y: auto !important;
}

/* Make results container full-width */
#gn-search-results {
    width: 100% !important;
    padding: 0 16px !important;
    overflow: visible !important;
}

/* Make search result cards responsive */
.gn-search-result-card {
    width: 100% !important;
    max-width: 360px !important; /* prevents stretching too wide */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Prevent clipping inside card container */
.gn-search-result-card * {
    overflow: visible !important;
}
/* --- FIX SEARCH RESULT TITLE DISAPPEARING UNDER 820px --- */
@media (max-width: 850px) {

    .search-result-item {
        align-items: center !important;
        min-height: 90px !important;
    }

    .search-result-item img {
        width: 55px !important;
        height: 55px !important;
        flex-shrink: 0 !important;
    }

    .search-info {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-height: 55px !important;
        padding-left: 10px !important;
        overflow: visible !important;
    }

    .search-info h4 {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 17px !important;
        display: block !important;
        color: var(--text-primary) !important;
    }

    .search-info p {
        margin-top: 3px !important;
        font-size: 13px !important;
        opacity: 0.8 !important;
        display: block !important;
        white-space: nowrap !important;
    }
} 
/* ----------------------------------------------
   DARK MODE: FIX WHITE SEARCH RESULT CARDS
---------------------------------------------- */

body.dark-mode .search-result-item {
    background: var(--gn-bg-alt, #1a1a1a) !important;
    /* Fallback if var missing => #1a1a1a */
    color: var(--gn-text, #fff) !important;
}

/* Make sure text stays readable */
body.dark-mode .search-result-item h4,
body.dark-mode .search-result-item p {
    color: var(--gn-text, #fff) !important;
    opacity: 1 !important;
}
.gn-search-bar {
    display: flex;
    align-items: center;
    overflow: hidden !important;
}

.gn-search-bar input {
    flex: 1 1 auto !important;        /* allow shrinking */
    min-width: 0 !important;          /* CRITICAL FIX */
    width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;          /* show "..." instead of overflow */
}

.gn-search-clear {
    flex-shrink: 0 !important;        /* prevent X button from shrinking */
    margin-left: 8px;
}
@media (max-width: 600px) {
    .footer {
        padding: 30px 0;
        margin-bottom: -150px !important;
        border-radius: 0;
        
    }

    .footer-container {
        width: 92%;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-col {
        width: 100% !important;
        min-width: unset;
        margin-bottom: 10px;
    }

    .footer h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .footer p,
    .footer a {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    .footer-social {
        justify-content: center;
        gap: 12px;
    }

    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .footer-bottom {
        font-size: 14px;
        margin-top: 10px;
        padding-top: 15px;
    }
}
/* =====================================================
   FINAL FIX: Prevent mobile search text overflowing
   (X button stays inside, input shrinks correctly)
===================================================== */

.gn-search-bar {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gn-search-bar input {
    flex: 1 1 auto !important;      /* allow shrinking */
    min-width: 0 !important;        /* CRITICAL */
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width:900px) {
    .heading{
        max-height: 85px !important;
    }
}
.search-result-item {
    background: white; /* Problematic default */
    color: black;
    /* ... */
}

/* From header.css/style.css: Dark Mode fix attempt */
body.dark-mode .search-result-item {
    background: var(--gn-bg-alt, #1a1a1a) !important;
    color: var(--gn-text, #fff) !important;
}