/* Homepage manufacturing cards and redesigned footer. Isolated from legacy Bootstrap rules. */
.smw-manufacture{padding:76px 0;background:#fff}.smw-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px}.smw-section-heading p{margin:8px 0 0;color:#65748a}.smw-manufacture-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.smw-manufacture-item{min-width:0}.smw-manufacture-card{display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;background:#f5f8fc;border:1px solid #e5eaf2;border-radius:16px;color:#17335c;text-decoration:none!important;transition:transform .2s,box-shadow .2s}.smw-manufacture-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px #132b4d18}.smw-manufacture-card img{width:100%;height:205px;object-fit:cover;background:#eaf0f7}.smw-manufacture-card>span{display:block;padding:20px 46px 20px 20px;font-size:17px;font-weight:700}.smw-manufacture-card>.bi-arrow-up-right{position:absolute;right:19px;bottom:23px}.smw-manufacture-icon{display:grid;place-items:center;height:205px;background:linear-gradient(135deg,#e7f1f8,#dbe8f6);font-size:64px;color:#1d5587}
.smw-dynamic-card{overflow:hidden;min-width:0}.smw-dynamic-card>.card-img-top{height:205px;width:100%;object-fit:cover}.smw-card-icon{display:grid;place-items:center;height:160px;background:#eaf0f8;color:#164b7d;font-size:56px}.smw-products-card .card-body{padding:17px}.smw-products-card h3{margin:0;font-size:17px}.smw-footer{background:#102b53!important;color:#d9e5f4!important}.smw-footer .container-xl{padding-top:0;padding-bottom:0}.smw-footer-top{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:55px 0;border-bottom:1px solid #ffffff28}.smw-footer-kicker{font-size:12px;letter-spacing:.15em;color:#8cc4e8;font-weight:700}.smw-footer-top h2{font-size:clamp(25px,3vw,39px);font-weight:750;color:#fff;margin:9px 0}.smw-footer-top p{margin:0;max-width:550px;color:#bfd0e5}.smw-footer-cta{display:inline-flex;gap:18px;align-items:center;flex-shrink:0;background:#ed563d;color:#fff!important;padding:14px 21px;border-radius:9px;font-weight:700;text-decoration:none!important}.smw-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.5fr;gap:35px;padding:52px 0}.smw-footer-about p{max-width:300px;margin:18px 0 23px;line-height:1.8;color:#c3d2e4}.smw-footer .footer-title{font-size:16px;font-weight:700;color:#fff;margin-bottom:22px}.smw-footer .footer-links{list-style:none;padding:0;margin:0;display:grid;gap:12px}.smw-footer .footer-links li{margin:0}.smw-footer .footer-links a{font-size:14px;color:#c6d6e9!important;text-decoration:none}.smw-footer a:hover{color:#fff!important}.smw-footer-social{display:flex;gap:10px;flex-wrap:wrap}.smw-footer-social a{display:grid;place-items:center;width:39px;height:39px;border:1px solid #ffffff35;border-radius:10px;font-size:18px;color:#fff!important}.smw-footer-social a:hover{background:#ffffff22}.smw-contact-line{display:flex;align-items:start;gap:11px;font-size:14px;line-height:1.65;color:#c6d6e9;margin-bottom:13px}.smw-contact-line i{color:#88c9ee;margin-top:3px}.smw-footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;border-top:1px solid #ffffff28;padding:22px 0;font-size:13px;color:#a9bfd8}.smw-footer-bottom>span:last-child{display:flex;gap:18px}.smw-footer-bottom a{color:#c6d6e9!important}
/* Protect card widths when a Bootstrap CDN is unavailable. */
#home-product-grid,#home-project-grid,#home-blog-grid,#home-client-grid,#productsGrid,#catalogueProductGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}#home-product-grid>.col,#home-project-grid>.col,#home-blog-grid>.col,#home-client-grid>.col,#productsGrid>.col,#catalogueProductGrid>.col{width:auto!important;max-width:none!important;flex:none!important;min-width:0!important;margin:0!important;padding:0!important}
@media(max-width:991px){.smw-manufacture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smw-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#home-product-grid,#home-project-grid,#home-blog-grid,#home-client-grid,#productsGrid,#catalogueProductGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:575px){.smw-manufacture{padding:48px 0}.smw-manufacture-grid,.smw-footer-grid{grid-template-columns:1fr}.smw-footer-top{flex-direction:column;align-items:start;padding:42px 0}.smw-footer-grid{gap:28px;padding:36px 0}#home-product-grid,#home-project-grid,#home-blog-grid,#home-client-grid,#productsGrid,#catalogueProductGrid{grid-template-columns:1fr!important}}

/* SSR CMS cards: target actual direct cards, never a nested .row wrapper. */
#home-product-grid,#home-project-grid,#home-blog-grid,#home-client-grid,#productsGrid,#catalogueProductGrid,#project-grid,#blogGrid,#client-grid,#teamGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;align-items:stretch;width:100%;min-width:0}
#home-product-grid>.col,#home-project-grid>.col,#home-blog-grid>.col,#home-client-grid>.col,#productsGrid>.col,#catalogueProductGrid>.col,#project-grid>.col,#blogGrid>.col,#client-grid>.col,#teamGrid>.col{width:100%!important;min-width:0!important;max-width:none!important;flex:none!important}
#home-product-grid>.row,#home-project-grid>.row,#home-blog-grid>.row,#home-client-grid>.row,#productsGrid>.row,#catalogueProductGrid>.row,#project-grid>.row,#blogGrid>.row,#client-grid>.row{display:contents!important}
.smw-dynamic-card{width:100%;height:100%;min-width:0}.smw-dynamic-card .card-body{overflow-wrap:break-word}.smw-dynamic-card .card-img-top{width:100%;object-fit:cover}
.site-header .dropdown-menu:not(.show){display:none!important}.site-header .dropdown-menu.show{display:block!important}
@media(min-width:1200px){.site-header .navbar-collapse{display:flex!important;flex-basis:auto}.site-header .navbar-nav{flex-direction:row;align-items:center}.site-header .dropdown-menu{position:absolute}}
@media(max-width:1199.98px){.site-header .navbar-collapse:not(.show){display:none!important}.site-header .navbar-collapse.show{display:block!important}.site-header .dropdown-menu{position:static!important;transform:none!important;box-shadow:none!important}}
@media(max-width:991.98px){#home-product-grid,#home-project-grid,#home-blog-grid,#home-client-grid,#productsGrid,#catalogueProductGrid,#project-grid,#blogGrid,#client-grid,#teamGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:575.98px){#home-product-grid,#home-project-grid,#home-blog-grid,#home-client-grid,#productsGrid,#catalogueProductGrid,#project-grid,#blogGrid,#client-grid,#teamGrid{grid-template-columns:minmax(0,1fr)!important}}

/* Homepage: independent full-width editorial sections and balanced cards. */
.smw-editorial-section{padding:clamp(54px,6vw,90px) 0}
.smw-projects-section{background:#fff}.smw-insights-section{background:var(--sajan-soft-blue, #f2f5fb)}
.smw-editorial-head{text-align:center;margin:0 auto 32px;max-width:720px}
.smw-editorial-head .section-heading{margin:8px 0 0}
.smw-editorial-section #home-project-grid,.smw-editorial-section #home-blog-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:26px!important;max-width:1200px;margin:0 auto!important;width:100%;align-items:stretch}
.smw-editorial-section .smw-dynamic-card{height:100%;border-radius:16px;overflow:hidden}
.smw-editorial-section .smw-dynamic-card .card-img-top{height:220px;object-fit:cover}
.smw-editorial-section .smw-dynamic-card .card-body{padding:22px}
.smw-editorial-section .smw-dynamic-card h3{line-height:1.35}
.smw-editorial-action{display:flex;justify-content:center;align-items:center;margin-top:36px}
.smw-editorial-action .btn{min-width:185px;text-align:center}
/* Navigation: compact dropdowns with stable widths, never full-page columns. */
.site-header .navbar-nav>.dropdown{position:relative}
.site-header .navbar-nav>.dropdown>.dropdown-menu{position:absolute;top:100%;left:0;right:auto;transform:none!important;width:max-content;min-width:225px;max-width:min(340px,90vw);padding:9px!important;margin:0;border-radius:12px;z-index:1100}
.site-header .dropdown-menu li{position:relative;list-style:none}
.site-header .dropdown-menu .dropdown-item{display:block;width:100%;white-space:normal;padding:10px 12px;line-height:1.4}
.site-header .dropdown-menu .smw-has-submenu>.dropdown-menu{top:0;left:100%;right:auto;margin-left:5px;min-width:220px;max-width:320px;transform:none!important}
.site-header .navbar-nav>.dropdown>.dropdown-menu.show{display:block!important}
.site-header .dropdown-menu .dropdown-menu:not(.show){display:none!important}
@media(max-width:1199.98px){.site-header .navbar-nav>.dropdown>.dropdown-menu,.site-header .dropdown-menu .smw-has-submenu>.dropdown-menu{position:static!important;width:100%;max-width:100%;min-width:0;margin:0 0 0 12px;box-shadow:none!important;transform:none!important}}
@media(max-width:991.98px){.smw-editorial-section #home-project-grid,.smw-editorial-section #home-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:575.98px){.smw-editorial-section #home-project-grid,.smw-editorial-section #home-blog-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}.smw-editorial-section .smw-dynamic-card .card-img-top{height:200px}}
/* Reference-style mega navigation and five-column footer */
.smw-ref-header .smw-header-container{position:static}.smw-ref-header .navbar{position:relative}.smw-ref-header .navbar-nav>.nav-item{position:static}.smw-ref-header .smw-nav-trigger{border:0;background:transparent;font:inherit;cursor:pointer;color:inherit}.smw-ref-header .navbar-nav>.dropdown>.dropdown-menu{display:none!important}.smw-ref-header .navbar-nav>.dropdown.smw-open>.dropdown-menu{display:block!important}.smw-ref-header .navbar-nav>.dropdown.smw-open>.smw-mega-menu{display:grid!important}.smw-ref-header .smw-mega-menu{position:absolute!important;top:100%;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(1225px,calc(100vw - 48px))!important;max-width:none!important;min-width:0!important;padding:28px 32px!important;grid-template-columns:2fr 1fr;gap:42px;background:#f9faff;border:1px solid #dbe4f3;border-radius:20px;box-shadow:0 18px 35px #102b5328;z-index:1500;white-space:normal}.smw-mega-menu h2{font-size:15px;letter-spacing:.055em;text-transform:uppercase;font-weight:800;color:#17427e;margin:0 0 20px}.smw-mega-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px;row-gap:8px}.smw-mega-menu a{display:block;text-decoration:none!important;color:#36445b!important;font-size:16px;line-height:1.4;padding:9px 10px;border-radius:7px}.smw-mega-menu a:hover{background:#e7edf8;color:#174b9b!important}.smw-mega-menu .smw-mega-view{display:inline-block;color:#1671ff!important;font-weight:700;text-decoration:underline!important;margin-top:14px}.smw-mega-extra{display:grid;gap:8px}.smw-ref-header .smw-simple-menu{position:absolute;top:100%;min-width:215px;padding:9px;border-radius:12px;box-shadow:0 12px 30px #102b5324}.smw-ref-header .smw-simple-menu .dropdown-item{padding:10px 14px}
.smw-ref-footer{background:#102b53!important;color:#fff!important;padding:70px 0 0}.smw-ref-footer .smw-ref-footer-grid{display:grid;grid-template-columns:1.8fr .8fr .95fr .8fr 1.2fr;gap:42px}.smw-ref-footer .smw-ref-brand p{max-width:410px;font-size:17px;line-height:1.55;margin:22px 0}.smw-ref-footer .footer-brand img{object-fit:contain;object-position:left center;background:#fff;border-radius:12px;padding:9px;width:160px;height:110px}.smw-ref-footer .footer-title{font-size:18px;margin:0 0 23px}.smw-ref-footer .footer-links{gap:14px}.smw-ref-footer .footer-links a,.smw-ref-footer .smw-ref-contact a{font-size:16px;color:#fff!important}.smw-ref-contact p{line-height:1.6;margin:0 0 15px}.smw-ref-contact>a{display:block;text-decoration:none;margin:0 0 7px}.smw-ref-newsletter{margin-top:45px;max-width:750px}.smw-ref-newsletter h3{font-size:19px;font-weight:700}.smw-ref-newsletter p{margin:18px 0;font-size:16px}.smw-ref-subscribe{display:flex;max-width:730px;min-height:58px}.smw-ref-subscribe input{flex:1;min-width:0;border:1px solid #dce4f1;background:#f7f8fd;border-radius:12px 0 0 12px;padding:15px 18px;font-size:17px}.smw-ref-subscribe button{border:0;border-radius:0 12px 12px 0;background:#e73521;color:#fff;font-weight:700;padding:12px 22px;font-size:17px}.smw-ref-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #ffffff30;margin-top:55px;padding:22px 0;font-size:13px}.smw-ref-bottom>div{display:flex;gap:22px}.smw-ref-bottom a{color:#fff;text-decoration:none}
@media(max-width:1199.98px){.smw-ref-header .navbar-nav>.nav-item{width:100%}.smw-ref-header .smw-mega-menu,.smw-ref-header .smw-simple-menu{position:static!important;transform:none!important;width:100%!important;max-width:100%!important;grid-template-columns:1fr;padding:18px!important;box-shadow:none;margin:0!important}.smw-ref-footer .smw-ref-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:767.98px){.smw-ref-footer .smw-ref-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.smw-mega-products{grid-template-columns:1fr}.smw-ref-footer{padding-top:42px}.smw-ref-bottom{flex-direction:column}}@media(max-width:480px){.smw-ref-footer .smw-ref-footer-grid{grid-template-columns:1fr}.smw-ref-subscribe input{font-size:14px}.smw-ref-subscribe button{font-size:14px;padding:10px 14px}}

/* 2026-10-18: Anchor Products mega menu to Products, not the right side of the navbar. */
@media (min-width:1200px) {
  .smw-ref-header .navbar-nav > .nav-item.smw-mega-parent { position:relative !important; }
  .smw-ref-header .navbar-nav > .nav-item.smw-mega-parent > .smw-mega-menu {
    left:-100px !important;
    right:auto !important;
    top:100% !important;
    transform:none !important;
    width:min(1225px, calc(100vw - 48px)) !important;
    max-width:none !important;
  }
}
@media (min-width:1200px) and (max-width:1450px) {
  .smw-ref-header .navbar-nav > .nav-item.smw-mega-parent > .smw-mega-menu {
    left:0 !important;
    width:min(960px, calc(100vw - 48px)) !important;
  }
}

/* Mega menu: align to centered site container, independent of Products item width. */
@media (min-width:1200px) {
 .smw-ref-header .navbar-nav > .nav-item.smw-mega-parent {position:static!important}
 .smw-ref-header .navbar-nav > .nav-item.smw-mega-parent > .smw-mega-menu {
   position:fixed!important; top:var(--smw-mega-top, 120px)!important;
   left:50%!important;right:auto!important;transform:translateX(-50%)!important;
   width:min(1225px,calc(100vw - 48px))!important;max-width:none!important;
   margin:0!important;z-index:99999!important;
 }
 .smw-ref-header, .smw-ref-header .navbar, .smw-ref-header .navbar-collapse {overflow:visible!important}
}

/* Match Products/About dropdown triggers to ordinary header links. */
.smw-ref-header .navbar-nav > .nav-item > button.smw-nav-trigger {
  font-family: inherit !important;
  font-size: .89rem !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: #374155 !important;
  padding: .7rem .48rem !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  white-space: nowrap;
}
.smw-ref-header .navbar-nav > .nav-item > button.smw-nav-trigger:hover,
.smw-ref-header .navbar-nav > .nav-item.smw-open > button.smw-nav-trigger {
  color: var(--sajan-brand-navy, #153d73) !important;
  border-bottom-color: var(--sajan-brand-navy, #153d73) !important;
}
@media(max-width:1199.98px){
 .smw-ref-header .navbar-nav > .nav-item > button.smw-nav-trigger {padding:.7rem !important;width:100%;text-align:left;}
}

/* URL-aware active menu: matches the existing navigation typography. */
.smw-ref-header #primaryNav > .navbar-nav > .nav-item > .nav-link.smw-nav-active,
.smw-ref-header #primaryNav > .navbar-nav > .nav-item.smw-nav-current > .nav-link {
  color: #173e78 !important;
  border-bottom: 2px solid #173e78 !important;
}
.smw-ref-header #primaryNav > .navbar-nav > .nav-item > button.smw-nav-trigger.smw-nav-active {
  color: #173e78 !important;
  border-bottom-color: #173e78 !important;
}
@media (max-width:1199.98px) {
  .smw-ref-header #primaryNav > .navbar-nav > .nav-item > .nav-link.smw-nav-active { border-bottom-color: transparent !important; border-left: 3px solid #173e78 !important; padding-left: .75rem !important; }
}

/* Unified dropdown positioning: ordinary menus anchor to their own trigger.
   The Products mega menu retains its separately centered fixed positioning. */
@media (min-width:1200px) {
  .smw-ref-header .navbar-nav > li.nav-item.dropdown:not(.smw-mega-parent) {
    position: relative !important;
  }
  .smw-ref-header .navbar-nav > li.nav-item.dropdown:not(.smw-mega-parent) > .dropdown-menu.smw-simple-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: max-content !important;
    min-width: 215px !important;
    max-width: min(320px, calc(100vw - 24px)) !important;
    z-index: 99999 !important;
  }
  .smw-ref-header .navbar-nav > li.nav-item.dropdown.smw-mega-parent {
    position: static !important;
  }
}
@media (max-width:1199.98px) {
  .smw-ref-header .navbar-nav > li.nav-item.dropdown > .dropdown-menu.smw-simple-menu,
  .smw-ref-header .navbar-nav > li.nav-item.dropdown > .dropdown-menu.smw-mega-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
