/* Post Hero Section */
.post-hero-section {
    position: relative;
    height: 600px;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 60px;
    overflow: hidden;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.post-hero-meta {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.post-hero-meta span {
    display: inline-block;
}

.post-hero-meta .cat-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.post-hero-meta .cat-links a:hover {
    background: #fff;
    color: #000;
}

.post-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
}

.post-hero-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
}

.post-hero-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.post-hero-author a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Content Styling */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    color: #000;
}

.entry-content blockquote {
    border-left: 4px solid var(--tp-theme-primary);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-hero-section {
        height: 400px;
    }

    .post-hero-title {
        font-size: 2rem;
    }
}

/* Fix Header Z-Index Issue */
.tp-header-area {
    position: relative;
    z-index: 99;
}

/* Fix Service Slider Equal Height Blocks */
.tp-service-sa-slider .swiper-wrapper {
    align-items: stretch !important;
}

.tp-service-sa-slider .swiper-slide {
    height: auto !important;
    display: flex !important;
}

.tp-service-sa-slider .tp-service-sa-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.tp-service-sa-slider .tp-service-sa-item-text {
    flex-grow: 1 !important;
}

/* Fix About Section "Revenue Generated" stacking under 1400px */
@media only screen and (max-width: 1399px) {
    .tp-about-expreance {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .tp-about-expreance span.ml-35 {
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .tp-hero-sa-subtitle.mb-35 {
        display: none;
    }

    p.fs-20.lh-28.mb-60 {
        max-width: 46vh;
    }
}

/* Fix Testimonial Slider Equal Height Boxes */
.tp-testimonial-sa-slider .swiper-wrapper {
    align-items: stretch !important;
}

.tp-testimonial-sa-slider .swiper-slide {
    height: auto !important;
    display: flex !important;
}

.tp-testimonial-sa-slider .tp-testimonial-sa-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}

.tp-testimonial-sa-slider .tp-testimonial-sa-item p {
    flex-grow: 1 !important;
}

/* Testimonial Slider Pagination Dots */
.tp-testimonial-sa-pagenation {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.tp-testimonial-sa-pagenation .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid var(--tp-grey-2, #ccc);
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tp-testimonial-sa-pagenation .swiper-pagination-bullet-active {
    background: var(--tp-common-nights, #030303);
    border-color: var(--tp-common-nights, #030303);
}

/* Hero spacing for tablet/laptop (768px - 1399px) */
@media only screen and (min-width: 768px) and (max-width: 1399px) {
    .tp-hero-sa-spacing {
        padding-top: 100px !important;
        padding-bottom: 95px !important;
    }
}

/* Logo width for all non-mobile (768px+) */
@media only screen and (min-width: 768px) {
    .tp-header-logo img {
        width: 200px !important;
    }
}

/* Pixel Theory Dynamic Color Utilities */
.tp-bg-pixel-primary {
    background-color: #ffffffed !important;
}

.tp-text-pixel-primary {
    color: #ffffffed !important;
}

/* Service Item Custom Styling */
.tp-service-3-item {
    background-color: #000;
    padding: 40px 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Force Title Color to White */
.tp-service-3-item h4 {
    color: #fff !important;
}

/* Update List Item Links */
.tp-service-3-item ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tp-service-3-item ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Service Icon Animation (Persistent Float) */
@keyframes floatIcon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.tp-service-icon {
    position: absolute;
    right: 30px;
    bottom: 30px;
    opacity: 1;
    /* Visible by default */
    animation: floatIcon 4s ease-in-out infinite;
}

.tp-service-3-item:hover .tp-service-icon {
    /* Optional: Slight scale on hover? Or just keep floating */
    animation: floatIcon 4s ease-in-out infinite;
}

/* Ensure SVG strokes use theme color if not inline */
.tp-service-icon svg path {
    stroke: #7D5DFF;
}

/* Force Breadcrumb Container Full Width (Breakout) */
.tp-breadcrumb-banner-spacing {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
}

/* Fix Testimonial Thumb Stretching on iOS/Mobile */
.tp-testimonial-cst-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .tp-testimonial-cst-thumb {
        height: 400px;
        /* Fixed height for tablet/mobile stacking to avoid huge images */
    }

    .tp-testimonial-cst-thumb img {
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }
}

@media (max-width: 575px) {
    .tp-testimonial-cst-thumb {
        height: 300px;
        /* Smaller fixed height for phones */
    }
}

@media (max-width: 767px) {

    h2,
    .fs-70,
    .fs-50 {
        font-size: 51px !important;
    }

    /* Video Box Mobile Adjustments */
    .tp-video-content {
        transform: scale(0.8) translateY(60%) !important;
        margin-right: 0 !important;
        /* Center it horizontally since margin was removed */
        margin-left: auto;
        margin-right: auto;
    }

    /* Add spacing between play button and text on mobile */
    .tp-hero-video-btn.popup-video {
        margin-right: 25px !important;
    }
}

.tp-testimonial-cst-shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    opacity: 0.4;
}

/* Force Atropos Inner Link Clickable */
.atropos-inner .popup-video {
    position: relative;
    z-index: 99 !important;
    pointer-events: auto !important;
    cursor: pointer;
}

/* New Video Play Button Styling */
.tp-video-play-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tp-video-play-btn:hover .tp-video-play-text {
    color: var(--tp-theme-primary);
}

.tp-video-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tp-video-play-btn:hover .tp-video-play-icon {
    transform: scale(1.1);
    color: var(--tp-theme-primary);
}


/* Desktop General Spacing ( > 1399px ) */
@media (min-width: 1400px) {
    .tp-hero-sa-spacing {
        padding-top: 20px !important;
        padding-bottom: 95px !important;
    }
}

/* Custom Column Padding for Desktop */
@media (min-width: 1200px) {
    .col-lg-7.col-md-11 {
        padding-right: 4vh !important;
    }
}

/* Hide Hero Shape 2 on smaller screens */
@media (max-width: 1399px) {
    .tp-hero-sa-shape-2 {
        display: none !important;
    }
}