.tdb-projects-page {
    background: #fff
}

.tdb-projects-page .tdb-header {
    position: relative;
    color: var(--tdb-navy);
    background: #fff;
    border-bottom: 1px solid var(--tdb-border)
}

.tdb-projects-page .tdb-menu a {
    color: var(--tdb-navy)
}

.tdb-projects-page .tdb-menu a:hover,
.tdb-projects-page .tdb-menu a.is-active {
    color: var(--tdb-blue)
}

.tdb-projects-page .tdb-menu a.is-active:after {
    background: var(--tdb-blue)
}

.projects-hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: var(--tdb-navy);
    color: #fff
}

.projects-hero__media {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 24, 53, .97), rgba(4, 24, 53, .28)), url('https://tdbsolution.com/wp-content/uploads/2026/07/hero_section.png') 68% 44%/cover no-repeat
}

.projects-hero__media:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(56, 130, 246, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 130, 246, .09) 1px, transparent 1px);
    background-size: 70px 70px
}

.projects-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 82px
}

.projects-hero h1 {
    color: #fff;
    font-size: var(--tdb-fs-heading-1);
    line-height: 1.1
}

.projects-hero h1 span {
    color: var(--tdb-amber)
}

.projects-hero p {
    max-width: 600px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .82);
    font-size: var(--tdb-fs-body-1);
    line-height: 1.65
}

.projects-section {
    padding: 48px 0
}

.projects-section--compact {
    padding-top: 18px
}

.projects-heading {
    margin-bottom: 24px
}

.projects-heading h2 {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tdb-blue);
    font-size: var(--tdb-fs-heading-2);
    line-height: 1.2
}

.projects-heading h2 span {
    color: var(--tdb-amber)
}

.featured-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.project-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--tdb-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .06)
}

.project-card>img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0
}

.project-card>div {
    display: flex;
    padding: 20px;
    flex: 1;
    flex-direction: column
}

.project-card h3 {
    font-size: var(--tdb-fs-body-1);
    line-height: 1.35
}

.project-card p {
    margin-top: 8px;
    color: var(--tdb-muted);
    font-size: var(--tdb-fs-caption);
    line-height: 1.5
}

.project-card ul {
    margin: 14px 0 18px;
    padding-left: 18px
}

.project-card li {
    margin-bottom: 7px;
    font-size: var(--tdb-fs-caption);
    line-height: 1.45
}

.project-card li::marker {
    color: var(--tdb-blue)
}

.project-card a,
.deployed-projects a {
    margin-top: auto;
    color: var(--tdb-blue) !important;
    font-size: var(--tdb-fs-caption);
    font-weight: 700
}

.project-card--wide {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 42% 1fr
}

.project-card--wide>img {
    height: 100%;
    min-height: 250px
}

.project-card--wide>div {
    padding: 26px
}

.deployed-projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.deployed-projects article {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--tdb-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .06)
}

.deployed-projects img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 0
}

.deployed-projects small,
.deployed-projects h3,
.deployed-projects ul,
.deployed-projects a {
    margin-left: 16px;
    margin-right: 16px
}

.deployed-projects small {
    margin-top: 14px;
    color: var(--tdb-blue);
    font-size: 10px;
    font-weight: 700
}

.deployed-projects h3 {
    margin-top: 8px;
    font-size: var(--tdb-fs-body-2);
    line-height: 1.35
}

.deployed-projects ul {
    min-height: 126px;
    margin-top: 12px;
    margin-bottom: 14px;
    padding-left: 15px
}

.deployed-projects li {
    margin-bottom: 7px;
    font-size: var(--tdb-fs-caption);
    line-height: 1.4
}

.deployed-projects li::marker {
    color: var(--tdb-blue)
}

.deployed-projects a {
    margin-bottom: 18px
}

.projects-cta {
    padding: 20px 0 46px
}

.projects-cta>.tdb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 26px 34px;
    border-radius: 14px;
    background: linear-gradient(120deg, var(--tdb-blue), var(--tdb-navy));
    color: #fff
}

.projects-cta>.tdb-container>div {
    display: flex;
    align-items: center;
    gap: 20px
}

.projects-cta>.tdb-container>div:first-child>span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #fff;
    color: var(--tdb-blue)
}

.projects-cta h2 {
    color: #fff;
    font-size: var(--tdb-fs-heading-3)
}

.projects-cta p {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: var(--tdb-fs-body-2)
}

.projects-cta .tdb-button {
    min-width: 160px
}

@media(max-width:1100px) {
    .featured-projects {
        grid-template-columns: repeat(2, 1fr)
    }

    .project-card--wide {
        grid-column: 1/-1
    }

    .deployed-projects {
        grid-template-columns: repeat(3, 1fr)
    }

    .projects-cta>.tdb-container {
        align-items: flex-start;
        flex-direction: column
    }

    .projects-cta>.tdb-container>div:last-child {
        align-self: stretch
    }

    .projects-cta .tdb-button {
        flex: 1
    }
}

@media(max-width:780px) {
    .projects-hero {
        min-height: 390px
    }

    .projects-hero__media {
        background-position: center
    }

    .projects-hero__content {
        padding-top: 58px
    }

    .projects-hero h1 {
        font-size: calc(var(--tdb-fs-heading-1)*.85)
    }

    .projects-section {
        padding: 40px 0
    }

    .featured-projects,
    .deployed-projects {
        grid-template-columns: 1fr 1fr
    }

    .project-card--wide {
        display: flex;
        grid-column: 1/-1
    }

    .project-card--wide>img {
        height: 220px;
        min-height: 0
    }

    .projects-cta>.tdb-container>div:last-child {
        flex-direction: column
    }

    .projects-cta .tdb-button {
        width: 100%
    }
}

@media(max-width:520px) {

    .featured-projects,
    .deployed-projects {
        grid-template-columns: 1fr
    }

    .project-card--wide {
        grid-column: auto
    }

    .projects-heading h2 {
        font-size: var(--tdb-fs-heading-3)
    }

    .projects-cta>.tdb-container {
        width: min(calc(100% - 28px), var(--tdb-container));
        padding: 24px 20px
    }

    .projects-cta>.tdb-container>div:first-child {
        align-items: flex-start
    }

    .projects-cta>.tdb-container>div:first-child>span {
        display: none
    }
}

/* ===== Slide ngang chỉ áp dụng cho "Dự án đã triển khai" ===== */
.projects-heading--slider {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.projects-nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.projects-nav__btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--tdb-border);
	border-radius: 50%;
	background: #fff;
	color: var(--tdb-navy);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}

.projects-nav__btn:hover {
	background: var(--tdb-blue);
	border-color: var(--tdb-blue);
	color: #fff;
}

.deployed-projects {
	display: flex;
	grid-template-columns: unset;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.deployed-projects::-webkit-scrollbar {
	display: none;
}

.deployed-projects > article {
	flex: 0 0 270px;
	scroll-snap-align: start;
}

@media (max-width: 780px) {
	.deployed-projects > article {
		flex-basis: 230px;
	}
	.projects-nav__btn {
		width: 34px;
		height: 34px;
		font-size: 18px;
	}
}