/* ==========================================================================
   Premium LinkedIn Testimonial Post Custom Styles
   ========================================================================== */

/* Outer Overlay Container Override for Testimonials */
.testimonial-preview-overlay {
    padding: 35px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 5;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Transparent Review Container (Background Layer Removed) */
.testimonial-card {
    width: 100%;
    max-width: 520px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 30px 40px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    box-sizing: border-box;
}

/* ==========================================================================
   Card Internal Structure (Header, Body, Footer)
   ========================================================================== */

/* Testimonial Header (Stars & Quote Icon) */
.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    width: 100%;
}

.testimonial-title-badge {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--theme-accent, #00e5ff);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.theme-5 .testimonial-title-badge,
.theme-6 .testimonial-title-badge,
.theme-10 .testimonial-title-badge,
.theme-personalized-2 .testimonial-title-badge {
    text-shadow: none;
}



/* Testimonial Text Body */
.testimonial-body-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

#preview-testimonial-text {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.62;
    color: var(--theme-text, #ffffff);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    text-align: left;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin: 0;
}

/* For light themes, remove dark text shadow and darken text */
.theme-5 #preview-testimonial-text,
.theme-6 #preview-testimonial-text,
.theme-10 #preview-testimonial-text,
.theme-personalized-2 #preview-testimonial-text {
    text-shadow: none;
    font-weight: 600;
    color: #1a1a1a;
}

/* Testimonial Author Row */
.testimonial-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    width: 100%;
}

.theme-5 .testimonial-author-box,
.theme-6 .testimonial-author-box,
.theme-10 .testimonial-author-box,
.theme-personalized-2 .testimonial-author-box {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.author-avatar {
    flex-shrink: 0;
}

.premium-generic-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.theme-5 .premium-generic-avatar,
.theme-6 .premium-generic-avatar,
.theme-10 .premium-generic-avatar,
.theme-personalized-2 .premium-generic-avatar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.03) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}
.theme-5 .premium-generic-avatar svg,
.theme-6 .premium-generic-avatar svg,
.theme-10 .premium-generic-avatar svg,
.theme-personalized-2 .premium-generic-avatar svg {
    stroke: #1a1a1a;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

#preview-person-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-text, #ffffff);
    letter-spacing: -0.3px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.theme-5 #preview-person-name,
.theme-6 #preview-person-name,
.theme-10 #preview-person-name,
.theme-personalized-2 #preview-person-name {
    color: #1a1a1a;
    text-shadow: none;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-accent, #00e5ff);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.theme-5 .verified-badge,
.theme-6 .verified-badge,
.theme-10 .verified-badge,
.theme-personalized-2 .verified-badge {
    text-shadow: none;
}

.verified-badge svg {
    color: var(--theme-accent, #00e5ff);
    fill: var(--theme-accent, #00e5ff);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
    .testimonial-preview-overlay {
        padding: 15px !important;
        justify-content: flex-start !important;
    }
    .testimonial-card {
        padding: 15px 20px;
        gap: 15px;
        margin: auto 0;
    }
    .testimonial-title-badge {
        font-size: 15px;
    }
    #preview-testimonial-text {
        font-size: 15px !important;
        line-height: 1.45;
    }
    .testimonial-author-box {
        padding-top: 15px;
        gap: 12px;
    }
    .premium-generic-avatar {
        width: 40px;
        height: 40px;
    }
    #preview-person-name {
        font-size: 15px;
    }
    .verified-badge {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .testimonial-preview-overlay {
        padding: 12px !important;
    }
    .testimonial-card {
        padding: 12px 16px;
        gap: 12px;
    }
    .testimonial-title-badge {
        font-size: 14px;
    }
    #preview-testimonial-text {
        font-size: 13.5px !important;
        line-height: 1.4;
    }
    .testimonial-author-box {
        padding-top: 12px;
        gap: 10px;
    }
    .premium-generic-avatar {
        width: 36px;
        height: 36px;
    }
    #preview-person-name {
        font-size: 14px;
    }
    .verified-badge {
        font-size: 10px;
    }
}

/* ==========================================================================
   Hot Jobs Template Custom Styles
   ========================================================================== */

.hot-jobs-preview-overlay {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-sizing: border-box;
    overflow: hidden;
}

.hot-jobs-card {
    width: 100%;
    max-width: 500px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 15px 30px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    box-sizing: border-box;
}

.hot-jobs-header {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -8px;
    margin-bottom: 12px;
}

.hot-jobs-title-badge {
    background: var(--theme-accent, #00e5ff);
    color: #000;
    padding: 8px 26px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-5 .hot-jobs-title-badge,
.theme-6 .hot-jobs-title-badge,
.theme-10 .hot-jobs-title-badge,
.theme-personalized-2 .hot-jobs-title-badge {
    background: var(--theme-accent, #007bff);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.hot-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.hot-job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 5px solid var(--theme-accent, #00e5ff);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.theme-5 .hot-job-item,
.theme-6 .hot-job-item,
.theme-10 .hot-job-item,
.theme-personalized-2 .hot-job-item {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--theme-accent, #007bff);
}

.hot-job-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-text, #ffffff);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
    flex: 1;
    padding-right: 15px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    text-align: left;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.theme-5 .hot-job-title,
.theme-6 .hot-job-title,
.theme-10 .hot-job-title,
.theme-personalized-2 .hot-job-title {
    color: #1a1a1a;
    text-shadow: none;
}

.hot-job-salary {
    font-size: 15px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--theme-accent, #00e5ff);
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid var(--theme-accent, #00e5ff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    word-break: break-word;
    text-align: right;
    max-width: 45%;
    box-sizing: border-box;
    line-height: 1.3;
}

.theme-5 .hot-job-salary,
.theme-6 .hot-job-salary,
.theme-10 .hot-job-salary,
.theme-personalized-2 .hot-job-salary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

.hot-jobs-footer-box {
    margin-top: 4px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
    width: 100%;
}

.theme-5 .hot-jobs-footer-box,
.theme-6 .hot-jobs-footer-box,
.theme-10 .hot-jobs-footer-box,
.theme-personalized-2 .hot-jobs-footer-box {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.hot-jobs-cta {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--theme-text, #ffffff);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.theme-5 .hot-jobs-cta,
.theme-6 .hot-jobs-cta,
.theme-10 .hot-jobs-cta,
.theme-personalized-2 .hot-jobs-cta {
    color: #1a1a1a;
    text-shadow: none;
}

/* Responsive for Hot Jobs */
@media (max-width: 768px) {
    .hot-jobs-preview-overlay {
        padding: 15px !important;
    }
    .hot-jobs-card {
        padding: 12px 20px;
        gap: 14px;
    }
    .hot-jobs-title-badge {
        font-size: 14.5px;
        padding: 6px 18px;
    }
    .hot-job-item {
        padding: 12px 16px;
        border-radius: 10px;
    }
    .hot-job-title {
        font-size: 16px;
    }
    .hot-job-salary {
        font-size: 14px;
        padding: 4px 12px;
    }
    .hot-jobs-cta {
        font-size: 13.5px;
    }
}

@media (max-width: 480px) {
    .hot-jobs-preview-overlay {
        padding: 10px !important;
    }
    .hot-jobs-card {
        padding: 10px 15px;
        gap: 12px;
    }
    .hot-jobs-title-badge {
        font-size: 13.5px;
        padding: 6px 16px;
    }
    .hot-job-item {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-radius: 8px;
    }
    .hot-job-title {
        font-size: 15px;
        padding-right: 0;
    }
    .hot-job-salary {
        font-size: 13.5px;
        padding: 3px 10px;
        max-width: 100%;
        text-align: left;
    }
    .hot-jobs-cta {
        font-size: 13px;
    }
}

/* Announcement Template Styles */
.announcement-preview-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 30px;
    z-index: 5;
    overflow-y: auto;
}

.announcement-card {
    width: 100%;
    max-width: 520px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 35px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
    margin: auto 0;
}

.theme-5 .announcement-card,
.theme-6 .announcement-card,
.theme-10 .announcement-card,
.theme-personalized-2 .announcement-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.announcement-heading-box {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -15px;
    margin-bottom: 2px;
}

.announcement-badge {
    display: inline-block;
    background: var(--theme-accent, #00e5ff);
    color: #000;
    padding: 10px 28px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    line-height: 1.3;
}

#preview-announcement-heading {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-5 .announcement-badge,
.theme-6 .announcement-badge,
.theme-10 .announcement-badge,
.theme-personalized-2 .announcement-badge {
    background: var(--theme-accent, #007bff);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.announcement-body-container {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    text-align: center;
    width: 100%;
}

#preview-announcement-desc {
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    word-break: break-word;
}

.theme-5 .announcement-body-container,
.theme-6 .announcement-body-container,
.theme-10 .announcement-body-container,
.theme-personalized-2 .announcement-body-container {
    color: rgba(0, 0, 0, 0.8);
}

.announcement-footer-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 5px;
}

.theme-5 .announcement-footer-box,
.theme-6 .announcement-footer-box,
.theme-10 .announcement-footer-box,
.theme-personalized-2 .announcement-footer-box {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .announcement-preview-overlay {
        padding: 20px !important;
        justify-content: flex-start !important;
    }
    .announcement-card {
        padding: 18px 22px;
        gap: 12px;
    }
    .announcement-heading-box {
        margin-top: -10px;
        margin-bottom: 2px;
    }
    .announcement-badge {
        font-size: 14.5px;
        padding: 6px 18px;
    }
    .announcement-body-container {
        font-size: 13.5px;
        line-height: 1.45;
    }
    #preview-announcement-desc {
        -webkit-line-clamp: 7;
    }
}

@media (max-width: 480px) {
    .announcement-preview-overlay {
        padding: 12px !important;
        justify-content: flex-start !important;
    }
    .announcement-card {
        padding: 12px 16px;
        gap: 10px;
        border-radius: 16px;
    }
    .announcement-heading-box {
        margin-top: -8px;
        margin-bottom: 2px;
    }
    .announcement-badge {
        font-size: 13px;
        padding: 5px 14px;
    }
    .announcement-body-container {
        font-size: 12px;
        line-height: 1.4;
    }
    #preview-announcement-desc {
        -webkit-line-clamp: 6;
    }
    .announcement-footer-box {
        padding-top: 10px;
        margin-top: 2px;
    }
    .rating-stars svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Announcement 2 Template Styles */
.announcement2-preview-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ann2-content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.ann2-heading-tag-wrapper {
    margin-bottom: 5px;
}

.ann2-heading-tag {
    display: inline-block;
    background: var(--theme-accent, #00e5ff);
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-5 .ann2-heading-tag,
.theme-6 .ann2-heading-tag,
.theme-10 .ann2-heading-tag,
.theme-personalized-2 .ann2-heading-tag {
    background: var(--theme-accent, #007bff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.ann2-main-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--theme-text, #ffffff);
    font-family: 'Inter', sans-serif;
    line-height: 1.25;
    margin: 0;
    max-width: 90%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-5 .ann2-main-heading,
.theme-6 .ann2-main-heading,
.theme-10 .ann2-main-heading,
.theme-personalized-2 .ann2-main-heading {
    color: #1a1a1a;
    text-shadow: none;
}

.ann2-footer-wrapper {
    margin-top: 10px;
    width: 100%;
}

.ann2-footer-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-accent, #00e5ff);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.theme-5 .ann2-footer-text,
.theme-6 .ann2-footer-text,
.theme-10 .ann2-footer-text,
.theme-personalized-2 .ann2-footer-text {
    color: var(--theme-accent, #007bff);
}

@media (max-width: 768px) {
    .announcement2-preview-overlay {
        padding: 30px 30px 30px 40px !important;
    }
    .ann2-content-container {
        gap: 15px;
    }
    .ann2-main-heading {
        font-size: 26px;
        line-height: 1.3;
    }
    .ann2-heading-tag {
        font-size: 12px;
        padding: 6px 16px;
    }
    .ann2-footer-text {
        font-size: 13px;
    }
    .hot-jobs-list .hot-job-item:nth-child(n+4) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .announcement2-preview-overlay {
        padding: 20px 20px 20px 25px !important;
    }
    .ann2-content-container {
        gap: 10px;
    }
    .ann2-main-heading {
        font-size: 20px;
    }
    .ann2-heading-tag {
        font-size: 10px;
        padding: 5px 12px;
    }
    .ann2-footer-text {
        font-size: 11px;
    }
    .hot-job-item {
        padding: 10px 14px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-radius: 8px;
    }
    .hot-job-title {
        font-size: 14px;
        padding-right: 0;
    }
    .hot-job-salary {
        font-size: 12px;
        padding: 4px 10px;
        max-width: 45%;
        text-align: right;
    }
}

