/*=====================================================
HEADER
======================================================*/

.main-header{
    position: sticky;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:#fff;
    transition:.35s ease;
    box-shadow:0 1px 15px rgba(0,0,0,.05);
}

.top-bar{
    background:#0B4EA2;
    color:#fff;
    font-size:13px;
}

.topbar-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:42px;
}

.top-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.top-left a{
    color:#fff;
    text-decoration:none;
}

.top-left span{
    width:1px;
    height:16px;
    background:rgba(255,255,255,.3);
}

.top-right{
    letter-spacing:.4px;
    opacity:.9;
}

.navbar-area{
    background:#fff;
}

.navbar-inner{
    height:88px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:58px;
}

.desktop-menu>ul{
    display:flex;
    align-items:center;
    gap:42px;
    list-style:none;
    margin:0;
    padding:0;
}

/* .desktop-menu>ul>li{
    position:relative;
} */

.desktop-menu>ul>li>a{
    color:#222;
    text-decoration:none;
    font-weight:600;
    font-size:15px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:34px 0;
    transition:.3s;
}

.desktop-menu>ul>li>a:hover{
    color:#0B4EA2;
}

.desktop-menu i{
    font-size:12px;
}

.header-btn{
    background:#0B4EA2;
    color:#fff;
    text-decoration:none;
    padding:14px 28px;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
}

.header-btn:hover{
    background:#083c7f;
    color:#fff;
}

.mega-parent{
    position:static;
}

.mega-menu{

    position:absolute;

    left:50%;

    transform:translateX(-50%) translateY(30px);

    top:100%;

    width:95vw;

    background:#fff;

    border-radius:24px;

    padding:40px;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    box-shadow:
    0 30px 80px rgba(0,0,0,.12);

    border:1px solid #ececec;

    z-index:10000;

    max-height:calc(100vh - 145px);

    overflow-y:auto;

}

.mega-parent:hover .mega-menu,
.mega-parent:focus-within .mega-menu{

    opacity:1;

    visibility:visible;

    transform:
    translateX(-50%)
    translateY(0);

}
.mega-top{

    padding-bottom:20px;

    border-bottom:1px solid #eee;

    margin-bottom:25px;

}

.mega-info span{

    display:inline-block;

    color:#0B4EA2;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:1px;

    font-size:12px;

}

.mega-info h3{

    margin:10px 0;

    font-size:34px;

    font-weight:700;

    line-height:1.2;

}

.mega-info p{

    color:#666;

    max-width:550px;
 

}

.catalog-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    background:#0B4EA2;

    color:#fff;

    border-radius:50px;

    text-decoration:none;

}
.mega-grid{

    display:grid;

    grid-template-columns:
    repeat(5,1fr);

    gap:22px;

    align-items:start;

}
.mega-column{

    padding:22px;

    border:1px solid #ececec;

    border-radius:18px;

    transition:.35s;

    background:#fff;

    height:100%;

}

.mega-column:hover{

    background:#f8fbff;

    border-color:#0B4EA2;

    transform:translateY(-6px);

}

.mega-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:18px;

    color:#111;

}

.mega-column ul{

    list-style:none;

    margin:0;

    padding:0;

}

.mega-column li{

    margin-bottom:6px;

}

.mega-column li:last-child{

    margin-bottom:0;

}

.mega-column a{

    text-decoration:none;

    color:#666;

    transition:.3s;

    display:flex;

    align-items:center;

    justify-content:space-between;

}
.mega-column a::after{

    content:"→";

    opacity:0;

    transform:translateX(-8px);

    transition:.3s;

}

.mega-column a:hover{

    color:#0B4EA2;

    padding-left:6px;

}

.mega-column a:hover::after{

    opacity:1;

    transform:translateX(0);

}

.mega-column .mega-nested-links{
    margin:5px 0 8px 10px;
    padding-left:12px;
    border-left:1px solid #e5edf7;
    gap:5px;
}

.mega-column .mega-nested-links a{
    font-size:13px;
    color:#707b89;
    line-height:1.45;
}

.mega-column .mega-end-links{
    margin-left:20px;
}

/* Keep subcategories collapsed until their parent category is hovered. */
.mega-column{
    min-height:0;
    height:auto;
    overflow:visible;
}

.mega-menu{
    max-height:none;
    overflow:visible;
}

.mega-column:hover,
.mega-column:focus-within{
    z-index:10005;
}

.mega-column > .mega-links{
    display:none;
    position:absolute;
    top:calc(100% - 5px);
    left:0;
    width:max(100%, 235px);
    overflow:visible;
    padding:14px 16px;
    border:1px solid #e5edf7;
    border-radius:12px;
    background:#fff;
    box-shadow:0 16px 36px rgba(0,0,0,.14);
    z-index:10010;
}

.mega-column:hover > .mega-links,
.mega-column:focus-within > .mega-links{
    display:flex;
}

.mega-column > .mega-title:hover + .mega-links,
.mega-column > .mega-title:focus-within + .mega-links{
    display:flex;
}

.mega-column .mega-subcategory{
    position:relative;
}

.mega-column .mega-subcategory > .mega-nested-links{
    display:none;
    position:absolute;
    top:-14px;
    left:100%;
    width:max(100%, 250px);
    overflow:visible;
    margin:0;
    padding:14px 16px;
    border:1px solid #e5edf7;
    border-radius:12px;
    background:#fff;
    box-shadow:0 16px 36px rgba(0,0,0,.14);
    z-index:10020;
}

.mega-column .mega-subcategory:hover > .mega-nested-links,
.mega-column .mega-subcategory:focus-within > .mega-nested-links{
    display:flex;
}

.mega-column .mega-subcategory:hover,
.mega-column .mega-subcategory:focus-within{
    z-index:10030;
}

.mega-column .mega-subcategory.has-children > a::after{
    opacity:1;
    transform:rotate(45deg) translateX(0);
}

.mega-title h5 > a::after{
    content:"⌄";
    width:auto;
    height:auto;
    border:0;
    opacity:.65;
    transform:none;
    font-size:15px;
}

.mega-column .mega-subcategory > .mega-nested-links a{
    white-space:normal;
}
.mega-footer{

    margin-top:35px;

    border-top:1px solid #eee;

    padding-top:25px;

    text-align:center;

}

.mega-footer a{

    text-decoration:none;

    color:#0B4EA2;

    font-weight:700;

    display:inline-flex;

    gap:10px;

    align-items:center;

}
.mega-column{

    position:relative;

    overflow:hidden;

    background:#fff;

    border:1px solid #ececec;

    border-radius:20px;

    padding:24px;

    transition:.35s;

    min-height:285px;

}

.mega-column::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:4px;

    height:0;

    background:#0B4EA2;

    transition:.35s;

}

.mega-column:hover{

    transform:translateY(-8px);

    border-color:#d9e8fb;

    box-shadow:

    0 20px 40px rgba(11,78,162,.08);

}

.mega-column:hover::before{

    height:100%;

}
.mega-title{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:22px;

}

.mega-icon{

    width:52px;

    height:52px;

    border-radius:16px;

    background:#eef5ff;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#0B4EA2;

    font-size:22px;

    transition:.35s;

}

.mega-column:hover .mega-icon{

    background:#0B4EA2;

    color:#fff;

    transform:rotate(-8deg);

}

.mega-title h5{

    margin:0;

    font-size:17px;

    font-weight:700;

}

.mega-title small{

    color:#888;

}
.mega-column ul{

    display:flex;

    flex-direction:column;

    gap:7px;

}

.mega-column a{

    color:#555;

    display:flex;

    align-items:center;

    justify-content:space-between;

    font-size:14px;

    transition:.3s;

}
.mega-column a::after{

    content:"";

    width:8px;

    height:8px;

    border-top:2px solid #0B4EA2;

    border-right:2px solid #0B4EA2;

    transform:

    rotate(45deg)

    translateX(-10px);

    opacity:0;

    transition:.3s;

}

.mega-column a:hover{

    color:#0B4EA2;

    padding-left:6px;

}

.mega-column a:hover::after{

    opacity:1;

    transform:

    rotate(45deg)

    translateX(0);

}
.catalog-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    background:#0B4EA2;

    color:#fff;

    border-radius:50px;

    padding:14px 30px;

    text-decoration:none;

    transition:.35s;

}

.catalog-btn:hover{

    background:#083c7f;

    transform:translateY(-2px);

}
.mega-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:40px;

    padding-top:28px;

    border-top:1px solid #eee;

}

.mega-footer p{

    color:#777;

    margin:0;

}

.mega-footer a{

    color:#0B4EA2;

    font-weight:700;

}

/* Category links stay under each heading; only the third level flies out. */
.mega-menu {
    box-sizing: border-box;
    width: min(1500px, calc(100vw - 48px));
    max-height: none;
    overflow: visible;
    padding: clamp(20px, 2vw, 36px);
}

.mega-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 22px);
    align-items: start;
}

.mega-column,
.mega-column:hover,
.mega-column:focus-within {
    position: relative;
    min-height: 0;
    min-width: 0;
    height: auto;
    overflow: visible;
    transform: none;
}

.mega-column:hover,
.mega-column:focus-within {
    z-index: 10005;
}

.mega-column > .mega-links {
    display: flex;
    position: static;
    flex-direction: column;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mega-column a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mega-column .mega-subcategory {
    position: relative;
}

.mega-column .mega-subcategory > .mega-nested-links {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    z-index: 10007;
    width: min(320px, calc(100vw - 64px));
    min-width: 250px;
    max-width: calc(100vw - 48px);
    max-height: none;
    overflow: visible;
    flex-direction: column;
    margin: 0;
    padding: 12px 16px;
    list-style: none;
    border-left: 1px solid #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(20, 35, 55, .16);
}

.mega-column .mega-subcategory:hover > .mega-nested-links,
.mega-column .mega-subcategory:focus-within > .mega-nested-links {
    display: flex;
}

/* Use the same crisp chevron only where a third-level panel exists. */
.mega-title h5 > a::after {
    content: none;
    display: none;
}

.mega-column .mega-subcategory.has-children > a::after {
    content: "";
    display: block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-left: 12px;
    border-top: 2px solid #0b4ea2;
    border-right: 2px solid #0b4ea2;
    opacity: 1;
    transform: rotate(45deg);
}

.mega-column .mega-subcategory.has-children > a:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}
