@media (max-width: 1024px) {

    .navbar .container {
        width: 100% !important;
        padding-left: 0 !important;  
        padding-right: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important; 
        box-sizing: border-box !important;  
    }

    .navbar .navbar-brand {
        font-size: 1.4rem !important;
        margin-left: 0 !important;
        flex-grow: 1; 
    }
    .hamburger-icon {
        font-size: 1.6rem !important;
        margin-left: 0 !important;
    }

}
 .section-banner {
      background: linear-gradient(90deg, #007bff, #009cfd);
        color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 10px !important;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            font-size: 0.9rem;
    }

    .section-banner .banner-title {
        font-size: 1.1rem; 
        font-weight: bold;
        display: flex;
        align-items: center;
    }

    .section-banner .banner-title i {
        margin-right: 8px;
        font-size: 1.2rem;
    }

    .section-banner .see-all {
        color: #fff;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: bold;
    }
@media (max-width: 1024px) {
    .container {
        max-width: 100% !important; 
        padding-left: 15px !important; 
        padding-right: 15px !important; 
        margin: 0 auto; 
    }
    .navbar-logo {
    width: 170px !important;   
}
}
.navbar-logo {
    width: 180px;  
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.show {
    display: block;
}

.result-item {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f0f0f0;
}

.result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.info {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.category-description {
    font-size: 0.8rem;
    color: #666;
}

.no-results {
    padding: 10px;
    text-align: center;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon {
    margin-right: 5px;
}

.search-box input.typing {
}


.snowflake {
    position: fixed;
    top: -50px;
    color: #ffffff;
    user-select: none;
    pointer-events: none;
    font-size: 2em !important;
    z-index: 9999;
    opacity: 0.8;
    animation: fall linear infinite;
    will-change: transform;
}

@keyframes fall {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(calc(100vh + 50px)) translateX(0);
    }
}

@media (max-width: 1024px) {
    .snowflake {
        font-size: 0.8em; 
    }
}
    @keyframes fall {
        from {
            transform: translateY(0) translateX(0);
        }
        to {
            transform: translateY(calc(100vh + 50px)) translateX(0);
        }}
body {
        font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
background-color: #f5f5f5 !important; 
margin: 0;
padding: 0;
}
.container {
max-width: 1260px;
margin: 0 auto;
padding: 0 1rem;
}

.navbar .container {
max-width: 1260px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}

.navbar {
background-color: #f8f8f8; 
padding: 1rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
z-index: 1000;
}

.search-box {
  display: flex;
  gap: 0.5rem; 
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  min-width: 150px;
  font-size: 1rem;
  padding: 0.5rem;
  box-sizing: border-box; 
  transition: width 0.3s ease;
  flex-grow: 1; 
}

.search-box input:focus {
  width: 100%;
}

.search-box button {
  background-color: #009cfd;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  white-space: nowrap; 
  flex-shrink: 0;
}

 .category-menu {
display: flex;
justify-content: center;
gap: 10px;
padding: 1rem 2rem;
background-color: #fafafa  ;
border-top: 1px solid #ddd;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.category-menu .category-item {
background-color: #fff;
color: #333;
padding: 0.5rem 1.2rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s ease;
border: 1px solid #ddd;
font-size: 0.95rem;
}

.category-menu .category-item:hover {
background-color: #e6e6e6;
}

.category-menu .category-item.active {
background-color: #28a745;
color: #fff;
}
.no-hover:hover {
    color: inherit !important; 
    transform: none !important; 
}
@media (min-width: 768px) and (max-width: 1023px) {
  .category-menu {
    display: none !important;
  }
}

.navbar-brand {
font-size: 1.5rem; 
}

.search-box {
max-width: 550px; 
border-radius: 7px; 
padding: 0.4rem; 
margin: 0 1.2rem; 
}

.search-box input {
font-size: 1rem; 
padding: 0.4rem;
}

.search-box button {
padding: 0.4rem 0.9rem;
border-radius: 7px; 
font-size: 1rem; 
}

.icon-links .icon {
font-size: 1.3rem;
margin: 0 7px; 
}

.icon-links .icon .badge {
top: -4px; 
right: -9px;
font-size: 0.7rem; 
padding: 3px 5px; 
}

.category-menu {
gap: 9px; 
padding: 0.9rem 2rem;
}

.category-menu .category-item {
padding: 0.45rem 1.1rem; 
border-radius: 7px; 
font-size: 0.95rem; 
}

@media (max-width: 1024px) {
.navbar {
flex-wrap: wrap;
padding: 0.5rem 1rem;
background-color: #f5f5f5; 
}

.navbar-brand {
margin-left: 0;
font-size: 1.4rem;
}

.search-box {
max-width: 100%;
margin: 0;
padding: 0.5rem;
}

.category-menu {
display: none;
}

.icon-links {
display: flex;
gap: 5px;
}

.icon-links .icon {
font-size: 1.2rem;
margin: 0 5px;
}

.hamburger-icon {
font-size: 1.6rem;
color: #333;
cursor: pointer;
display: block;
margin-left: 10px;
}

}

.offcanvas-menu {
position: fixed;
top: 0;
right: 0;
width: 65%;
max-width: 300px;
height: 100%;
background: #fff;
z-index: 1050;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
transform: translateX(100%);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
padding: 1rem;
}

.offcanvas-menu.show {
transform: translateX(0);
}

.offcanvas-menu .close-menu {
align-self: flex-end;
font-size: 1.5rem;
cursor: pointer;
color: #333;
margin-bottom: 1rem;
}

.offcanvas-menu .menu-item {
font-size: 1.1rem;
border-bottom: 1px solid #ddd;
transition: color 0.3s ease;
padding: 0.5rem 0;
}

.offcanvas-menu .menu-item a {
color: #333;
text-decoration: none;
display: block;
}

.search-results {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
max-height: 400px;
overflow-y: auto;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
z-index: 1000;
display: none;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-results.show {
display: block;
opacity: 1;
transform: translateY(0);
}

.search-results .result-item {
display: flex;
align-items: center;
padding: 10px;
border-bottom: 1px solid #f0f2f5;
transition: background-color 0.3s ease;
cursor: pointer;
}

.search-results .result-item:hover {
background-color: #f9f9f9;
}

.search-results .result-item img {
width: 100px;
height: 50px;
border-radius: 5px;
object-fit: cover;
margin-right: 15px;
}

.search-results .result-item .info {
display: flex;
flex-direction: column;
}

.search-results .result-item .info .category-name {
font-size: 1rem;
font-weight: bold;
color: #333;
}

.search-results .result-item .info .category-description {
font-size: 0.875rem;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 250px;
}

.search-results .no-results {
padding: 15px;
color: #666;
text-align: center;
font-style: italic;
}

.search-box .clear-button {
position: absolute;
right: 70px; 
background: none;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.3s ease, background-color 0.3s ease;
padding: 0.5rem;
}

.search-box .clear-button i {
color: #dc3545;
font-size: 1.2rem; 
transition: color 0.3s ease;
}

.search-box .clear-button:hover {
background-color: #dc3545; 
}

.search-box .clear-button:hover i {
color: #fff; 
}

#search-results-mobile.search-results {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
max-height: 300px;
overflow-y: auto;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
z-index: 1000;
display: none;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.3s ease, transform 0.3s ease;
}

#search-results-mobile.show {
display: block;
opacity: 1;
transform: translateY(0);
}

#search-results-mobile .result-item {
display: flex;
align-items: center;
padding: 10px;
border-bottom: 1px solid #f0f2f5;
transition: background-color 0.3s ease;
cursor: pointer;
}

#search-results-mobile .result-item:hover {
background-color: #f9f9f9;
}

#search-results-mobile .result-item img {
width: 100px;
height: 40px;
border-radius: 5px;
object-fit: cover;
margin-right: 15px;
}

#search-results-mobile .result-item .info {
display: flex;
flex-direction: column;
}

#search-results-mobile .result-item .info .category-name {
font-size: 1rem;
font-weight: bold;
color: #333;
}

#search-results-mobile .result-item .info .category-description {
font-size: 0.875rem;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}

#search-results-mobile .no-results {
padding: 15px;
color: #666;
text-align: center;
font-style: italic;
}

#clear-button-mobile {
position: absolute;
right: 80px; 
background: none;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.3s ease, background-color 0.3s ease;
padding: 0.5rem; 
}

#clear-button-mobile i {
color: #dc3545; 
font-size: 1.2rem; 
transition: color 0.3s ease;
}

#clear-button-mobile:hover {
background-color: #dc3545; 
}

#clear-button-mobile:hover i {
color: #fff; 
}

@media (min-width: 1024px) {
.navbar {
padding: 0.7rem 2rem; 
height: 70px; 
}

.navbar-brand {
font-size: 1.5rem; 
}

.search-box {
max-width: 550px;
border-radius: 7px; 
padding: 0.4rem;
margin: 0 1.2rem;
}

.search-box input {
font-size: 1rem; 
padding: 0.4rem;
}

.search-box button {
padding: 0.4rem 0.9rem; 
border-radius: 7px; 
font-size: 1rem; 
}

.icon-links .icon {
font-size: 1.3rem; 
margin: 0 7px; 
}

.icon-links .icon .badge {
top: -4px;
right: -9px; 
font-size: 0.7rem;
padding: 3px 5px; 
}


.category-menu {
gap: 9px; 
padding: 0.9rem 2rem; 
}

.category-menu .category-item {
padding: 0.45rem 1.1rem; 
border-radius: 7px; 
font-size: 0.95rem; 
}

}

@media (max-width: 1024px) {
.navbar {
flex-wrap: wrap;
padding: 0.5rem 1rem;
}

.navbar-brand {
margin-left: 0;
font-size: 1.4rem;
}

.search-box {
max-width: 100%;
margin: 0;
padding: 0.5rem;
}

.category-menu {
display: none;
}

.icon-links {
display: flex;
gap: 5px;
}

.icon-links .icon {
font-size: 1.2rem;
margin: 0 5px;
}

.hamburger-icon {
font-size: 1.6rem;
color: #333;
cursor: pointer;
display: block;
margin-left: 10px;
}

.category-menu {
display: none;
}

.icon-links {
gap: 5px;
}

.icon-links .icon {
font-size: 1.2rem;
margin: 0 5px;
}

.hamburger-icon {
font-size: 1.6rem;
color: #333;
cursor: pointer;
display: block;
margin-left: 10px;
}
}

.notification-panel {
    position: absolute;
    top: 32px;
    right: 0;
    width: 280px;   
    max-height: 320px;
    background: white;
    border-radius: 5px;
    overflow-y: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    font-size: 13px;
}

.notification-header {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    background-color: #f8f9fa;
}

.notification-list {
max-height: 260px; 
overflow-y: auto;
}

.notification-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.4;
}

.notification-item:hover {
    background-color: #f0f0f0;
}

.notification-title {
    font-size: 13px;
}

.notification-time {
    font-size: 11px;
    color: #888;
}

.notification-footer {
    padding: 7px 12px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    font-size: 12px;
    text-align: center;
}

.notification-footer a {
    color: #007bff;
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}
.search-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-card:hover {
    background-color: #f5f5f5; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
}
.search-card-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}
.search-card-body {
    flex-grow: 1;
}
.search-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
.search-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
}
.search-section-header {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    padding: 8px 12px;
    border-left: 4px solid #009cfd;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.search-section-header:hover {
    background-color: #e6f7ff;
    padding-left: 16px;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 10px;
}
.no-results-icon {
    margin-right: 5px;
}
@media (min-width: 1024px) {
    .container .row .col-md-9 {
        flex: 0 0 auto;
        width: 75%;
    }
}
