:root {
    --wp--preset--font-family--heading: 'Poppins', sans-serif !important;
    --wp--preset--font-family--cardo: 'Poppins', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif !important;
}

.sipl-magic-moments,
.sipl-magic-moments *,
.sipl-about-wrapper,
.sipl-about-wrapper *,
.sipl-tp-container *,
.sipl-stats-section *,
.sipl-branding-images-section * {
    box-sizing: border-box !important;
    font-family: 'Poppins', sans-serif !important;
}

.sipl-magic-moments {
    background: linear-gradient(180deg, #151111 11.16%, #783D33 100%) !important;
    padding: 40px 0 !important;
    overflow: hidden !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.sipl-magic-header {
    max-width: 1200px;
    margin: 0 auto -15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    padding-bottom: 12px;
}

.sipl-magic-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0 !important;
    text-transform: capitalize;
}

.sipl-magic-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0px;
    width: 130px;
    height: 3px;
    background: #e23b24;
}

.sipl-magic-container {
    position: relative !important;
    width: 100% !important;
    max-width: 1350px !important;
    margin: 0 auto !important;
    height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sipl-magic-carousel {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    perspective: 3000px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform-style: preserve-3d !important;
}

.sipl-magic-item {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* Initial centering */
    width: 520px;
    height: 320px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    visibility: hidden;
    list-style: none;
    z-index: 1;
}

/* Override transform for 3D positions */
.sipl-magic-item.prev {
    transform: translate(-50%, -50%) translateX(-55%) translateZ(-400px) rotateY(40deg) !important;
    opacity: 0.7;
    z-index: 1;
    visibility: visible;
}

.sipl-magic-item.active {
    transform: translate(-50%, -50%) translateX(0) translateZ(0) rotateY(0) !important;
    opacity: 1;
    z-index: 3;
    visibility: visible;
}

.sipl-magic-item.next {
    transform: translate(-50%, -50%) translateX(55%) translateZ(-400px) rotateY(-40deg) !important;
    opacity: 0.7;
    z-index: 1;
    visibility: visible;
}

.sipl-magic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
    transition: 0.5s;
}

.sipl-magic-item.active img {
    filter: brightness(1);
}

.sipl-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    z-index: 3;
    text-align: center;
}

.sipl-card-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.sipl-card-subtitle {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: uppercase;
}

.sipl-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.sipl-play-btn {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

.sipl-play-btn::after {
    content: '';
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
    margin-left: 8px;
}

.sipl-magic-item:hover .sipl-play-btn {
    background: #e23b24;
    border-color: #e23b24;
    transform: scale(1.1) !important;
    box-shadow: 0 0 40px rgba(226, 59, 36, 0.5);
}

.sipl-play-btn:focus {
    outline: none;
    box-shadow: none;
}

.sipl-magic-item.hidden {
    transform: translateX(0) translateZ(-1000px);
    opacity: 0;
    z-index: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Arrows */
.sipl-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 50px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    padding: 0 30px;
    font-weight: 300;
}

.sipl-arrow-btn:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.2);
}

.sipl-arrow-btn:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.sipl-btn-left {
    left: 40px;
}

.sipl-btn-right {
    right: 40px;
}

@media (max-width: 1200px) {
    .sipl-magic-item {
        width: 440px !important;
        height: 260px !important;
    }

    .sipl-card-title {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .sipl-magic-container {
        height: 350px !important;
    }

    .sipl-magic-item {
        width: 340px !important;
        height: 200px !important;
    }

    .sipl-magic-item.prev {
        transform: translate(-50%, -50%) translateX(-40%) translateZ(-300px) rotateY(30deg) !important;
    }

    .sipl-magic-item.next {
        transform: translate(-50%, -50%) translateX(40%) translateZ(-300px) rotateY(-30deg) !important;
    }

    .sipl-arrow-btn {
        font-size: 35px !important;
        padding: 0 15px !important;
    }
}

@media (max-width: 480px) {
    .sipl-magic-container {
        height: 280px !important;
    }

    .sipl-magic-item {
        width: 280px !important;
        height: 160px !important;
    }

    .sipl-magic-item.prev,
    .sipl-magic-item.next {
        opacity: 0.2 !important;
    }

    .sipl-card-title {
        font-size: 14px !important;
    }

    .sipl-play-btn {
        width: 50px !important;
        height: 50px !important;
    }

    .sipl-play-btn::after {
        border-top: 10px solid transparent !important;
        border-bottom: 10px solid transparent !important;
        border-left: 15px solid #fff !important;
    }
}

/* Video Modal */
#siplVideoModal {
    display: none;
    position: fixed;
    z-index: 10000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.sipl-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.sipl-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}

.sipl-modal-close:hover {
    color: #e23b24;
}

.sipl-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.sipl-video-container iframe,
.sipl-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .sipl-modal-content {
        margin: 30% auto;
    }
}

/* --- Top Performers Section --- */
.sipl-top-performers-static {
    background: linear-gradient(180deg, #151111 11.16%, #783D33 100%) !important;
    padding: 100px 0;
    font-family: 'Poppins', sans-serif !important;
    color: #fff;
    overflow: hidden;
}

.sipl-tp-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    padding: 0 40px;
    gap: 60px;
    align-items: center;
}

.sipl-tp-sidebar {
    flex: 0 0 390px;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    margin-top: -70px;
}

.sipl-tp-sidebar h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif !important;
}

.sipl-tp-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 25px;
    position: relative;
}

.sipl-tp-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 4px;
    background: #e23b24;
}

.sipl-tp-main {
    flex: 1;
    position: relative;
}

.sipl-tp-hero-wrap {
    position: relative;
    width: 100%;
    max-width: 750px;
}

.sipl-tp-hero {
    position: relative;
    height: 420px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.sipl-tp-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s;
    border-radius: 16px;
}

.sipl-tp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 3;
    text-align: center;
}

.sipl-tp-overlay h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif !important;
}

.sipl-tp-overlay h4 {
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    font-family: 'Poppins', sans-serif !important;
}

.sipl-tp-overlay p {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif !important;
}

.sipl-tp-thumbs-wrap {
    position: relative;
    max-width: 750px;
    margin-top: 30px;
}

.sipl-tp-thumbs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.sipl-tp-thumbs::-webkit-scrollbar {
    display: none;
}

.sipl-tp-nav {
    background: rgba(226, 59, 36, 0.85);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sipl-tp-prev {
    left: -15px;
}

.sipl-tp-next {
    right: -15px;
}

.sipl-tp-nav:hover {
    background: #e23b24;
}

.sipl-tp-thumb {
    flex: 0 0 170px;
    height: 105px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
}

.sipl-tp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.sipl-tp-thumb.active img,
.sipl-tp-thumb:hover img {
    opacity: 1;
}

.sipl-tp-thumb.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 5px solid #e23b24;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .sipl-tp-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 20px;
    }

    .sipl-tp-sidebar {
        flex: 0 0 auto;
        padding-top: 0;
        text-align: center;
        margin-top: 0;
    }

    .sipl-tp-line {
        margin: 15px auto;
        max-width: 300px;
    }

    .sipl-tp-main {
        width: 100%;
    }

    .sipl-tp-hero-wrap,
    .sipl-tp-thumbs-wrap {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .sipl-top-performers-static {
        padding: 40px 0;
    }

    .sipl-tp-sidebar h2 {
        font-size: 26px;
    }

    .sipl-tp-sidebar {
        margin-top: 0px;
    }

    .sipl-tp-hero {
        height: 250px;
    }

    .sipl-tp-overlay {
        padding: 15px;
    }

    .sipl-tp-overlay h4 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .sipl-tp-overlay p {
        font-size: 16px;
    }

    .sipl-tp-overlay h3 {
        font-size: 12px;
    }

    .sipl-tp-thumbs {
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .sipl-tp-thumb {
        flex: 0 0 130px;
        height: 85px;
    }

    .sipl-tp-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* --- Branding Images Section --- */
.sipl-branding-images-section {
    width: 100% !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.sipl-branding-images-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sipl-branding-image-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sipl-branding-image-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* Prevent horizontal scroll globally if needed, though safer to target containers */
body {
    overflow-x: hidden;
}

/* --- About Us Page --- */
.sipl-about-hero {
    height: 250px;
    background: url('/wp-content/uploads/about-1.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: end;
    padding: 0 10%;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.sipl-about-hero h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-top: 10px;
    margin-bottom: 50px;
}

.sipl-about-hero h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e23b24;
}

.sipl-about-section {
    padding: 40px 10%;
    font-family: 'Poppins', sans-serif !important;
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 0;
}

.sipl-about-section.reverse {
    flex-direction: row-reverse !important;
}

.sipl-about-content {
    flex: 1;
}

.sipl-about-image {
    flex: 1;
}

.sipl-about-image img {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sipl-about-content h2 {
    font-size: 32px;
    font-weight: 700 !important;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    line-height: 1.2;
}

.sipl-about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e23b24;
}

.sipl-about-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0px;
}

.sipl-about-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 0 0 !important;
}

.sipl-about-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.sipl-about-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #e23b24;
    font-weight: 800;
}

:where(.wp-site-blocks)>* {
    margin-block-start: 0 !important;
    margin-block-end: 0;
}

@media (max-width: 991px) {
    .sipl-about-section {
        flex-direction: column !important;
        padding: 10px 5% !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .sipl-about-section.reverse {
        flex-direction: column !important;
    }

    .sipl-about-content h2::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .sipl-about-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .sipl-about-hero {
        height: 125px !important;
        padding: 0 5% !important;
        background-size: contain;
    }

    .sipl-about-hero h1 {
        font-size: 28px !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .sipl-about-content h2 {
        font-size: 26px !important;
    }

    .sipl-about-content p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .sipl-about-list li {
        font-size: 13px !important;
    }

    .sipl-about-image img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .sipl-about-hero {
        height: 80px !important;
    }

    .sipl-about-hero h1 {
        font-size: 20px !important;
        margin-bottom: 5px;
        padding-top: 5px;
    }

    .sipl-about-hero {
        height: 60px !important;
    }

    .sipl-about-section {
        padding: 10px 20px !important;
    }

    .sipl-about-content h2 {
        font-size: 22px !important;
    }
}

@media (max-width: 375px) {
    .sipl-about-hero {
        height: 70px !important;
    }
}