/* Choose Section with Overlay Text */
.category-card.single2 {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 350px;
    background: #fff;
}

.category-card.single2:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-card.single2 .box-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.category-card.single2 .box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.category-card.single2:hover .box-img img {
    transform: scale(1.1);
}

.category-card.single2 .choose-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    z-index: 3;
    min-height: 40%;
}

.category-card.single2 .box-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    line-height: 1.3;
}

.category-card.single2 .box-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card.single2 .box-title a:hover {
    color: #ff7600;
}

.category-card.single2 .choose-subtitle {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin: 0;
}

/* Overlay card effect */
.category-card.single2::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 90, 174, 0.675));
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card.single2:hover::before {
    height: 70%;
    background: linear-gradient(transparent, rgba(0, 90, 174, 0.675));
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .category-card.single2 {
        height: 320px;
    }
    .category-card.single2 .box-title {
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .category-card.single2 {
        height: 300px;
    }

    .category-card.single2 .choose-content {
        padding: 15px;
    }

    .category-card.single2 .box-title {
        font-size: 16px;
    }

    .category-card.single2 .choose-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .category-card.single2 {
        height: 280px;
        margin-bottom: 20px;
    }
    .text-block {
        display: block;
    }

    .category-card.single2 .choose-content {
        padding: 12px;
    }

    .category-card.single2 .box-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .category-card.single2 .choose-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .category-card.single2 {
        height: 250px;
    }

    .category-card.single2 .choose-content {
        padding: 10px;
        min-height: 45%;
    }

    .category-card.single2 .box-title {
        font-size: 14px;
    }
}

/* Partner Brands Slider */
.partner-brands-slider {
    background: #fff;
    height: 30vh; /* Increased from 25vh to 30vh */
    min-height: 140px; /* Increased from 120px to 140px */
    max-height: 180px; /* Increased from 150px to 180px */
    overflow: hidden;
    position: relative;
    border-top: 1px solid #dee2e6;
}

.partner-brands-slider h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.brands-slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Perfect seamless animation */
@keyframes slideLeftPerfect {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly the width of original items (14 items + gaps) */
        transform: translateX(calc(-14 * (160px + 3rem)));
    }
}

.brand-item {
    flex-shrink: 0;
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.brand-item img {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%) opacity(0.7); */
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.3);
}

/* Pause animation on hover */
.brands-slider:hover {
    animation-play-state: paused;
}

/* Sliding animation */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for partner slider */
@media (max-width: 991.98px) {
    .partner-brands-slider {
        height: 12vh; /* Increased from 8vh to 12vh */
        min-height: 120px; /* Increased from 100px to 120px */
    }

    .partner-brands-slider h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .brand-item {
        height: 50px;
        gap: 3rem;
    }

    .brand-item img {
        max-height: 50px;
        max-width: 140px;
    }

    .brands-slider {
        animation-duration: 15s !important;
        gap: 2.5rem !important;
        width: calc(200% + 5rem) !important;
    }

    .brand-item {
        height: 50px !important;
        min-width: 140px !important;
        max-width: 180px !important;
        padding: 0 12px !important;
    }

    .brand-item img {
        max-height: 50px !important;
    }

    @keyframes slideLeftSmooth {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 1.25rem));
        }
    }
}

@media (max-width: 767.98px) {
    .partner-brands-slider {
        height: 15vh; /* Increased from 12vh to 15vh */
        min-height: 100px; /* Increased from 80px to 100px */
        max-height: 140px; /* Increased from 120px to 140px */
    }

    .partner-brands-slider h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .brand-item {
        height: 40px;
    }

    .brand-item img {
        max-height: 40px;
        max-width: 120px;
    }

    .brands-slider {
        animation-duration: 15s !important;
        gap: 2rem !important;
        width: calc(200% + 4rem) !important;
    }

    .brand-item {
        height: 45px !important;
        min-width: 120px !important;
        max-width: 150px !important;
        padding: 0 10px !important;
    }

    .brand-item img {
        max-height: 45px !important;
    }

    @keyframes slideLeftSmooth {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 1rem));
        }
    }
}
.enroll-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("/frontend_new/assets/img/enroll-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 500px;
}

.enroll-section:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 90, 174, 0.2),
        rgba(255, 118, 0, 0.2)
    );
    z-index: 0;
}

.enroll-section .container {
    position: relative;
    z-index: 2;
}

.enroll-section .section-title {
    margin-bottom: 40px;
}

.enroll-section .section-title h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.enroll-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enroll-section {
        padding: 60px 0;
        min-height: 400px;
    }

    .enroll-section .section-title h2 {
        font-size: 2rem;
    }

    .enroll-section .section-title p {
        font-size: 1rem;
    }
}
.card-shadow {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .card-shadow {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
        border-radius: 8px;
    }

    .card-shadow:hover {
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.9);
        transform: translateY(-1px);
    }
}
.about-img {
    width: 46% !important;
}
@media (max-width: 1600px) {
    .about-img {
        width: 40% !important;
    }
    .img-box15 .img1 img:first-child {
        margin-left: 360px !important;
    }
}
@media (min-width: 1278px) and (max-width: 1444px) {
    .about-img {
        width: 35% !important;
    }
    .img-box15 .img1 img:first-child {
        margin-left: 420px !important;
    }
}
@media (min-width: 1278px) and (max-width: 1298px) {
    .about-img {
        width: 30% !important;
    }
    .img-box15 .img1 img:first-child {
        margin-left: 500px !important;
    }
}
@media (max-width: 1278px) {
    .about-img {
        width: 28% !important;
    }
    .img-box15 .img1 img:first-child {
        margin-left: 550px !important;
    }
}
@media (max-width: 1200px) {
    .about-img {
        width: 50% !important;
    }
    .img-box15 .img1 img:first-child {
        margin-left: 200px !important;
    }
}
.thu_nhap {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-bottom: 15px;
    border-radius: 15px;
    background-color: #ffffff;
}

.thu_nhap:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}
.ors-title {
    background: linear-gradient(
        to right,
        #ff7600 0%,
        #3c2d1f 50%,
        #0b1422 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #000;
    display: inline-block;
}
.ors-gallery-custom {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ors-row {
    display: flex;
    gap: 0;
}
.ors-item {
    position: relative;
    overflow: hidden;
    margin: 0;
}
.ors-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.ors-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.ors-item-lg {
    flex: 2 1 0;
    height: 220px;
}
.ors-item-sm {
    flex: 1 1 0;
    height: 220px;
}
/* .ors-row:not(:last-child) .ors-item {
    border-bottom: 2px solid #fff;
}
.ors-row .ors-item:not(:last-child) {
    border-right: 2px solid #fff;
} */
.ors-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    opacity: 1;
    transform: translateY(40px);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px 20px 18px 20px;
    z-index: 2;
    min-height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.ors-item .ors-overlay {
    pointer-events: none;
}

.ors-item .ors-overlay .ors-text {
    opacity: 1;
    display: inline-block;
    font-family: "UTM Avo", "Sans Serif";
    font-size: 20px;
    color: #ffffff !important;
    /* line-height: 44px; */
    box-sizing: border-box;
}

.overlay-blue {
    background: rgba(34, 139, 230, 0.4);
}
.overlay-orange {
    background: rgba(255, 120, 0, 0.4);
}
.overlay-green {
    background: rgba(64, 192, 87, 0.4);
}
.overlay-light-blue {
    background: rgba(152, 255, 245, 0.4);
}
.overlay-red {
    background: rgba(255, 114, 114, 0.4);
}
.overlay-purple {
    background: rgba(219, 76, 255, 0.4);
}
.overlay-yellow {
    background: rgba(255, 200, 40, 0.4);
}

/* Hover */

.overlay-blue,
.overlay-orange,
.overlay-green,
.overlay-light-blue,
.overlay-red,
.overlay-purple,
.overlay-yellow {
    transition: background 0.4s ease-in-out;
}
.ors-item:hover .overlay-blue {
    background: rgba(0, 101, 190, 0.86) !important;
}
.ors-item:hover .overlay-orange {
    background: rgba(192, 91, 2, 0.86) !important;
}
.ors-item:hover .overlay-green {
    background: rgba(44, 168, 67, 0.86) !important;
}
.ors-item:hover .overlay-light-blue {
    background: rgba(0, 190, 171, 0.86) !important;
}
.ors-item:hover .overlay-red {
    background: rgba(255, 114, 114, 0.86) !important;
}
.ors-item:hover .overlay-purple {
    background: rgba(155, 25, 188, 0.86) !important;
}
.ors-item:hover .overlay-yellow {
    background: rgba(198, 152, 12, 0.86) !important;
}
.ors-overlay {
    opacity: 1;
    transform: translateY(0);
}
.ors-item .ors-overlay {
    opacity: 1;
}
.ors-item .ors-overlay,
.ors-item .ors-overlay * {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 0.234),
        opacity 0.32s cubic-bezier(0.4, 0, 0.2, 0.234);
}
.ors-item .ors-overlay {
    transform: translateY(0);
    opacity: 1;
}
.ors-item:hover .ors-overlay .ors-text {
    /* transform: translateY(-100%); */
    /* opacity: 1; */
    pointer-events: auto;
}
.ors-item:hover .ors-overlay .ors-desc {
    transform: translateY(-10%);
    opacity: 1;
    pointer-events: auto;
}

.ors-title,
.ors-desc {
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    font-family: "UTM Avo", Arial, sans-serif;
}
.ors-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-family: "Montserrat", Arial, sans-serif;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.ors-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(30px);
}
.ors-item:hover .ors-desc {
    opacity: 0.234;
    transition-delay: 0.08s;
}
@media (max-width: 991px) {
    .ors-title {
        font-size: 1.05rem;
    }
    .ors-desc {
        font-size: 0.92rem;
    }
    .ors-overlay {
        padding: 18px 16px 12px 16px;
    }
}
@media (max-width: 575px) {
    .ors-overlay {
        padding: 10px 8px 8px 8px;
    }
    /* Smaller text for ORS story section on mobile */
    .ors-item .ors-overlay .ors-text {
        font-size: 16px;
        line-height: 1.3;
    }
    .ors-desc {
        margin-top: 10px;
        font-size: 0.82rem;
        line-height: 1.35;
    }
    /* Shrink news/project card titles on mobile */
    .news-title,
    .news-title a {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }

    /* Hide date & category meta info in mobile cards */
    .d-md-none .blog-meta {
        display: none !important;
    }

    /* Disable hover elevation animation on mobile to avoid jitter */
    .th-ani,
    .th-ani:hover {
        -webkit-transform: none !important;
        transform: none !important;
    }

    /* Reduce jitter from ORS gallery & cards */
    .ors-item,
    .ors-item *,
    .thu_nhap,
    .thu_nhap * {
        transition: none !important;
    }
    .thu_nhap:hover {
        /* Keep same shadow as default */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
    }
}
.overlay-hover-blue,
.overlay-hover-orange,
.overlay-hover-green,
.overlay-hover-light-blue,
.overlay-hover-red,
.overlay-hover-purple,
.overlay-hover-yellow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transform: translateY(40px);
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 0.234),
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 0.234);
}
.overlay-hover-blue {
    background: rgba(0, 46, 87, 0.705);
}
.overlay-hover-orange {
    background: rgba(255, 120, 0, 0.234);
}
.overlay-hover-green {
    background: rgba(64, 192, 87, 0.234);
}
.overlay-hover-light-blue {
    background: rgba(152, 255, 245, 0.234);
}
.overlay-hover-red {
    background: rgba(255, 114, 114, 0.234);
}
.overlay-hover-purple {
    background: rgba(219, 76, 255, 0.234);
}
.overlay-hover-yellow {
    background: rgba(255, 200, 40, 0.234);
}
.ors-item:hover .overlay-hover-blue,
.ors-item:hover .overlay-hover-orange,
.ors-item:hover .overlay-hover-green,
.ors-item:hover .overlay-hover-light-blue,
.ors-item:hover .overlay-hover-red,
.ors-item:hover .overlay-hover-purple,
.ors-item:hover .overlay-hover-yellow {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.case-slider .case-img img {
    height: 400px;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 991px) {
    .case-slider .case-img img {
        object-fit: cover;
        object-position: center top;
        width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .case-slider .case-img img {
        height: 320px;
        object-fit: contain;
        object-position: center;
        width: 100%;
        background-color: #f8f9fa;
    }
}

@media (min-width: 1201px) and (max-width: 1278px) {
    .case-slider .case-img img {
        height: 350px;
        object-fit: cover;
        object-position: center top;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .case-slider .case-img img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        background-color: #f8f9fa;
    }
}

@media (max-width: 480px) {
    .case-slider .case-img img {
        height: 200px;
        object-fit: contain;
        object-position: center;
        width: 100%;
        background-color: #f8f9fa;
    }
}

.case-slider {
    margin-bottom: 10px;
}

/* Optimized hero height for laptop screens */
.hero-2 .th-hero-bg {
    height: 110vh; /* Reduced from 120vh to 85vh for better laptop fit */
    min-height: 600px; /* Ensure minimum height */
    max-height: 1200px; /* Prevent excessive height on large screens */
}

.section-bg-light {
    background: rgba(242, 242, 242, 0.55);
}

.section-bg-white {
    background: #fff;
}

/* Enhanced responsive adjustments for laptop screens */
@media (max-height: 700px) {
    .hero-style2 {
        padding-top: 80px !important;
        padding-bottom: 120px !important;
    }
}

/* Optimize for standard laptop screens (1366x768, 1920x1080) */
@media (min-height: 701px) and (max-height: 1080px) {
    .hero-style2 {
        padding-top: 120px !important; /* Reduced from default */
        padding-bottom: 150px !important; /* Reduced from default */
    }

    .hero-2 .th-hero-bg {
        height: 100vh !important;
        min-height: 550px !important;
        max-height: 800px !important;
    }
}

/* Specific optimization for common laptop resolutions */
@media (min-width: 1024px) and (max-width: 1600px) and (min-height: 700px) and (max-height: 900px) {
    .hero-2 .th-hero-bg {
        height: 100vh !important; /* Perfect fit for laptops */
        min-height: 500px !important;
        max-height: 750px !important;
    }

    .hero-style2 {
        padding-top: 100px !important;
        padding-bottom: 120px !important;
    }

    .heroThumbs.style2 {
        bottom: 20px !important;
    }
}

.about-feature-wrap {
    min-height: 150px;
}

/* Ensure images row matches feature list height */
.row.mt-4.d-flex.align-items-stretch {
    min-height: 150px;
    max-height: 220px;
}
.row.d-flex.align-items-stretch {
    min-height: 150px;
    max-height: 220px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-feature-wrap,
    .row.mt-4.d-flex.align-items-stretch {
        min-height: 130px;
        max-height: 160px;
    }
}

@media (max-width: 992px) {
    .about-feature-wrap,
    .row.mt-4.d-flex.align-items-stretch {
        min-height: 120px;
        max-height: 140px;
    }
}

@media (max-width: 768px) {
    .about-feature-wrap,
    .row.mt-4.d-flex.align-items-stretch {
        min-height: auto;
        max-height: none;
    }
}
@media (max-width: 1199.1px) {
    .d-xs-none {
        display: none !important;
    }
}

/* Hide sec-text on specific tablet screen sizes */
@media (min-width: 1200px) and (max-width: 1399px) {
    .about-area .sec-text {
        display: none !important;
    }
}
@media (min-width: 1200px) and (max-width: 1299.1px) {
    .hero-2 .th-swiper-custom {
        top: 80% !important;
    }
}

/* Enhanced Recruitment Cards Design */
.thu_nhap {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid rgba(255, 118, 0, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.thu_nhap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7600, #ff9500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thu_nhap:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(255, 118, 0, 0.15) !important;
    border-color: rgba(255, 118, 0, 0.3) !important;
}

.thu_nhap:hover::before {
    opacity: 1;
}

/* Recruitment card specific styling */
.thu_nhap .card-title a {
    color: #ff7600 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.thu_nhap .card-title a:hover {
    color: #e06500 !important;
}

.thu_nhap .text-muted {
    color: #6c757d !important;
    font-weight: 500 !important;
}

.thu_nhap .text-success {
    color: #28a745 !important;
    font-weight: 600 !important;
    /* background: rgba(40, 167, 69, 0.1); */
    /* padding: 4px 8px; */
    border-radius: 6px;
    display: inline-block;
}

.thu_nhap .th-btn {
    background: linear-gradient(135deg, #ff7600, #ff9500) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: white !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.thu_nhap .th-btn:hover {
    background: linear-gradient(135deg, #e06500, #e08500) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 118, 0, 0.3) !important;
}

/* Philosophy Cards (Tâm, Đức, Chí) Enhanced Design */
.philosophy-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid rgba(255, 118, 0, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.philosophy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 118, 0, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.philosophy-card:hover::before {
    left: 100%;
}

.philosophy-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(255, 118, 0, 0.2) !important;
    border-color: rgba(255, 118, 0, 0.3) !important;
}

.philosophy-card .icon-circle {
    background: linear-gradient(135deg, #ff7600, #ff9500) !important;
    box-shadow: 0 8px 20px rgba(255, 118, 0, 0.3) !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

.philosophy-card:hover .icon-circle {
    transform: scale(1.1) rotate(10deg) !important;
    box-shadow: 0 12px 30px rgba(255, 118, 0, 0.4) !important;
}

.philosophy-card h5 {
    color: #2c3e50 !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.philosophy-card p {
    color: #5a6c7d !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

/* Section Headers Enhancement */
/* .fw-bold {
    color: #2c3e50 !important;
    position: relative !important;
} */

/* .fw-bold::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff7600, #ff9500);
    border-radius: 2px;
} */

/* Responsive Design */
@media (max-width: 768px) {
    .thu_nhap:hover {
        transform: none !important;
    }

    .philosophy-card:hover {
        transform: translateY(-6px) !important;
    }

    .philosophy-card h5 {
        font-size: 1.2rem !important;
    }

    .philosophy-card .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
}
@media (max-width: 768px) {
    .th-display {
        display: flex !important;
    }
}

/* Enhanced Mobile Navbar Animations - Optimized for smooth scrolling */
.sticky-wrapper {
    position: relative;
    z-index: 1000;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    background-color: var(--white-color, #fff);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
}

@media (max-width: 1199px) {
    .sticky-wrapper {
        transform: translate3d(0, 0, 0); /* Enable hardware acceleration */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Initial state for mobile navbar */
    .sticky-wrapper.mobile-navbar-ready {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
    }

    /* Scrolling down - hide navbar smoothly */
    .sticky-wrapper.scrolling-down {
        transform: translate3d(0, -100%, 0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Scrolling up - show navbar smoothly */
    .sticky-wrapper.scrolling-up {
        transform: translate3d(0, 0, 0);
        transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
    }

    /* Ensure navbar is always visible at top */
    .sticky-wrapper:not(.scrolling-down):not(.scrolling-up) {
        transform: translate3d(0, 0, 0);
        transition: transform 0.2s ease-out;
    }
}

/* Improve navbar performance on mobile */
@media (max-width: 1199px) {
    .sticky-wrapper * {
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Reduce repaints during scroll */
    .sticky-wrapper .th-header {
        will-change: transform;
        transform: translateZ(0);
    }

    /* Smooth container during animations */
    .sticky-wrapper .menu-area {
        transform: translateZ(0);
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift during navbar transitions */
@media (max-width: 1199px) {
    body {
        scroll-padding-top: 0;
    }

    /* Prevent content jumping when navbar hides/shows */
    .sticky-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--white-color, #fff);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
    }

    /* Add smooth transform origin */
    .sticky-wrapper.scrolling-down,
    .sticky-wrapper.scrolling-up {
        transform-origin: center top;
    }

    /* Prevent flickering during rapid scroll changes */
    .sticky-wrapper {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

/* Accessibility - respect user preferences */
@media (prefers-reduced-motion: reduce) {
    .sticky-wrapper {
        transition: none;
    }

    .sticky-wrapper.scrolling-down {
        transform: translate3d(0, -100%, 0);
        transition: none;
    }

    .sticky-wrapper.scrolling-up {
        transform: translate3d(0, 0, 0);
        transition: none;
    }
}

/* CEO Quote Styling */
.ceo-quote-container {
    position: relative;
    margin: 20px 0;
}

.ceo-quote {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-left: 5px solid #ff7600;
    border-radius: 15px;
    padding: 30px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(255, 118, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ceo-quote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 118, 0, 0.02) 0%,
        rgba(255, 118, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ceo-quote:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 118, 0, 0.15);
    border-left-color: #e06500;
}

.ceo-quote:hover::before {
    opacity: 1;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ff7600;
    font-size: 24px;
    opacity: 0.6;
    z-index: 1;
}

.quote-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    font-style: italic;
    margin: 0 0 25px 0;
    padding-left: 20px;
    position: relative;
    z-index: 2;
}

.quote-signature {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.signature-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff7600, #ff9500);
    border-radius: 1px;
}

.signature-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.signature-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
    position: relative;
}

.signature-name::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff7600);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ceo-quote:hover .signature-name::after {
    opacity: 1;
}

.signature-title {
    font-size: 12px;
    font-weight: 500;
    color: #ff7600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design for Quote */
@media (max-width: 768px) {
    .ceo-quote {
        padding: 20px;
        margin: 15px 0;
    }

    .quote-icon {
        top: 15px;
        left: 15px;
        font-size: 20px;
    }

    .quote-text {
        font-size: 15px;
        padding-left: 15px;
        line-height: 1.6;
    }

    .signature-info {
        align-items: center;
        text-align: center;
    }

    .signature-name {
        font-size: 16px;
    }

    .signature-title {
        font-size: 11px;
    }

    .signature-line {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .ceo-quote {
        padding: 15px;
    }

    .quote-signature {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .signature-line {
        width: 40px;
        order: 2;
    }

    .signature-info {
        order: 1;
    }
}

/* ===========================================
   BRANDS SLIDER FIXES - MOBILE RESPONSIVE
   =========================================== */

/* Override existing brands slider styles for better mobile experience */
.brands-slider-container {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 20px 0 !important;
}

.brands-slider {
    display: flex !important;
    align-items: center !important;
    animation: slideLeftPerfect 25s linear infinite !important;
    gap: 3rem !important;
    white-space: nowrap !important;
    /* Perfect seamless loop calculation */
    width: max-content !important;
}

/* Perfect seamless animation */
@keyframes slideLeftPerfect {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly the width of original items (14 items + gaps) */
        transform: translateX(calc(-14 * (160px + 3rem)));
    }
}

.brand-item {
    flex-shrink: 0 !important;
    height: 90px !important; /* Increased from 60px to 90px (1.5x) */
    min-width: 160px !important; /* Fixed minimum width for consistency */
    max-width: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.brand-item img {
    max-height: 90px !important; /* Increased from 60px to 90px (1.5x) */
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: all 0.3s ease !important;
    /* Prevent image distortion */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    /* Remove dark filters and add white background for logos with transparency */
    filter: none !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    padding: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.brand-item:hover img {
    filter: none !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Pause animation on hover */
.brands-slider:hover {
    animation-play-state: paused !important;
}

/* Improved sliding animation - seamless loop */
@keyframes slideLeftSmooth {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

/* Enhanced responsive adjustments for brands slider */
@media (max-width: 991.98px) {
    .brands-slider {
        animation-duration: 15s !important;
        gap: 2.5rem !important;
        width: max-content !important;
    }

    .brand-item {
        height: 75px !important; /* Increased from 50px to 75px (1.5x) */
        min-width: 140px !important;
        max-width: 180px !important;
        padding: 0 12px !important;
    }

    .brand-item img {
        max-height: 75px !important; /* Increased from 50px to 75px (1.5x) */
    }

    @keyframes slideLeftPerfect {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-14 * (140px + 2.5rem)));
        }
    }
}

@media (max-width: 767.98px) {
    .brands-slider-container {
        padding: 15px 0 !important;
    }

    .brands-slider {
        animation-duration: 15s !important;
        gap: 2rem !important;
        width: max-content !important;
    }

    .brand-item {
        height: 68px !important; /* Increased from 45px to 68px (1.5x) */
        min-width: 120px !important;
        max-width: 150px !important;
        padding: 0 10px !important;
    }

    .brand-item img {
        max-height: 68px !important; /* Increased from 45px to 68px (1.5x) */
    }

    @keyframes slideLeftPerfect {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-14 * (120px + 2rem)));
        }
    }
}

@media (max-width: 575.98px) {
    .brands-slider-container {
        padding: 10px 0 !important;
    }

    .brands-slider {
        animation-duration: 15s !important;
        gap: 1.5rem !important;
        width: max-content !important;
    }

    .brand-item {
        height: 60px !important; /* Increased from 40px to 60px (1.5x) */
        min-width: 100px !important;
        max-width: 130px !important;
        padding: 0 8px !important;
    }

    .brand-item img {
        max-height: 60px !important; /* Increased from 40px to 60px (1.5x) */
    }

    .brand-item:hover img {
        transform: scale(1.02) !important; /* Smaller scale on mobile */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
    }

    @keyframes slideLeftPerfect {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-14 * (100px + 1.5rem)));
        }
    }
}

/* Performance optimization for smooth animation */
.brands-slider,
.brand-item,
.brand-item img {
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.testi-card_review {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    white-space: nowrap !important;
    margin-bottom: 15px !important;
}

.testi-card_review i {
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* iPad specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
    .testi-card_review {
        justify-content: flex-start !important;
        margin-bottom: 12px !important;
    }

    .testi-card_review i {
        font-size: 13px !important;
        margin-right: 2px !important;
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .testi-card_review {
        margin-bottom: 10px !important;
    }

    .testi-card_review i {
        font-size: 12px !important;
        margin-right: 2px !important;
    }
}

/* ===========================================
   SECTION PADDING OVERRIDE - 40PX
   =========================================== */

/* Override default section spacing to 40px */
:root {
    --section-space: 40px !important;
    --section-space-mobile: 40px !important;
}

.space,
.space-top {
    padding-top: 40px !important;
}

.space,
.space-bottom {
    padding-bottom: 40px !important;
}

.space-extra,
.space-extra-top {
    padding-top: 30px !important;
}

.space-extra,
.space-extra-bottom {
    padding-bottom: 30px !important;
}

@media (max-width: 991px) {
    .space,
    .space-top {
        padding-top: 40px !important;
    }

    .space,
    .space-bottom {
        padding-bottom: 40px !important;
    }

    .space-extra,
    .space-extra-top {
        padding-top: 30px !important;
    }

    .space-extra,
    .space-extra-bottom {
        padding-bottom: 30px !important;
    }
}
.h-custsom {
    height: 128% !important;
}
.h-175 {
    height: 95.3% !important;
}
@media (max-width: 1444px) {
    .h-175 {
        height: 110% !important;
    }
    .h-custsom{
        height: 139% !important;
    }
    .brands-slider {
        display: flex !important;
        align-items: center !important;
        animation: slideLeftPerfect 40s linear infinite !important;
        gap: 3rem !important;
        white-space: nowrap !important;
        /* Perfect seamless loop calculation */
        width: max-content !important;
    }
}

/* ===========================================
   RECENT POSTS SIDEBAR OPTIMIZATION
   =========================================== */

/* Recent posts layout cho desktop và mobile */
.recent-post {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
}

.recent-post:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Ảnh sidebar không bo tròn */
.recent-post .media-img img {
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
    object-fit: cover !important;
}

/* Responsive cho mobile */
@media (max-width: 767px) {
    .recent-post {
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }

    .recent-post .post-title {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
    }

    .recent-post .recent-post-meta {
        font-size: 10px !important;
        gap: 8px !important;
    }

    .recent-post .media-img {
        width: 80px !important;
        flex-shrink: 0 !important;
    }

    .recent-post .media-img img {
        aspect-ratio: 16/12 !important;
    }
}

/* Responsive cho tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .recent-post .post-title {
        font-size: 13px !important;
    }

    .recent-post .recent-post-meta {
        font-size: 10px !important;
        gap: 10px !important;
    }
}

/* Equal Height Service Cards */
@media (min-width: 768px) {
    .service-area .row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch; /* Stretch all items to the same height */
    }

    .service-area .row > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .service-box.service-style-1 {
        display: flex;
        flex-direction: column;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        background: var(--white-color);
    }

    .service-box.service-style-1:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .service-box.service-style-1 .service-img {
        flex: 0 0 auto; /* Don't grow or shrink */
        order: 1;
    }

    .service-box.service-style-1 .service-content {
        flex: 1; /* Take remaining space */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        order: 2;
        border: none; /* Remove border as we have box-shadow on parent */
        border-radius: 0;
        margin: 0;
        padding: 25px;
    }

    .service-box.service-style-1 .service-content .box-title {
        flex: 0 0 auto;
        margin-bottom: 15px;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
        min-height: 50px; /* Minimum height for title consistency */
        display: flex;
        align-items: center;
    }

    .service-box.service-style-1 .service-content .service-box_text {
        flex: 1; /* Take available space */
        margin-bottom: 20px;
        line-height: 1.6;
        color: #666;
        min-height: 80px; /* Minimum height for text consistency */
    }

    .service-box.service-style-1 .service-content .th-btn {
        flex: 0 0 auto; /* Don't grow or shrink */
        margin-top: auto; /* Push to bottom */
        align-self: flex-start; /* Align to left */
        font-weight: 500;
        padding: 12px 25px;
        border-radius: 25px;
        transition: all 0.3s ease;
    }

    .service-box.service-style-1 .service-content .th-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile optimization - keep cards natural height on mobile */
@media (max-width: 767px) {
    .service-box.service-style-1 {
        margin-bottom: 30px;
    }

    .service-box.service-style-1 .service-content {
        padding: 20px;
    }

    .service-box.service-style-1 .service-content .box-title {
        font-size: 18px;
        min-height: auto;
        margin-bottom: 10px;
    }

    .service-box.service-style-1 .service-content .service-box_text {
        min-height: auto;
        margin-bottom: 15px;
    }

    .service-box.service-style-1 .service-content .th-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Additional styling for better visual consistency */
.service-box.service-style-1 .service-img img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Smooth transitions for better UX */
.service-box.service-style-1 * {
    transition: all 0.3s ease;
}

/* Text ellipsis for long content */
.service-box.service-style-1 .service-content .box-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-decoration: none;
    color: inherit;
}

.service-box.service-style-1 .service-content .service-box_text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}
.post-title {
    font-weight: 700 !important;
    font-size: 46px;
    font-weight: 500;
    color: #212529;
    line-height: 1.3;
}
