html {
  font-size: 14px;
}
.blur {
    filter: blur(5px);
}
.header-label {
    line-height:14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {    
    background-color: #f3f6f9 ;/*rgba(var(--mdb-tertiary-bg-rgb), var(--mdb-bg-opacity)) !important;*/
}

@media (max-width: 767px) {
    .grid-menu-columns {
        
        column-count: 1 !important;
    }
    .nav-menu-item {

    }
    .nav-menu-link-h {
        margin-left: 0px;
        
    }
    .nav-menu-link-a {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid lightgray !important;
    }
    .logo {
        height:30px;
    }
    .searchbar {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index:9;
        background-color:white;
        padding:10px;
    }
    .navbar-nav .dropdown-menu {
        position: static !important; /* stay inside nav */
        width: 100%;
        
        transform: none !important;
        box-shadow: none; /* remove floating look */
    }
    .navbar-nav .nav-item.open > .dropdown-menu {
        display: block; /* show when toggled */
    }
}
@media (min-width: 768px) {
    .grid-menu-columns {
        
        column-count: 5 !important;
    }
    .nav-menu-item {
    }
    .nav-menu-link-h {
    }

    .nav-menu-link-a {
    }
    .searchbar {
        z-index: inherit;
        background-color: inherit;
        padding: inherit;
        position: inherit;
        margin-left: 20px;
        margin-right: auto;
        width: 50%;
    }
}
@media (min-width: 992px) {
    .grid-menu-columns {        
        column-count: 6 !important;
    }
    .nav-menu-item {
    }
    .nav-menu-link-h {
        margin-left: inherit !important;
        padding: inherit !important;
    }

    .nav-menu-link-a {
        position: relative;
        display: inline-block;
        color: #212529;
        text-decoration: none;
        transition: color 0.3s ease, font-weight 0.3s ease;
        margin-left: inherit !important;
        padding: inherit !important;
        border: inherit !important;
        border-radius: inherit !important;
        margin-bottom: inherit !important;
    }

        .nav-menu-link-a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -1px;
            width: 0%;
            height: 1px;
            background-color: maroon;
            transition: width 0.2s ease;
        }

        .nav-menu-link-a:hover {
            color: maroon !important;
            font-weight: bold;
        }

            .nav-menu-link-a:hover::after {
                width: 100%;
            }
    .logo {
        height: 45px;
    }
    /* Keep dropdown visible when hovering over nav item or dropdown */
    .navbar-nav .nav-item:hover .dropdown-menu,
    .navbar-nav .nav-item:focus-within .dropdown-menu {
        position: fixed !important;
        /*background-color: yellow;*/
        left: 0 !important;
        right: 0 !important;
        /*margin: 0;*/
        display: block;
        transform: translate(0px, 109px);
        /*visibility: visible;
    opacity: 1;*/
    }

    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        position: fixed !important;
        /*top: 100%;*/ /* directly below navbar */
        left: 0 !important;
        right: 0 !important;
        display: block;
        transform: translate(0px, 109px);
        /*margin-top: 0;*/ /* fix position if it shifts */
        /*opacity: 1;
    visibility: visible;*/
    }
    .navbar .dropdown-menu.menudropdown {
        position: absolute !important;
        inset: 0px auto auto 0px;
        margin: 0px;
        transform: translate(0px, 109px);
        /*top: 100%;*/ /* directly below navbar */
        left: 0 !important;
        right: 0 !important;
        border-radius: 0px 0px 0px 0px;
        /*width: 100vw !important;*/ /* full viewport width */
        /*margin: 0 auto;*/ /* center content if needed */
        /*border-radius: 0;*/
    }
}

.navbar-nav .nav-link {
    border-bottom: 2px solid transparent; /* default invisible border */
    transition: border-color 1s ease;

}


/* When hovering over the nav link OR its parent li */
.navbar-nav .nav-item:hover > .nav-link,
.navbar-nav .nav-item:focus-within > .nav-link {
    border-bottom: 2px solid #212529; /* dark border */    
}
.pagemargin {
    max-width: 1400px;
    margin: auto;
}

.block1 {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hero-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

.hero-text {
    max-width: 900px;
    margin: auto;
    opacity: 0.9;
}
@media (max-width: 767px) {
    .block1 .row {
        flex-direction: column-reverse;
    }
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
footer .col-lg-2 {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    footer .container-fluid {
        text-align: center;
    }
}
.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #b30000, #ff4d4d);
    margin: 20px auto;
    border-radius: 10px;
}
.updates-panel {
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #00a8cc;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: hidden;
}

.updates-header {
    background: #000;
    color: #fff;
    padding: 12px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.updates-body {
    height: 260px;
    overflow: hidden;
    position: relative;
    padding: 10px 15px;
}

.updates-scroll {
    display: block;
    animation: scrollUpdates 15s linear infinite;
}

.update-item {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.update-item h6 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #000;
}

.update-item p {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.update-item a {
    font-size: 12px;
    color: #00a8cc;
    font-weight: 600;
    text-decoration: none;
}

.update-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    color: #fff;
}

.update-tag.success { background: #28a745; }
.update-tag.info { background: #0d6efd; }
.update-tag.warning { background: #ffc107; color:#000; }

@keyframes scrollUpdates {
    0%   { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

#carousel_7 .carousel-item {
    position: relative;
}

#carousel_7 .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.65));
}

#carousel_7 img {
    border-radius: 18px;
    object-fit: cover;
    height: 420px;
}

#carousel_7 .carousel-caption {
    bottom: 15%;
    z-index: 2;
    text-align: left;
    max-width: 80%;
}

#carousel_7 .carousel-caption a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.3;
    background: rgba(0,0,0,0.4);
    padding: 12px 18px;
    border-radius: 10px;
    display: inline-block;
}

#carousel_7 .carousel-caption a:hover {
    background: #0d6efd;
}

#carousel_7 .carousel-indicators [data-mdb-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

#carousel_7 .carousel-control-prev-icon,
#carousel_7 .carousel-control-next-icon {
    background-size: 70%;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 18px;
}

.category-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.category-item:hover img {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #0d6efd !important;
}

.category-item label {
    font-weight: 600;
    font-size: 15px;
    margin-top: 6px;
    display: block;
    color: #222;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.9;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: #0d6efd !important;
    border-color: #0d6efd !important;
}

.carousel-control-prev:hover span,
.carousel-control-next:hover span {
    color: #fff !important;
}

.section-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title:after {
    content: "";
    width: 60px;
    height: 3px;
    background: #0d6efd;
    display: block;
    margin-top: 8px;
}
#announcementCarousel {
    font-size: 14px;
    letter-spacing: 0.5px;
}

#announcementCarousel .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

#announcementCarousel .carousel-control-prev-icon,
#announcementCarousel .carousel-control-next-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}
#announcementCarousel .carousel-control-prev,
#announcementCarousel .carousel-control-next {
    width: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
}

#announcementCarousel .carousel-control-prev-icon,
#announcementCarousel .carousel-control-next-icon {
    filter: invert(1);
}
/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.product-price {
  font-weight: bold;
  color: #28a745;
  font-size: 15px;
}

/* MOBILE */
@media(max-width:600px){
  .product-card img{
    height:180px;
  }
}

/* HEADER LOGO SIZE */
.navbar-brand img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Mobile logo */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 45px;
    }
}
/* === HEADER LOGO FIX === */
.navbar-brand img {
    height: 70px !important;
    width: auto !important;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 45px !important;
    }
}
.navbar-brand {
    max-height: 80px;
    overflow: hidden;
}
