.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.card:hover .overlay {
    opacity: 1;
}

/* Scaling Logic */
.preview-scaler {
    transform: scale(0.6);
    transform-origin: center center;
    /* Width/Height of the actual poster content (500x700) */
    width: 500px;
    height: 700px;
    flex-shrink: 0;
    pointer-events: none;
    /* Prevent interaction with the preview directly in listing */
}

/* Default card body height for desktop to accommodate 0.6 scale (700 * 0.6 = 420px) + padding */
.poster-card-body {
    height: 450px !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .preview-scaler {
        transform: scale(0.65);
        /* Larger on mobile to fill width */
    }

    .poster-card-body {
        height: 480px !important;
        /* Adjust height to fit scaled poster */
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* --- Shared Utility for Background Cover Images --- */
.poster-bg-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* --- Design 1 Styles --- */
.poster-container-design-1 {
    width: 500px;
    height: 700px;
    background: white;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.poster-container-design-1 .border-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid white;
    z-index: 1000;
    pointer-events: none;
    box-sizing: border-box;
}

.poster-container-design-1 .design-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.poster-container-design-1 .shape-top {
    position: absolute;
    top: -60px;
    left: -50px;
    width: 600px;
    height: 320px;
    background: var(--poster-primary, #ff9933);
    background: linear-gradient(135deg, var(--poster-primary, #ff9933) 0%, var(--poster-secondary, #ffcc66) 100%);
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.poster-container-design-1 .shape-bottom {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 140px;
    background: var(--poster-accent, #138808);
    background: linear-gradient(135deg, var(--poster-accent, #138808) 0%, var(--poster-primary, #4caf50) 100%);
    transform: skewY(-5deg);
    transform-origin: bottom left;
}

.poster-container-design-1 .content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 25px;
}

.poster-container-design-1 .header-section {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
}

.poster-container-design-1 .photo-section {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.poster-container-design-1 .photo-frame {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #f8f9fa;
    margin: 0 auto;
}

.poster-container-design-1 .photo-frame .live-photo {
    width: 100%;
    height: 100%;
}


.poster-container-design-1 .candidate-info {
    padding: 0 10px;
    margin-bottom: 5px !important;
}

.poster-container-design-1 .live-heading {
    font-family: var(--poster-font, 'Outfit', sans-serif);
    font-size: 2.8rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.poster-container-design-1 .live-name {
    font-family: var(--poster-font, 'Outfit', sans-serif);
    font-size: 2.2rem !important;
    color: var(--poster-primary, #212121);
    margin-bottom: 0;
}

.poster-container-design-1 .live-slogan {
    font-size: 1.1rem;
    color: var(--poster-primary, #666);
    margin-bottom: 0.5rem;
}

/* --- Design 2 Styles --- */
.poster-container-design-2 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.poster-container-design-2 .header-strip {
    background: var(--poster-primary, #0d6efd);
    padding: 20px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    height: 120px;
}

.poster-container-design-2 .footer-strip {
    background: var(--poster-accent, #212529);
    padding: 20px;
    margin-top: auto;
}

.poster-container-design-2 .side-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: var(--poster-primary, #0d6efd);
}

.poster-container-design-2 .top-bar {
    background: var(--poster-primary, #0d6efd);
    color: white;
    padding: 15px 15px 15px 45px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
}

.poster-container-design-2 .bottom-bar {
    background: var(--poster-accent, #212529);
    color: white;
    padding: 15px 15px 15px 45px;
    margin-top: auto;
}

.poster-container-design-2 .photo-box {
    width: 220px;
    height: 280px;
    background: #f1f1f1;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    border-radius: 4px;
    overflow: hidden;
}

.poster-container-design-2 .photo-box .live-photo {
    width: 100%;
    height: 100%;
}

.poster-container-design-2 .divider {
    width: 100px;
    height: 5px;
}

.poster-container-design-2 .live-name {
    font-family: var(--poster-font, 'Arial Black', sans-serif);
    letter-spacing: 1px;
    color: var(--poster-primary, #0d6efd);
    text-transform: uppercase;
}

/* --- Design 3 Styles --- */
.poster-container-design-3 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.poster-container-design-3 .top-banner {
    background: var(--poster-primary, #ff9933);
    color: white;
    padding: 15px;
    text-align: center;
    border-bottom: 5px solid var(--poster-accent, #138808);
}

.poster-container-design-3 .bottom-banner {
    background: var(--poster-accent, #138808);
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: auto;
    border-top: 5px solid var(--poster-primary, #ff9933);
}

.poster-container-design-3 .live-subheading {
    font-family: var(--poster-font, inherit);
}

.poster-container-design-3 .photo-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--poster-primary, #ff9933);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.poster-container-design-3 .photo-circle .live-photo {
    width: 100%;
    height: 100%;
}

/* --- Design 4 Styles --- */
.poster-container-design-4 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.poster-container-design-4 .ls-2 {
    letter-spacing: 2px;
}

.poster-container-design-4 .photo-area {
    height: 45%;
    overflow: hidden;
    background: #eee;
}

.poster-container-design-4 .photo-area .live-photo {
    width: 100%;
    height: 100%;
}

.poster-container-design-4 .text-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.poster-container-design-4 .watermark {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    z-index: 1;
    pointer-events: none;
}

.poster-container-design-4 .live-heading {
    color: var(--poster-accent, #666);
}

.poster-container-design-4 .live-subheading {
    color: var(--poster-primary, #0d6efd);
}

.poster-container-design-4 .border-start {
    border-color: var(--poster-secondary, #212529) !important;
}

/* --- Design 5 Styles --- */
.poster-container-design-5 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #000;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
}

.poster-container-design-5 .bg-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.poster-container-design-5 .bg-img-container .live-photo {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.poster-container-design-5 .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.poster-container-design-5 .content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.poster-container-design-5 .ls-3 {
    letter-spacing: 3px;
    font-weight: 600;
}

.poster-container-design-5 .line-sep {
    width: 80px;
    height: 5px;
    background: var(--poster-secondary, #ffc107);
}

.poster-container-design-5 .live-heading {
    color: var(--poster-secondary, #ffc107) !important;
}

.poster-container-design-5 .live-subheading {
    color: rgba(255, 255, 255, 0.7) !important;
}

.poster-container-design-5 .live-footer {
    background-color: var(--poster-secondary, #ffc107) !important;
    color: var(--poster-accent, #000) !important;
}

/* --- Design 6 Styles --- */
.poster-container-design-6 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    font-family: var(--poster-font, 'Outfit', sans-serif);
}

.poster-container-design-6 .sidebar {
    width: 80px;
    background: var(--poster-accent, #f8f9fa);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid #eee;
    position: relative;
    /* Enabled for absolute text positioning */
}

.poster-container-design-6 .live-symbol {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.poster-container-design-6 .vertical-text {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    white-space: nowrap;
    font-weight: 900;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
    /* Replaced writing-mode which fails in html2canvas */
}

.poster-container-design-6 .main-body {
    flex: 1;
    padding: 25px 25px 40px 25px !important;
}

.poster-container-design-6 .photo-frame {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.poster-container-design-6 .bottom-stripe {
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
}

.poster-container-design-6 .ls-2 {
    letter-spacing: 2px;
}

/* --- Design 7 Styles --- */
.poster-container-design-7 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: var(--poster-font, 'Oswald', sans-serif);
}

.poster-container-design-7 .top-slant {
    position: absolute;
    top: -100px;
    left: -50px;
    width: 600px;
    height: 250px;
    transform: rotate(-10deg);
    z-index: 1;
}

.poster-container-design-7 .bottom-slant {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 600px;
    height: 150px;
    transform: rotate(5deg);
    z-index: 1;
    opacity: 0.1;
}

.poster-container-design-7 .content-overlay {
    position: relative;
    z-index: 10;
}

.poster-container-design-7 .live-symbol {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.poster-container-design-7 .photo-container {
    width: 100%;
    height: 350px;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #eee;
}

.poster-container-design-7 .photo-container .live-photo {
    width: 100%;
    height: 100%;
}

.poster-container-design-7 .slogan-box {
    display: inline-block;
    transform: skew(-10deg);
}

.poster-container-design-7 .slogan-box p {
    transform: skew(10deg);
}

/* --- Design 8 Styles --- */
.poster-container-design-8 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: var(--poster-font, 'Montserrat', sans-serif);
}

.poster-container-design-8 .split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.poster-container-design-8 .left-side {
    width: 40%;
    height: 100%;
}

.poster-container-design-8 .right-side {
    width: 60%;
    height: 100%;
}

.poster-container-design-8 .col-photo {
    width: 40%;
}

.poster-container-design-8 .col-text {
    width: 60%;
}

.poster-container-design-8 .circular-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.poster-container-design-8 .circular-frame .live-photo {
    width: 100%;
    height: 100%;
}

.poster-container-design-8 .symbol-box {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.poster-container-design-8 .symbol-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Design 9 Styles --- */
.poster-container-design-9 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #f1f1f1;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: var(--poster-font, 'Roboto', sans-serif);
}

.poster-container-design-9 .bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 1;
    clip-path: ellipse(70% 60% at 50% 30%);
}

.poster-container-design-9 .main-card {
    background: #fff;
}

.poster-container-design-9 .photo-hero {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.poster-container-design-9 .photo-hero .live-photo {
    width: 100%;
    height: 100%;
}

.poster-container-design-9 .symbol-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Design 10 Styles --- */
.poster-container-design-10 {
    border: 5px solid white;
    box-sizing: border-box;
    width: 500px;
    height: 700px;
    background: #212121;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: var(--poster-font, 'Oswald', sans-serif);
}

.poster-container-design-10 .circles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.poster-container-design-10 .c1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    opacity: 0.8;
}

.poster-container-design-10 .c2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    opacity: 0.6;
}

.poster-container-design-10 .c3 {
    position: absolute;
    top: 10%;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.4;
}

.poster-container-design-10 .photo-diamond {
    width: 250px;
    height: 250px;
    transform: rotate(45deg);
    overflow: hidden;
    border: 10px solid #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.poster-container-design-10 .photo-diamond .live-photo {
    width: 142%;
    height: 142%;
    background-size: cover;
    background-position: center;
    transform: rotate(-45deg) translate(-15%, -15%);
}

.poster-container-design-10 .symbol-glass img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}