/* ---- Homepage Specific Styles ---- */

.xhp-hero {
    background-size: cover;
    background-position: center;
    background-color: #0f2b4c;
    color: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-left: 0;
}
.xhp-hero__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.xhp-hero__content {
    max-width: 40%;
    text-align: left;
}
.xhp-hero__title {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
}
.xhp-hero__desc {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}
.xhp-hero__features {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.xhp-hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.xhp-hero__feature .xhp-icon {
    width: 24px;
    height: 24px;
    stroke: #fff;
    flex-shrink: 0;
}
.xhp-hero__actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.xhp-hero .xhp-btn--primary {
    background-color: #fff;
    color: #0f2b4c;
    border-color: #fff;
}
.xhp-hero .xhp-btn--primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.xhp-hero .xhp-btn--outline {
    border-color: #fff;
    color: #fff;
}
.xhp-hero .xhp-btn--outline:hover {
    background-color: #fff;
    color: #0f2b4c;
}

/* Performance */
.xhp-performance {
    background: #fff;
    padding: 60px 0;
}
.xhp-performance__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-direction: column;
}
.xhp-performance__row {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.xhp-performance__content {
    flex: 1;
}
.xhp-performance__desc {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}
.xhp-params-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--xhp-primary);
    margin: 0 0 12px;
}
.xhp-performance__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.xhp-performance__image {
    flex: 0 0 50%;
    max-width: 50%;
    aspect-ratio: 4/3;
    background: #f5f6f8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.xhp-performance__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xhp-performance__image-placeholder {
    color: #bbb;
    font-size: 18px;
}
.xhp-params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 28px;
}
.xhp-params-table tr {
    border-bottom: 1px solid var(--xhp-gray-border);
}
.xhp-params-table tr:last-child {
    border-bottom: none;
}
.xhp-params-table td {
    padding: 10px 12px;
    vertical-align: middle;
}
.xhp-params-table tr:nth-child(even) {
    background-color: #f9fafb;
}
.xhp-params-label {
    font-weight: 600;
    color: var(--xhp-primary);
    width: 40%;
}
.xhp-params-value {
    color: #333;
}

/* Factory */
.xhp-factory {
    background-image: url('/wp-content/uploads/2026/08/Factory-Strength_bg.jpg');
    padding: 60px 0;
}
.xhp-factory__inner {
    max-width: 1600px;
    margin: 0 auto;
    text-align: left;
}
.xhp-factory__sub {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 40px;
    text-align: left;
}
.xhp-factory__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: left;
}
.xhp-factory__item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.xhp-factory__item:hover {
    transform: translateY(-4px);
}
.xhp-factory__item-image {
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    position: relative;
}
.xhp-factory__item-badge {
    position: absolute;
    top: 30px;
    left: 0;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 16px 4px 12px;
    border-radius: 0 4px 4px 0;
    letter-spacing: 0.5px;
}
.xhp-factory__item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--xhp-primary);
    margin: 16px 18px 6px;
}
.xhp-factory__item-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 18px 18px;
}

/* Home Products */
.xhp-home-products {
    background: #fff;
    padding: 60px 0;
}
.xhp-home-products__inner {
    max-width: 1600px;
    margin: 0 auto;
}
.xhp-home-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.xhp-home-products__item {
    background: #fff;
    border: 1px solid var(--xhp-gray-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.xhp-home-products__item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.xhp-home-products__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.xhp-home-products__thumb {
    aspect-ratio: 4/3;
    background: #f5f5f5;
    overflow: hidden;
}
.xhp-home-products__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.xhp-home-products__link:hover .xhp-home-products__thumb img {
    transform: scale(1.03);
}
.xhp-home-products__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}
.xhp-home-products__item-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 16px 18px 6px;
}
.xhp-home-products__item-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 18px 18px;
}

/* Applications */
.xhp-applications {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-color: #0a1a2b;
    overflow: hidden;
}
.xhp-applications__slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.xhp-applications__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.xhp-applications__slide-content {
    max-width: 40%;
    padding: 20px 30px;
    margin-bottom: 5%; 
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 2;
    pointer-events: none; 
    transition: opacity 0.8s ease;
}
.xhp-applications__slide-content h3 {
    font-size: 45px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.xhp-applications__slide-content p {
    font-size: 23px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}
.xhp-applications__slide.active {
    opacity: 1;
}
.xhp-applications__inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    min-height: 90vh;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 60px;
}
.xhp-applications__tabs {
    flex: 1;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    position: relative;
    z-index: 2;
}
.xhp-applications__list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.xhp-applications__tab {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.3s;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.xhp-applications__tab:last-child {
    border-bottom: none;
}
.xhp-applications__tab.active {
    color: #ffffff;
}
.xhp-applications__line {
    display: inline-block;
    width: 4px;
    height: 28px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.3s;
    flex-shrink: 0;
}
.xhp-applications__tab.active .xhp-applications__line {
    background: #2A7DE1;
}

/* Home Blogs */
.xhp-home-blogs {
    background: #fff;
    padding: 60px 0;
}
.xhp-home-blogs__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}
.xhp-home-blogs__tabs {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--xhp-gray-border);
    padding-bottom: 10px;
}
.xhp-home-blogs__tab {
    padding: 6px 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    font-size: 18px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    font-family: inherit;
    border-bottom: 3px solid transparent;
}
.xhp-home-blogs__tab:hover {
    color: var(--xhp-primary);
}
.xhp-home-blogs__tab.active {
    color: var(--xhp-primary);
    border-bottom-color: var(--xhp-accent);
}
.xhp-home-blogs__panels {
    position: relative;
}
.xhp-home-blogs__panel {
    display: none;
    animation: xhpFadeIn 0.3s ease;
}
.xhp-home-blogs__panel.active {
    display: block;
}
.xhp-home-blogs__empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* Home Contact */
.xhp-home-contact {
    background-image: url("/wp-content/uploads/2026/08/home-contact-bg.jpg");
    padding: 60px 0;
}
.xhp-home-contact__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 0;
}
.xhp-home-contact__left {
    flex: 1;
}
.xhp-home-contact__desc {
    font-size: 16px;
    color: #fff;
    line-height: 1.7;
}
.xhp-home-contact__right {
    flex: 1;
    max-width: 600px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .xhp-home-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .xhp-factory__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1024px) {
    .xhp-hero {
        min-height: 600px;
    }
    .xhp-hero__title {
        font-size: 38px;
    }
    .xhp-hero__inner {
        max-width: 80%;
    }
    .xhp-hero__content {
        max-width: 100%;      
        text-align: center;    
    }
    .xhp-hero__actions {
        justify-content: center;
    }
    .xhp-hero__features {
        justify-content: center;
    }
    .xhp-performance__inner {
        flex-direction: column;
        gap: 30px;
    }
    .xhp-performance__image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    .xhp-applications__inner {
        flex-direction: column;
        gap: 30px;
        min-height: 60vh;
    }
    .xhp-applications {
        min-height: 60vh;
    }
    .xhp-applications__tabs {
        flex: 0 0 auto;
        width: 100%;
        padding: 20px;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        align-self: auto;
    }
    .xhp-applications__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .xhp-applications__tab {
        padding: 10px 20px;
        font-size: 16px;
        border-bottom: none;
        background: rgba(255,255,255,0.1);
        border-radius: 30px;
        color: rgba(255,255,255,0.6);
    }
    .xhp-applications__tab.active {
        background: #2A7DE1;
        color: #fff;
    }
    .xhp-applications__line {
        display: none;
    }
    .xhp-applications__slides {
        min-height: 300px;
    }
    .xhp-applications__slide-content {
        max-width: 85%;
        padding: 16px 24px;
        margin-bottom: 8%;
    }
    .xhp-applications__slide-content h3 {
        font-size: 26px;
    }
    .xhp-applications__slide-content p {
        font-size: 16px;
    }
    .xhp-home-contact__inner {
        flex-direction: column;
        gap: 30px;
    }
    .xhp-home-contact__right {
        max-width: 100%;
        width: 100%;
    }
    .xhp-section-title {
        font-size: 42px;
    }
    .xhp-performance__row {
        flex-direction: column;
        gap: 30px;
    }
    .xhp-performance__image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .xhp-hero__title {
        font-size: 28px;
    }
    .xhp-hero__desc {
        font-size: 16px;
    }
    .xhp-hero__features {
        gap: 20px;
    }
    .xhp-hero__inner {
        max-width: 90%;
        padding: 0 15px;
    }
    .xhp-hero__desc {
        font-size: 16px;
    }
    .xhp-hero__feature {
        font-size: 14px;
    }
    .xhp-hero__actions {
        flex-direction: column;  
        align-items: stretch;
        gap: 12px;
    }
    .xhp-hero__actions .xhp-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .xhp-hero {
        background-position: center top;
        background-size: cover;
        min-height: 70vh;    
    }
    .xhp-home-products__grid {
        grid-template-columns: 1fr;
    }
    .xhp-factory__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .xhp-home-blogs__tabs {
        flex-wrap: wrap;
    }
    .xhp-home-blogs__tab {
        flex: 1 0 auto;
        text-align: center;
        padding: 8px 16px;
        font-size: 13px;
    }
    .xhp-home-contact__right {
        padding: 24px 20px;
    }
    .xhp-home-contact__right .xhp-form-row--two {
        flex-direction: column;
        gap: 12px;
    }
    .xhp-home-contact__right .xhp-form-row--two .xhp-form-field {
        flex: 1 1 auto;
    }
    .xhp-home-contact__right .xhp-form-row--submit {
        flex-wrap: wrap;
        justify-content: center;
    }
    .xhp-contact-status {
        margin-right: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }
    .xhp-applications__slide-content {
        max-width: 90%;
        padding: 12px 18px;
        margin-bottom: 12%;
    }
    .xhp-applications__slide-content h3 {
        font-size: 22px;
    }
    .xhp-applications__slide-content p {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .xhp-hero {
        min-height: 60vh;
        background-position: center 30%; 
    }
    .xhp-hero__title {
        font-size: 22px;
    }
    .xhp-hero__desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .xhp-hero__features {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .xhp-hero__feature {
        font-size: 12px;
        gap: 6px;
    }
    .xhp-hero__feature .xhp-icon {
        width: 18px;
        height: 18px;
    }
    .xhp-performance__title {
        font-size: 22px;
    }
    .xhp-applications__slide-content {
        padding: 10px 14px;
        margin-bottom: 15%;
    }
    .xhp-applications__slide-content h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    .xhp-applications__slide-content p {
        font-size: 12px;
    }
}