.home-page {
    width: 100% !important;
    max-width: 100% !important;
    min-height:
        calc(
            100vh -
            var(--header-height) -
            var(--bottom-nav-height) -
            var(--page-space-top) -
            var(--page-space-bottom) -
            env(safe-area-inset-bottom)
        ) !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    overflow-x: hidden;
    border-radius: 18px;
}

.home-notice-bar {
    width: 100% !important;
    margin: 0 0 10px !important;
    border: 1px solid rgba(44, 126, 220, 0.32);
    border-radius: 13px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            var(--primary-blue-dark),
            var(--primary-blue),
            var(--primary-blue-dark)
        );
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.home-notice-content {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-notice-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-notice-icon i,
.home-notice-icon svg {
    color: var(--accent-orange);
    font-size: 16px;
}

.home-notice-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.home-notice-text {
    width: max-content;
    padding-left: 100%;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    animation: homeNoticeScroll 18s linear infinite;
}

@keyframes homeNoticeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.home-subscription-container {
    margin-bottom: 12px;
}

.home-subscription-alert {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 122, 22, 0.35);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(8, 45, 97, 0.98),
            rgba(3, 31, 75, 0.98)
        );
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: var(--card-shadow);
}

.home-subscription-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 122, 22, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-subscription-content {
    flex: 1;
    min-width: 0;
}

.home-subscription-content h4 {
    margin: 0 0 4px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
}

.home-subscription-content p {
    margin: 0;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.55;
}

.home-subscription-button {
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--orange-gradient);
    color: var(--white) !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.home-banner-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.home-banner-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--border-blue);
    border-radius: 18px;
    background: var(--primary-card);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.fresh-banner-item {
    width: 100%;
    background: var(--primary-deep);
}

.home-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    object-position: center;
}

.home-social-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
}

.home-service-section,
.home-service-wrapper,
.home-services-area {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.home-feature-tabs-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.home-feature-tabs {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 6px;
    border: 1px solid rgba(44, 126, 220, 0.45);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #06336c 0%,
            #031f4b 52%,
            #021838 100%
        );
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.20);
}

.home-feature-tab {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 5px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--white) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-feature-tab:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.17);
}

.home-feature-tab.active {
    background: var(--blue-gradient);
    color: var(--white) !important;
    box-shadow: 0 7px 18px rgba(11, 108, 255, 0.32);
}

.home-feature-tab.active::after {
    display: none;
}

.home-feature-tab-icon {
    display: none;
}

.home-service-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 17px 0 18px !important;
    border-radius: 22px !important;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafbfe 52%,
            #f4f7fc 100%
        );
    color: #111827;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.14);
}

.home-service-panel > .container,
.home-service-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
}

.home-service-heading {
    width: 100%;
    margin: 0 0 15px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.home-service-heading-dot,
.home-service-heading-mark {
    width: 9px;
    min-width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 5px rgba(255, 122, 22, 0.13);
}

.home-service-heading h2 {
    margin: 0;
    color: #14213a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.home-service-heading-line {
    flex: 1;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(20, 33, 58, 0.30),
            rgba(20, 33, 58, 0.03)
        );
}

.projectLists {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px 7px !important;
    align-items: stretch !important;
}

.project-item {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    height: 112px !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 9px 3px 7px !important;
    overflow: hidden !important;
    border: 1px solid #e1e6ee !important;
    border-radius: 15px !important;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fcfdff 100%
        ) !important;
    color: #111827 !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-shadow: 0 5px 15px rgba(3, 31, 75, 0.08) !important;
    animation: none !important;
}

.project-item::before {
    content: "";
    position: absolute;
    top: -38px;
    right: -36px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(11, 108, 255, 0.035);
}

.service-icon-box,
.project-item .homeRoundIcons,
.project-item .shopRadiusIcons {
    position: relative;
    z-index: 2;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 auto 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f4f7fb 100%
        ) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 6px 14px rgba(3, 31, 75, 0.09) !important;
}

.project-item .homeRoundIconsInner,
.project-item .shopRoundIconsInner {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.service-icon-box i,
.service-icon-box svg,
.project-item .homeRoundIconsInner i,
.project-item .homeRoundIconsInner svg,
.project-item .shopRoundIconsInner i,
.project-item .shopRoundIconsInner svg,
.project-item .svg-inline--fa {
    display: block !important;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #08234d !important;
    fill: currentColor !important;
    stroke: none !important;
    font-size: 22px !important;
    line-height: 22px !important;
    transform: none !important;
    overflow: visible !important;
    -webkit-text-fill-color: currentColor !important;
}

.project-item:nth-child(4n + 1) i,
.project-item:nth-child(4n + 1) svg {
    color: #0968df !important;
}

.project-item:nth-child(4n + 2) i,
.project-item:nth-child(4n + 2) svg {
    color: #ed6b15 !important;
}

.project-item:nth-child(4n + 3) i,
.project-item:nth-child(4n + 3) svg {
    color: #08234d !important;
}

.project-item:nth-child(4n + 4) i,
.project-item:nth-child(4n + 4) svg {
    color: #ed6b15 !important;
}

.project-name {
    position: relative;
    z-index: 2;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 1px !important;
    color: #111827 !important;
    font-size: 10.2px !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

.project-name span {
    display: block !important;
    width: 100% !important;
    color: #111827 !important;
}

.project-item:hover i,
.project-item:hover svg {
    transform: none !important;
}

.notice-modal-dialog {
    width: auto;
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
}

#noticeModal {
    z-index: 1085;
}

#noticeModal + .modal-backdrop,
.modal-backdrop {
    z-index: 1080;
}

#noticeModal .custom-modal {
    position: relative;
    overflow: visible;
    padding: 0;
    border: 1px solid rgba(22, 136, 255, 0.20);
    border-radius: 24px !important;
    background: var(--white);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.36);
}

#noticeModal .modal-body {
    position: relative;
    padding: 27px 18px 18px !important;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f6f9ff 0%,
            #ffffff 42%,
            #f7faff 100%
        );
}

.btn-close-custom {
    position: absolute;
    top: -11px;
    right: -8px;
    z-index: 20;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--orange-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notice-heading-area {
    margin-bottom: 14px;
    text-align: center;
}

.notice-heading-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 9px;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            rgba(22, 136, 255, 0.15),
            rgba(255, 122, 22, 0.14)
        );
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-title {
    margin: 0;
    padding: 0 22px;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
}

.notice-subtitle {
    margin: 5px 0 0;
    color: #617087;
    font-size: 13px;
    font-weight: 600;
}

#noticeCarousel {
    position: relative;
    width: 100%;
    padding-bottom: 33px;
    touch-action: pan-y;
}

#noticeModal .content-box {
    width: 100%;
    height: 500px;
    max-height: 58vh;
    margin: 0;
    padding: 17px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dce5f0;
    border-radius: 17px;
    background: var(--white);
    color: #2d3748;
    text-align: left;
    box-shadow: 0 8px 22px rgba(3, 31, 75, 0.07);
    -webkit-overflow-scrolling: touch;
}

.notice-content-top {
    margin-bottom: 13px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5ebf2;
    text-align: center;
}

.content-header {
    margin: 0 0 6px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 800;
}

.date-text {
    margin: 0;
    color: #8290a4;
    font-size: 12px;
}

.notice-html {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.notice-html img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px auto;
    border-radius: 10px;
}

.notice-action-buttons {
    width: 100%;
    margin-top: 13px;
    display: flex;
    gap: 10px;
}

.btn-remind,
.btn-close-footer {
    flex: 1;
    min-height: 45px;
    padding: 9px 8px;
    border: 0;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-remind {
    background:
        linear-gradient(
            180deg,
            #74849a,
            #5c6b80
        );
}

.btn-close-footer {
    background: var(--orange-gradient);
}

.home-loader {
    position: fixed;
    inset: 0;
    z-index: 11000;
    width: 100%;
    height: 100%;
    background: var(--page-background);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.home-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.home-loader-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.20);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: homeLoaderSpin 0.8s linear infinite;
}

@keyframes homeLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}




/* =========================================================
   HOME SOCIAL MEDIA — FINAL SQUARE CARD VERSION
========================================================= */

.home-social-area {
    width: 100%;
    margin: 0;
    padding: 0;
}

.home-social-container {
    width: 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

.home-social-heading {
    width: 100%;
    min-height: 76px;
    margin-bottom: 11px;
    padding: 13px 15px;
    border: 1px solid rgba(44, 126, 220, 0.42);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(6, 43, 92, 0.98),
            rgba(2, 24, 56, 0.98)
        );

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.17);
}

.home-social-heading h2 {
    margin: 0 0 4px;
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.home-social-heading p {
    margin: 0;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.45;
}

.home-social-heading-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 122, 22, 0.22),
            rgba(255, 122, 22, 0.08)
        );

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        inset 0 0 0 1px rgba(255, 122, 22, 0.22);
}

.home-social-heading-icon i,
.home-social-heading-icon svg {
    color: var(--accent-orange);
    font-size: 21px;
}

.home-social-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 8px;
}

.home-social-card {
    position: relative;

    width: 100%;
    min-width: 0;

    aspect-ratio: 1 / 1;

    padding: 8px 3px;

    border: 1px solid rgba(44, 126, 220, 0.42);
    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(7, 48, 101, 0.98),
            rgba(3, 31, 75, 0.98)
        );

    color: var(--white) !important;
    text-align: center;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    overflow: hidden;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.home-social-card::before {
    content: "";

    position: absolute;
    top: -32px;
    right: -32px;

    width: 76px;
    height: 76px;

    border-radius: 50%;

    background: currentColor;
    opacity: 0.045;
}

.home-social-card:hover,
.home-social-card:focus {
    color: var(--white) !important;

    border-color: rgba(22, 136, 255, 0.72);

    transform: translateY(-2px);

    box-shadow:
        0 10px 23px rgba(0, 0, 0, 0.21),
        0 0 0 2px rgba(22, 136, 255, 0.07);
}

.home-social-card:active {
    transform: scale(0.97);
}

.home-social-icon {
    position: relative;
    z-index: 2;

    width: 54px;
    min-width: 54px;
    height: 54px;

    border: 3px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 7px 16px rgba(0, 0, 0, 0.22),
        inset 0 2px 0 rgba(255, 255, 255, 0.17);
}

.home-social-icon i,
.home-social-icon svg {
    color: var(--white) !important;
    font-size: 28px;
    line-height: 1;
}

.home-social-name {
    position: relative;
    z-index: 2;

    width: 100%;

    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Facebook */

.social-facebook .home-social-icon {
    background:
        linear-gradient(
            145deg,
            #2384ff,
            #0863d8
        );

    box-shadow:
        0 7px 17px rgba(24, 119, 242, 0.34),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

/* YouTube */

.social-youtube .home-social-icon {
    background:
        linear-gradient(
            145deg,
            #ff3030,
            #d90000
        );

    box-shadow:
        0 7px 17px rgba(255, 0, 0, 0.30),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

/* WhatsApp */

.social-whatsapp .home-social-icon {
    background:
        linear-gradient(
            145deg,
            #35df77,
            #16a94f
        );

    box-shadow:
        0 7px 17px rgba(37, 211, 102, 0.31),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

/* Telegram */

.social-telegram .home-social-icon {
    background:
        linear-gradient(
            145deg,
            #39bdf5,
            #168bc7
        );

    box-shadow:
        0 7px 17px rgba(34, 158, 217, 0.31),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media only screen and (max-width: 390px) {
    .home-social-container {
        padding-right: 8px;
        padding-left: 8px;
    }

    .home-social-grid {
        gap: 6px;
    }

    .home-social-card {
        padding: 6px 2px;
        border-radius: 15px;
        gap: 6px;
    }

    .home-social-icon {
        width: 48px;
        min-width: 48px;
        height: 48px;
    }

    .home-social-icon i,
    .home-social-icon svg {
        font-size: 25px;
    }

    .home-social-name {
        font-size: 9px;
    }
}

@media only screen and (max-width: 350px) {
    .home-social-grid {
        gap: 5px;
    }

    .home-social-card {
        border-radius: 13px;
    }

    .home-social-icon {
        width: 43px;
        min-width: 43px;
        height: 43px;
    }

    .home-social-icon i,
    .home-social-icon svg {
        font-size: 22px;
    }

    .home-social-name {
        font-size: 8px;
    }
}

@media only screen and (min-width: 576px) {
    .home-social-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .home-social-grid {
        gap: 12px;
    }

    .home-social-card {
        padding: 12px 6px;
        border-radius: 19px;
        gap: 10px;
    }

    .home-social-icon {
        width: 68px;
        min-width: 68px;
        height: 68px;
    }

    .home-social-icon i,
    .home-social-icon svg {
        font-size: 34px;
    }

    .home-social-name {
        font-size: 12px;
    }
}