* {
    font-family: 'Heebo', sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

a {
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.header {
    z-index: 1000;
}

.header .logo {
    z-index: 9;
}

.header .side {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 0;
    display: flex;
}

@media (max-width: 1839px) {
    .header .side {
        left: 100px;
    }
}

.header .side > div {
    position: relative;
    padding: 5px 0;
    margin-right: 15px;
}

.header-back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
}

.header-back-btn .btn-light {
    border: 1px solid transparent;
    background: none;
    color: #fff;
    font-size: 1.1em;
}

.header .side > div ul {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: center;
    display: none;
    margin-right: -80%;
    z-index: 999;
}

.header .side > div:hover ul {
    display: block;
}

.header .side > div ul a {
    display: block;
    padding: 10px;
    color: #000;
    font-weight: 500;
    position: relative;
}

.header .side > div ul li:nth-child(2n) a {
    background: #F0F8FF;
}

.header .side .btn {
    margin-right: 10px;
    font-size: 1.1em;
    min-width: 135px;
}

.header .side .btn-info {
    border: 1px solid #97BF0D;
    background: none;
    color: #fff;
    position: relative;
    transition: padding-bottom 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header .side div:hover > .btn-info {
    padding-bottom: 10px;
}

.header .side div:hover > .btn-info:after {
    position: absolute;
    content: '\f107';
    bottom: 8px;
    right: calc(50% - 4px);
    display: block;
    font-family: 'FontAwesome';
    line-height: 0;
}

.header .side div:hover > .btn-side:after {
    display: none;
}

.header .side div:hover > .btn-side {
    padding-bottom: 6px;
}

.header .side .btn-primary {
    border: 1px solid #97BF0D;
    background: #97BF0D;
    color: #fff;
    position: relative;
    transition: padding-bottom 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header .side div:hover > .btn-primary {
    padding-bottom: 10px;
}

.header .side div:hover > .btn-primary:after {
    position: absolute;
    content: '\f107';
    bottom: 8px;
    right: calc(50% - 4px);
    display: block;
    font-family: 'FontAwesome';
    line-height: 0;
}

.header .side .btn-light {
    border: 1px solid transparent;
    background: none;
    color: #fff;
}

aside {
    padding-top: 135px; 
    position: relative;
    z-index: 2;
}

aside .title {
    font-size: clamp(2.5rem, 3.5vw, 4rem); 
    font-weight: bold;
    color: #004f84;
    line-height: 1.05;
    margin: 0 0 2rem 0;
}

aside .sub-title {
    font-size: clamp(1.3em, 1.5vw, 1.75em);
    font-weight: bold;
    color: #004f84;
    width: fit-content;
    margin-top: clamp(0.8rem, 1.5vh, 1.2rem);
    margin-bottom: 0.8rem;
}

.sub-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffd020 0%, #19A5E2 100%);
    margin: 6px 0 0 auto;
    transition: margin 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search {
    position: relative;
    max-width: 420px;
    margin-bottom: 1rem;
}

.search input {
    width: 100%;
    border: 0;
    background: #fff;
    box-shadow: 0px 0px 6px #6A6A6A4D;
    border-radius: 5px;
    padding: 12px 18px 12px 50px;
    outline: none;
}

.search button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 48px;
    background: none;
    border: 0;
    font-size: 1.25rem;
    color: #19A5E2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search button em,
.search button i {
    color: #19A5E2;
}

.most-common {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 500;
}

.most-common > li {
    margin-bottom: 8px;
}

.most-common a {
    color: #4d4f67;
    font-size: 0.85rem;
    border: #29bff2 solid 1px;
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
    white-space: nowrap; 
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis; 
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.most-common a:hover {
    background-color: #29bff2;
    color: #ffffff;
}

body:not(.inner-page) .col-xl-9 .family-pic,
body:not(.inner-page) aside .family-pic {
    position: fixed;
    top: clamp(60px, 12vh, 130px);
    left: 0;
    width: clamp(320px, 48vw, 750px);
    height: auto;
    object-fit: contain;
    object-position: left top;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
    display: block;
    margin: 0;
}

.services {
    width: 100%;
    position: relative;
    z-index: 3;
    margin-top: auto;
}

.services .service-box {
    position: relative;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 63, 124, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: box-shadow 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services .service-box:hover {
    box-shadow: 0 15px 35px rgba(0, 63, 124, 0.12);
}

.services .service-box.lg .pic {
    overflow: hidden;
    position: relative;
    height: calc(100% - 90px);
    width: 100%;
}

.services .service-box img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), object-position 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services .service-box:hover img {
    object-fit: contain;
    object-position: left bottom;
    opacity: 0.25;
}

.services .service-box h3 {
    margin: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    padding: 5px;
    font-size: clamp(1.1rem, 1.3vw, 1.5rem);
    text-align: center;
    margin-top: clamp(20px, 3.5vh, 35px);
    z-index: 3;
    transition: all 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services .service-box h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #ffd020 0%, #19A5E2 100%);
    margin: 5px auto 0 auto;
    transition: margin 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services .service-box:hover h3 {
    text-align: right;
    padding-right: 20px;
}

.services .service-box:hover h3::after {
    margin: 5px 0 0 0;
}

.services .service-box h3 a {
    color: #003F7C;
}

.services .service-box .subs {
    display: none;
}

.services .service-box .subs > div {
    margin-bottom: 6px;
    padding: 8px 24px 8px 10px;
    position: relative;
    text-align: right;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.services .service-box .subs > div::before {
    content: "\00AB";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #19A5E2;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.services .service-box .subs a {
    display: block;
    width: 100%;
    padding: 0;
    color: #003F7C;
    font-weight: 500;
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    line-height: 1.3;
}

.services .service-box .subs > div:hover {
    background-color: rgba(25, 165, 226, 0.12);
    transform: translateX(-6px);
}

.services .service-box .subs > div:hover::before {
    color: #003F7C;
    transform: translateY(-50%) scale(1.2);
}

.services .service-box .subs > div:hover a {
    color: #003F7C;
    font-weight: 700;
}

.services .service-box .subs::-webkit-scrollbar {
    width: 4px;
}
.services .service-box .subs::-webkit-scrollbar-track {
    background: transparent;
}
.services .service-box .subs::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #cbd5e1;
}

.col-xl-4 aside {
    padding-top: 170px;
}

.smartd-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.page-title {
    font-size: 2.2rem;
    color: #004f84;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
}

.page-large-pic {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-large-pic img,
.page-large-pic .family-pic {
    position: relative; 
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 360px; 
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    opacity: 1;
    z-index: 2;
    display: block;
    margin: 0 auto;
    transform: none;
}

.col-xl-8 main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 20px;
}

.sub-services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.sub-services-list li {
    margin-bottom: 8px;
}

.sub-services-list a {
    display: block;
    padding: 10px 14px;
    color: #004f84;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.4s ease;
}

.sub-services-list a:hover {
    color: #19A5E2;
    padding-right: 20px;
    background-color: rgba(25, 165, 226, 0.06);
    border-radius: 6px;
}

.back-btn {
    color: #004f84;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    color: #19A5E2;
}

.mobile-page-large-pic {
    display: none;
}

.services .items {
    padding-top: 25px;
    overflow: visible;
}

.services .service-box.tiny {
    position: relative;
    height: 175px;
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
    margin: 0;
}

.services .service-box.tiny::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 79, 132, 0.12);
    box-shadow: 0 6px 18px rgba(0, 63, 124, 0.07);
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 1.2s ease;
}

.services .service-box.tiny .pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 30px);
    z-index: 2;
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services .service-box.tiny img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    opacity: 1;
    transform: translateY(-8px) scale(1.08); 
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease;
}

.services .service-box.tiny h3 {
    position: absolute;
    bottom: 0px;
    top: auto;
    left: 0;
    width: 100%;
    margin: 0;
    z-index: 10;
    font-size: 1.1rem;
    text-align: center;
    transition: top 0s, bottom 0s, text-align 0s, font-size 0.2s ease;
}

.services .service-box.tiny h3::after {
    display: none;
}

.services .service-box.tiny .subs {
    display: block;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 5px;
    width: 100%;
    background: transparent;
    padding: 4px 12px;
    z-index: 5;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    text-align: right;
    transition: opacity 0s, visibility 0s;
}

.services .service-box.tiny:hover::before {
    box-shadow: 0 12px 30px rgba(25, 165, 226, 0.2);
    border-color: #19A5E2;
}

.services .service-box.tiny:hover .pic {
    top: 25px;
    height: calc(100% - 25px);
    width: 50%;
    left: 0;
}

.services .service-box.tiny:hover img {
    transform: translateY(0) scale(1);
    opacity: 0.15;
    object-position: bottom left;
}

.services .service-box.tiny:hover h3 {
    top: 30px;
    bottom: auto;
    text-align: right;
    padding-right: 14px;
    font-size: 1.05rem;
}

.services .service-box.tiny:hover h3 a {
    color: #19A5E2;
    font-weight: 700;
}

.services .service-box.tiny:hover .subs {
    opacity: 1;
    visibility: visible;
    transition: opacity 0s, visibility 0s;
}

.mobile-bottom {
    background: #003F7C;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.mobile-bottom img {
    height: 60px;
}

@media (min-width: 992px) {
    html, body {
        height: 100vh;
        max-height: 100vh;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: transparent linear-gradient(270deg, #19A5E20D 0%, #e8f6fd 100%) 0% 0% no-repeat padding-box;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        /* justify-content: space-between; */
        position: relative;
        overflow: hidden;
        height: 100%;
    }

    .row {
        display: flex;
        flex: 1;
        height: 100%;
    }

    .col-xl-3,
    .col-xl-4 {
        flex: 0 0 25%;
        max-width: 25%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .col-xl-8,
    .col-xl-9 {
        flex: 0 0 75%;
        max-width: 75%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .footer {
        z-index: 1;
    }
@media (min-width: 992px) {
    .footer-credit {
       text-align: right; 
        font-size: 0.95rem;
    }
}
    aside .title span {
        display: block;
    }

    .services .items {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 10px;
        width: 100%;
        margin-bottom: 0;
    }

    .services .items > div {
        display: block;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0%;
        min-width: 0;
        will-change: flex-grow;
        transition: flex-grow 1.3s cubic-bezier(0.2, 0.8, 0.2, 1), flex-basis 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .services .items > div:hover {
        flex-grow: 2.5;
    }

    .services .service-box {
        width: 100%;
        height: clamp(300px, 42vh, 380px);
        margin: 0;
    }

    .services .service-box .subs {
        display: block;
        position: absolute;
        top: clamp(70px, 9vh, 95px);
        bottom: 0;
        right: 0;
        left: 0;
        background: transparent;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        padding: 10px 15px;
        z-index: 4;
        transition: opacity 0s, visibility 0s;
    }

    .services .service-box:hover .subs {
        opacity: 1;
        visibility: visible;
        transition: opacity 0s, visibility 0s;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .col-xl-3,
    .col-xl-4 {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .col-xl-8,
    .col-xl-9 {
        flex: 0 0 70%;
        max-width: 70%;
    }

    .col-xl-4 aside,
    aside {
        padding-top: 100px;
    }

    .page-title {
        font-size: 1.6rem;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    aside .title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .page-large-pic {
        padding-top: 40px;
        margin: 0 auto;
    }

    .page-large-pic img,
    .page-large-pic .family-pic {
        display: block;
        max-width: 220px;
    }

    .sub-services-list {
        margin-top: 10px;
    }

    .sub-services-list li {
        margin-bottom: 4px;
    }

    .sub-services-list a {
        padding: 6px 10px;
        font-size: 0.88rem;
    }

    .services .service-box {
        height: clamp(250px, 36vh, 320px);
    }

    .services .service-box.tiny {
        height: 145px;
    }

    .services .service-box.tiny::before {
        top: 20px;
    }

    .services .service-box.tiny h3 {
        font-size: 0.95rem;
    }

    .services .service-box.tiny .subs {
        top: 48px;
        padding: 2px 8px;
    }

    .services .service-box.tiny:hover h3 {
        top: 22px;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) and (max-height: 820px) {
    aside {
        padding-top: 90px;
    }

    aside .title {
        font-size: clamp(2rem, 2.8vw, 3rem);
        margin-bottom: 1rem;
    }

    .col-xl-4 aside {
        padding-top: 100px;
    }

    .page-title {
        font-size: 1.75rem;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .page-large-pic {
        padding-top: 40px;
        margin: 0 auto;
    }

    .page-large-pic img,
    .page-large-pic .family-pic {
        display: block;
        max-width: 240px;
    }

    .sub-services-list {
        margin-top: 10px;
    }

    .sub-services-list li {
        margin-bottom: 4px;
    }

    .sub-services-list a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .services .service-box {
        height: clamp(240px, 34vh, 300px);
    }

    .services .service-box.tiny {
        height: 150px;
    }

    .services .service-box.tiny::before {
        top: 20px;
    }

    .services .service-box.tiny .subs {
        top: 50px;
    }

    .services .service-box.tiny:hover h3 {
        top: 24px;
        font-size: 0.95rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1580px;
        margin-top: 0;
    }
}

@media (max-width: 1199px) {
    body:not(.inner-page) .family-pic {
        display: none;
    }
}

@media (max-width: 991px) {
    html, body {
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    body {
        min-height: 100vh;
        background: transparent linear-gradient(270deg, #19A5E20D 0%, #e8f6fd 100%) 0% 0% no-repeat padding-box;
    }

    main {
        display: flex;
        flex-direction: column;
        min-height: auto;
        justify-content: flex-start;
        padding-bottom: 25px;
        position: relative;
    }

    aside {
        text-align: center;
        padding-top: 20px;
    }

    aside .title {
        font-size: 2rem;
        line-height: 2rem;
        margin-top: 15px;
        margin-bottom: 1.5rem;
    }

    aside .sub-title {
        margin: 0 auto 1.2rem auto;
    }

    .search {
        max-width: 304px;
        margin: 0 auto 1.5rem auto;
    }

    .search input {
        padding: 10px 15px 10px 42px;
    }

    .search button {
        width: 38px;
        font-size: 1.1rem;
    }

    .most-common-area {
        display: none;
    }

    .services {
        margin-top: 15px;
    }

    .services .items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 10px 15px;
    }

    .services .items > div {
        display: block;
        width: 100%;
    }

    .services .service-box {
        width: 100%;
        height: 195px;
        margin: 0;
    }

    .services .service-box.lg .pic {
        height: 145px;
    }

    .services .service-box h3 {
        font-size: 1rem;
        margin-top: 12px;
    }

    .services .service-box:hover h3 {
        text-align: center;
        padding-right: 5px;
    }

    .services .service-box:hover h3::after {
        margin: 5px auto 0 auto;
    }

    .mobile-footer {
        display: block;
    }

    .col-xl-4 aside {
        padding-top: 20px;
        text-align: center;
    }

    .smartd-logo {
        margin: 0 auto 10px auto;
    }

    .page-title {
        font-size: 1.6rem;
        color: #004f84;
        font-weight: bold;
        margin: 10px 0 15px 0;
        text-align: center;
    }

    .mobile-page-large-pic {
        display: block;
        margin: 15px auto;
        text-align: center;
    }

    .mobile-page-large-pic img {
        max-width: 220px;
        height: auto;
        margin: 0 auto;
    }

    .page-large-pic {
        display: none;
    }

    .sub-services-list {
        max-width: 480px;
        margin: 15px auto;
        padding: 0 10px;
    }

    .sub-services-list a {
        text-align: right;
        font-size: 0.95rem;
        padding: 12px 15px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        margin-bottom: 8px;
    }

    .services .service-box.tiny {
        height: 160px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 63, 124, 0.06);
        margin: 0;
    }

    .services .service-box.tiny::before {
        display: none;
    }

    .services .service-box.tiny .pic {
        height: 110px;
    }

    .services .service-box.tiny img {
        transform: none;
    }

    .services .service-box.tiny h3 {
        position: relative;
        bottom: auto;
        margin-top: 8px;
    }
}

@media (max-width: 400px) {
    .services .items {
        gap: 8px;
    }
    .services .service-box {
        height: 180px;
    }
}

@media (max-height:800px) {
    html, body {
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    main {
        height: auto;
        overflow: visible;
    }

    .row,
    .col-xl-3,
    .col-xl-4,
    .col-xl-8,
    .col-xl-9 {
        height: auto;
    }

    .mobile-page-large-pic img {
        max-width: 140px;
    }

    .services .service-box.tiny {
        height: 140px;
    }

    .services .items {
        grid-template-columns: repeat(2, 1fr);
    }
}
footer {
    margin-top: 1rem;
}
@media (min-width: 992px) {
    .footer-container {
        height: 112px;
        background: #22546b;
        position: fixed;
    }

    .footer-logo-block {
        display: none;
    }
    .footer-phone {
        font-size: clamp(1.1rem, 1.3vw, 1.6rem);
    }
    .footer-brand {
        font-size: clamp(1rem, 1vw, 1.1rem);
    }
    .footer-bottom-row {
        border-top: 0px solid #e0e0e0;
    }
    .footer-bottom-row-hompage {
        padding-top: 0;
    }

    .footer-bottom-row-hompage {
        display: flex;
    }

    .footer-bottom-row-allpage {
        display: none;
    }
}
@media (max-width: 1250px) and (min-width: 991px){
    .footer-bottom-row-hompage {
        display: block;
    }

}


.header-side {
    z-index: 1000;
}
@media (min-width: 991px){
    .social-icons-grid .icon-btn {
        aspect-ratio: AUTO;  
    } 
 }
    