/* Breakdown button for intelligent-breakdown card */
.vt-breakdown-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(86.16deg, #2D2D2D 11.14%, #1E1E1E 113.29%);
    border: none;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 37px;
    width: 187px;
    padding: 4px 10px;
    text-align: center;
    justify-content: center;
}

.vt-task-buttons .vt-breakdown-btn:last-child {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0.4;
}
.vt-task-buttons .vt-breakdown-btn:nth-last-child(2) {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0.6;
}
.vt-task-buttons .vt-breakdown-btn:nth-last-child(3) {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0.8;
}
/* Blur last vt-task-btn to match project-column2 bottom */
.vt-task-buttons .vt-task-btn:last-child {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0.4;
}
.vt-task-buttons .vt-task-btn:nth-last-child(2) {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0.6;
}
.vt-task-buttons .vt-task-btn:nth-last-child(3) {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0.8;
}
.vt-task-btn--active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 0 12px rgba(106, 17, 203, 0.4);
    transform: rotate(-2.04deg);
    opacity: 1 !important;
}
.vt-breakdown-btn--active {
    background: linear-gradient(200.42deg, #844FFC 13.57%, #491EB8 98.35%);
    color: white;
    box-shadow: 0 0 12px rgba(106, 17, 203, 0.4);
    transform: rotate(-2.04deg);
    opacity: 1 !important;
}
/* Bento Grid Layout for VisualTake - Updated */
.vt-visualtake-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1196px;
    margin: 0 auto;
}

.visualtake-row1,
.visualtake-row2,
.visualtake-row3,
.visualtake-row4 {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 1st row: 2 cards with width 758px and 408px, height 375px */
.visualtake-row1 {
    height: 375px;
}
/* Card styling */
.vt-visualtake-card {
    transition: none !important;
    position: relative;
    gap: 20px;
}

.visualtake-row1 .vt-visualtake-card {
    width: 758px;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(158.77deg, #141414 54.71%, #222222 85.69%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visualtake-row1 .vt-visualtake-card:nth-child(1){
    background: linear-gradient(210.71deg, #141414 59.07%, #220C37 85.22%);
    gap: 42px;
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
}

.project-column1{
    gap: 20px;
    display: flex;
    flex-direction: column;
    width: 351px;
}

.project-column1 img{
    object-fit: none;
    padding: 2px;
}

.project-column2{
    width: 304px;
    display: flex;
    flex-direction: column;
    height: 321px;
    gap: 10px;
    opacity: 1;
    border-radius: 12px;
    border-width: 1px;
    padding-top: 17px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 29px;
    position: relative;
    background-clip: padding-box;
    overflow: hidden;
    background-image: linear-gradient(128.65deg, rgba(255, 255, 255, 0.08) 12.45%, rgba(255, 255, 255, 0) 51.24%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.visualtake-row1 .vt-visualtake-card h4{
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
}
.visualtake-row1 .vt-visualtake-card:nth-child(2) {
    width: 408px;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    background-clip: padding-box;
    overflow: hidden;
}

.vt-visualtake-card[data-card="ai-storyboard-generation"] .overlay{
    background: radial-gradient(47.54% 51.76% at 49.87% 48.78%, rgb(20 20 20 / 13%) 0%, rgba(20, 20, 20, 1));
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
/* === AI Storyboard Card: Full-Screen Text Wallpaper === */
.vt-visualtake-card[data-card="ai-storyboard-generation"] .card-overlay {
    pointer-events: none;
        border-radius: inherit;
        pointer-events: none;
        border-radius: inherit;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.3em;
    padding: 0;
}

.vt-visualtake-card[data-card="ai-storyboard-generation"] .marquee-row {
    position: static;
    width: 300%; /* ensures seamless wrap */
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255);
    letter-spacing: 0.07em;
    white-space: nowrap;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    line-height: 1.1;
    height: 1.6em;
    animation: marquee-row var(--speed, 24s) linear infinite;
}

.vt-visualtake-card[data-card="ai-storyboard-generation"] .marquee-item {
    opacity: 1;
    min-width: max-content;
}
/* Seamless horizontal scroll */
@keyframes marquee-row {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Run the marquee when the card is hovered */
.vt-visualtake-card[data-card="ai-storyboard-generation"]:hover .marquee-row {
    animation-play-state: paused;
}
.vt-visualtake-card[data-card="project-management"] .schedule-options {
    display: flex;
    gap: 10px;
}

.vt-visualtake-card[data-card="project-management"] .option-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vt-visualtake-card[data-card="project-management"] .option-btn.active {
    background: linear-gradient(200.42deg, #844FFC 13.57%, #491EB8 98.35%);
    color: white;
}

/* 2nd row: 3 cards with height 357px, widths 562px, 287px, 287px */
.visualtake-row2 {
    height: 357px;
}

.visualtake-row2 .vt-visualtake-card {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(158.77deg, #141414 54.71%, #222222 85.69%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visualtake-row2 .vt-visualtake-card h4{
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
}

.visualtake-row2 .vt-visualtake-card:nth-child(1) {
    width: 562px;
    background: linear-gradient(295.44deg, #141414 62.73%, #220C37 83.96%);
}

.visualtake-row2 .vt-visualtake-card:nth-child(2) img{
    object-fit: none;
    width: auto;
    border-radius: 10px;
    height: 184px;
}
.visualtake-row2 .vt-visualtake-card:nth-child(2){
    background: linear-gradient(131.54deg, #141414 58.52%, #220C37 95.68%);
}
.visualtake-row2 .vt-visualtake-card:nth-child(3){
    background: linear-gradient(205.34deg, #141414 59.5%, #220C37 95.36%);
}
.visualtake-row2 .vt-visualtake-card:nth-child(2),
.visualtake-row2 .vt-visualtake-card:nth-child(3) {
    width: 287px;
}

.vt-content-card{
    width: 100%;
    opacity: 1;
    border-radius: 10px;
    border-width: 1px;
    padding: 20px;
    background: linear-gradient(180deg, #1E1E1E 0%, #191822 100%);
    border-top: 1px solid;
    border-image-source: linear-gradient(155.31deg, rgba(255, 255, 255, 0.5) 12.33%, rgba(255, 255, 255, 0) 34.31%, rgba(255, 255, 255, 0) 52.66%, rgba(255, 255, 255, 0.54) 74.67%);
    box-shadow: 0px -4px 100px 0px rgba(30, 28, 52, 1);
    justify-content: center;
    align-items: center;
}

.card-content .vt-content-card {
    height: 200px;
    opacity: 1;
    border-radius: 10px;
    border-width: 1px;
    padding: 20px;
    border: none;
    box-shadow: none;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.card-content .vt-content-card h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #8D2BE8; /* Purple gradient effect */
    background: linear-gradient(180deg, #8D2BE8 -22.12%, rgba(141, 43, 232, 0) 70.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    width: fit-content;
}

.card-content .vt-content-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 3rd row: 2 cards with height 473px, widths 408px and 758px */
.visualtake-row3 {
    height: 573px;
}

.visualtake-row3 .vt-visualtake-card {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(131.54deg, #141414 58.52%, #220C37 95.68%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visualtake-row3 .vt-visualtake-card:nth-child(1) img{
    object-fit: none;
    object-position: center;
    border-radius: 10px;
}

.visualtake-row3 .vt-visualtake-card h4{
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
}

.visualtake-row3 .vt-visualtake-card h3{
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 34px;
    text-align: center;
    background-image: linear-gradient(0deg, #FFFFFF 13.02%, rgba(255, 255, 255, 0.3) 79.43%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.visualtake-row3 .vt-visualtake-card:nth-child(2) p{
    text-align: center;
}

.visualtake-row3 .vt-visualtake-card:nth-child(2) img{
    height: 391px;
    object-fit: cover;
    object-position: top;
}

.visualtake-row3 .vt-visualtake-card:nth-child(1) {
    width: 448px;
}

.visualtake-row3 .vt-visualtake-card:nth-child(2) {
    width: 718px;
    padding: 0 !important;
}

/* 4th row: 2 cards with height 175px, width 583px each */
.visualtake-row4 {
    justify-content: center;
}

.visualtake-row4 .vt-visualtake-card {
    height: 100%;
    width: 583px;
    border-radius: 20px;
    background: linear-gradient(131.54deg, #141414 58.52%, #220C37 95.68%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visualtake-row4 .vt-visualtake-card h3{
    font-family: 'Satoshi', sans-serif;
    font-size: 34px;
    font-weight: 700;
    background-image: linear-gradient(0deg, #FFFFFF 13.02%, rgba(255, 255, 255, 0.3) 79.43%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.card-buttons{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.card-button{
    width: fit-content;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-button p{
    font-family: 'Poppins', sans-serif;
    font-size: 10px !important;
    color: rgba(204, 204, 204, 1);
}

.vt-visualtake-card .card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vt-visualtake-card h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.vt-visualtake-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.vt-visualtake-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px !important
}

/* Project Management Card */
.project-management-column{
    width: 331px;
}

.vt-visualtake-card[data-card="project-management"] .card-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.vt-visualtake-card[data-card="project-management"] .tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vt-visualtake-card[data-card="project-management"] .tab-btn.active {
    background: rgba(141, 43, 232, 0.3);
    color: #8D2BE8;
}

.row-button{
    opacity: 1;
    border-radius: 10px;
    border-width: 1px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.31);
    border: 1px solid #844FFC;
    backdrop-filter: blur(7px);
    box-shadow: 0px 4px 10px -1px rgba(0, 0, 0, 1);
    align-content: center;
    align-self: center;
}

.row-buttons{
    width: auto;
    height: 55px;
    opacity: 1;
    align-content: center;
    align-self: center;
    border-radius: 10px;
    border-width: 1px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 20px;
    background: linear-gradient(200.42deg, #844FFC 13.57%, #491EB8 98.35%);
    border-image-source: linear-gradient(155.31deg, rgba(255, 255, 255, 0.5) 12.33%, rgba(255, 255, 255, 0) 34.31%, rgba(255, 255, 255, 0) 52.66%, rgba(255, 255, 255, 0.54) 74.67%);
}

/* Smart Scheduling Card */
.vt-visualtake-card[data-card="smart-scheduling"] .schedule-options {
    display: flex;
    gap: 8px;
}

.vt-visualtake-card[data-card="smart-scheduling"] .option-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 56px;
    font-family: 'poppins', sans-serif;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vt-visualtake-card[data-card="smart-scheduling"] .option-btn.active {
    background: linear-gradient(200.42deg, #844FFC 13.57%, #491EB8 98.35%);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .vt-visualtake-grid {
        max-width: 900px;
    }
    
    .visualtake-row1,
    .visualtake-row2,
    .visualtake-row3 {
        flex-direction: column;
    }
    
    .visualtake-row1 .vt-visualtake-card {
        width: 100% !important;
        height: auto;
        min-height: 300px;
    }
    .visualtake-row2 .vt-visualtake-card{
        width: 100% !important;
        height: auto;
        min-height: 200px;
    }
    .visualtake-row3 .vt-visualtake-card{
        width: 100% !important;
        height: auto;
        min-height: 500px !important;
    }
    .visualtake-row4 .vt-visualtake-card {
        width: 100% !important;
        height: auto;
        min-height: 200px;
    }
    .visualtake-row1 {
        height: auto;
    }
    
    .visualtake-row2 {
        height: auto;
    }
    
    .visualtake-row3 {
        height: auto;
    }
}

@media (max-width: 767px) {
    .vt-visualtake-grid {
        max-width: 600px;
        gap: 20px;
    }
    
    .vt-visualtake-card {
        padding: 15px;
    }
    
    .vt-visualtake-card h3 {
        font-size: 18px;
    }
    
    .vt-visualtake-card p {
        font-size: 14px;
    }
    
    .visualtake-row1 .vt-visualtake-card {
        width: 100%;
    }
    
    .visualtake-row1 .vt-visualtake-card:nth-child(2) {
        width: 100%;
        height: 250px !important;
    }
    
    .visualtake-row2 .vt-visualtake-card {
        width: 100%;
    }
    
    .visualtake-row3 .vt-visualtake-card {
        width: 100%;
        min-height: auto !important;
    }

    .visualtake-row3 .vt-visualtake-card:nth-child(2) h3{
        text-align: left;
    }

    .visualtake-row3 .vt-visualtake-card:nth-child(2) p{
        text-align: left;
    }
    
    .visualtake-row4{
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .vt-visualtake-card img{
        border-radius: 0px !important;
    }
}

@media (max-width: 480px) {
    .vt-visualtake-grid {
        max-width: 350px;
        gap: 15px;
    }
    
    .vt-visualtake-card {
        padding: 10px;
    }
    
    .vt-visualtake-card h3 {
        font-size: 16px;
    }
    
    .visualtake-row3 .vt-visualtake-card:nth-child(2) h3{
        text-align: left;
    }

    .visualtake-row3 .vt-visualtake-card:nth-child(2) p{
        text-align: left;
    }

    .vt-visualtake-card p {
        font-size: 14px;
    }
    
    .vt-visualtake-card .card-content {
        padding: 10px 0;
    }
    
    .vt-visualtake-card .card-tabs,
    .vt-visualtake-card .schedule-options {
        flex-wrap: wrap;
    }
    .tool-icon{
        height: 14px !important;
        width: 14px !important;
    }
    .script-tools .tool-icon:nth-child(4) {
        display: none;
    }
  .hide-on-mobile {
    display: none !important;
  }
  .script-header {
        display: flex;
        align-items: center;
        gap: 10px !important;
    }
    .script-tools{
        width: auto!important;
    }

}

/* Department Grid Layout */
.vt-department-grid {
    display: flex;
    width: 100%;
    margin-top: 50px;
    /* background: linear-gradient(158.77deg, #141414 54.71%, #222222 85.69%);; */
    /* border: 1px solid var(--neutral-warm-grey-700, #2E2E2E); */
    /* padding: 30px; */
    gap: 50px;
    /* border-radius: 24px; */
}

.vt-department-column1,
.vt-department-column2 {
    display: flex;
    flex: 1; /* Equal width columns */
    /* min-height: 448px; Ensuring equal height columns */
}

.vt-department-column1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vt-department-row1,
.vt-department-row2 {
    display: flex;
    gap: 20px;
    width: 100%;
    flex: 1; /* Each row takes equal vertical space */
}

.vt-department-subcard {
    flex: 1; /* Equal width cards in each row */
    padding: 24px 30px 40px;
    border-radius: 12px;
    background: linear-gradient(158.77deg, #141414 54.71%, #222222 85.69%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: background 0.3s ease;
    border: 1px solid var(--neutral-warm-grey-700, #2E2E2E);
}

.vt-department-subcard:hover {
    background: linear-gradient(315.85deg, #141414 15.04%, #220C37 86.13%);
}

.vt-department-column2 .vt-department-subcard:hover {
    background: linear-gradient(315.85deg, #141414 15.04%, #220C37 86.13%);
}

.vt-department-subcard h4 {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: white;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
}

.vt-department-subcard p {
    margin: 0;
    font-size: 16px;
    color: white;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.vt-department-column2 {
    display: flex;
    align-items: stretch; /* Stretch to match column1 height */
    justify-content: center;
    padding: 0;
}

.vt-department-column2 .visual-card10 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.vt-department-card{
    width: 100%;
    gap: 12px;
    opacity: 1;
    border-radius: 8px;
    border-width: 1px;
    padding: 20px;
    background: linear-gradient(180deg, #1E1E1E 0%, #191822 100%);
    border-top: 1px solid;
    border-image-source: linear-gradient(155.31deg, rgba(255, 255, 255, 0.5) 12.33%, rgba(255, 255, 255, 0) 34.31%, rgba(255, 255, 255, 0) 52.66%, rgba(255, 255, 255, 0.54) 74.67%);
    box-shadow: 0px -4px 100px 0px rgba(30, 28, 52, 1);
    justify-content: center;
    align-items: center;
}

.vt-department-subcard .vt-department-card {
    height: 231px;
    opacity: 1;
    border-radius: 8px;
    border-width: 1px;
    padding: 90px 100px;
    border: none;
    box-shadow: none;
    margin-bottom: 24px;
    align-items: center;
}

.vt-department-subcard .vt-department-card h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #8D2BE8; /* Purple gradient effect */
    background: linear-gradient(180deg, #8D2BE8 -22.12%, rgba(141, 43, 232, 0) 70.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.vt-department-subcard .vt-department-text {
    margin-bottom: 24px;
}

.vt-department-subcard .vt-department-text p {
    font-family: 'Satoshi', sans-serif;
    font-style: italic;
    font-size: 16px;
    color: rgba(204, 204, 204, 0.7);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
    text-align: justify;
}

.vt-department-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vt-department-profile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.vt-department-profile-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vt-department-profile-text h5 {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin: 0;
}

.vt-department-profile-text p {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.vt-department-column2 .vt-department-subcard {
    padding: 30px;
    min-height: 448px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(158.77deg, #141414 54.71%, #222222 85.69%);
    border: 1px solid var(--neutral-warm-grey-700, #2E2E2E);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Desktop-only utilities to force one-line or two-line presentation */
@media (min-width: 992px) {

    .vt-two-line-desktop5 {
        /* limit width so content wraps to two lines on desktop */
        white-space: normal;
        display: inline-block;
        overflow-wrap: normal;
    }

    .vt-section-title.vt-two-line-desktop5 {
        max-width: 1000px; /* suitable for section headings to wrap into two lines */
    }
}

.vt-content{
    max-width: 955px !important;
}

.vt-content p{
    width: 605px !important;
}
.vt-celegram-description-section {
    position: relative;
    z-index: 10;
}

/* Responsive Screens */
@media (max-width: 768px) {
    .vt-celegram-description-section {
    position: relative;
    z-index: 10;
}

  .vt-hero-title3 {
    line-height: 1.3 !important;
  }

  .vt-hero-line1,
  .vt-hero-line2 {
    display: block;
  }

  .vt-section-subtitle {
    font-size: 18px !important;
    padding: 0 10px;
    max-width: 520px;
  }

  .vt-video-player2 {
    height: auto !important;
    margin-top: 30px;
    border-radius: 16px !important;
    object-fit: cover;
    aspect-ratio: 16/9;
  }

  .vt-video-bg {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .card-buttons{
    flex-direction: column;
  }

  .icon-item{
    padding: 4px !important;
  }
}

/* visualtake grid */
@media (max-width: 1024px) {
  .vt-visualtake-grid {
    max-width: 100% !important;
    gap: 24px;
  }

  /* Force all rows to stack */
  .visualtake-row1,
  .visualtake-row2,
  .visualtake-row3{
    flex-direction: column !important;
    height: auto !important;
  }

  .vt-visualtake-card {
    width: 100% !important;
    height: auto !important;
    padding: 20px !important;
  }

  /* Project Management: Stack internal columns */
  .vt-visualtake-card[data-card="project-management"] {
    flex-direction: column !important;
  }

  .project-column1,
  .project-column2 {
    width: 100% !important;
    height: auto !important;
  }

  .project-column2 {
    background: linear-gradient(128.65deg, rgba(255, 255, 255, 0.08) 12.45%, rgba(255, 255, 255, 0) 51.24%) !important;
    padding: 20px !important;
    border-radius: 12px;
  }

  /* Card images */
  .vt-visualtake-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
    object-fit: contain !important;
  }

  /* Typography scaling */
  .vt-visualtake-card h3,
  .vt-visualtake-card h4 {
    font-size: 20px !important;
  }

  .vt-visualtake-card p {
    font-size: 16px !important;
  }

  /* Buttons inside cards */
  .option-btn,
  .card-button {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }

  .card-content .vt-content-card h3 {
    font-size: 40px !important;
  }
}

/* Department section */
@media (max-width: 768px) {
  /* Remove background and border */
  .vt-department-grid {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 40px !important;
    flex-direction: column !important;
    gap: 30px !important;
  }

  /* Stack everything vertically */
  .vt-department-column1,
  .vt-department-row1,
  .vt-department-row2 {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .vt-department-subcard {
    width: 100% !important;
    min-height: unset !important;
    padding: 20px !important;
    gap:10px !important;
  }

  /* Move column2 below column1 */
  .vt-department-column2 {
    order: 2;
    width: 100% !important;
    padding: 0 !important;
  }

  .vt-department-column2 .vt-department-subcard {
    padding: 24px !important;
    gap: 10px !important;
  }

  /* Typography */
  .vt-department-subcard h4 {
    font-size: 18px !important;
  }

  .vt-department-subcard p,
  .vt-department-text p {
    font-size: 14px !important;
  }

  .vt-department-card h3 {
    font-size: 40px !important;
  }

  .vt-department-profile-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .vt-department-profile {
    width: 40px !important;
    height: 40px !important;
  }

  .vt-department-profile-text h5 {
    font-size: 15px !important;
  }

  .vt-department-profile-text p {
    font-size: 14px !important;
  }

  .vt-department-subcard .vt-department-card{
    padding: 40px;
    height: fit-content;
  }
  .vt-department-subcard .vt-department-card h3{
    font-size: 40px !important;
  }
}

/* Quote box section */
@media (max-width: 768px) {
  .vt-about-section-full2 {
    padding: 60px 0 30px !important;
  }

  .vt-section-content h2 {
    font-size: 26px !important;
    text-align: center;
  }

  .vt-section-content p {
    font-size: 14px !important;
    text-align: center;
    width: 100% !important;
  }

  .quote-box-container {
    margin-top: -170px !important;
  }

  .vt-quote-box2 h4 {
    font-size: 18px !important;
  }

  .vt-quote-box2 p {
    font-size: 14px !important;
    text-align: left !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px){
    .scene-title-pill{
        min-width: 112px;
    }
    .visualtake-row1 .vt-visualtake-card:nth-child(2){
        height: 400px !important;
    }
    .vt-section {
        padding: 70px 32px !important;
    }
    .card-content .vt-content-card h3 {
        font-size: 70px !important;
    }
    .vt-visualtake-card h4 {
        font-size: 24px !important;
    }
    .vt-visualtake-card p {
        font-size: 16px !important;
    }
    .vt-department-subcard .vt-department-card h3 {
        font-size: 80px !important;
    }
    .vt-department-text p {
        font-size: 16px !important;
    }
    .vt-department-profile-text h5 {
        font-size: 18px !important;
    }
    .vt-department-profile-text p {
        font-size: 16px !important;
    }
    .vt-about-section-full2 .vt-section-content h2 {
        font-size: 60px !important;
        line-height: 1.3;
    }
    .vt-department-row1, .vt-department-row2 {
        display: flex;
        flex-direction: row !important;
        gap: 20px !important;
    }
    .vt-hero-title4{
        font-size: 42px !important;
    }
    .vt-section-content h2 {
        font-size: 50px !important;
        line-height: 1.3;
    }
}

@media (min-width: 768px) and (max-width: 1024px) { /* Adjust breakpoints as needed */
  .vt-department-row1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 20px; /* Space between grid items */
  }

  /* No specific changes needed for .vt-department-subcard for this approach */
}

/* === Task Buttons Group === */
.vt-task-header {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vt-text-secondary, #a0a0a0);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.vt-task-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vt-task-btn {
    display: flex;
    height: 60px;
    width: 248px;
    align-items: center;
    gap: 0.75rem;
    padding: 7px 14px 7px 7px;
    background: linear-gradient(86.16deg, #2D2D2D 11.14%, #1E1E1E 113.29%);
    border: none;
    border-radius: 0.75rem;
    color: #e0e0e0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vt-task-btn--active {
    background: linear-gradient(200.42deg, #844FFC 13.57%, #491EB8 98.35%);
    color: white;
    transform: translateY(-1px);
    width: 259px;
}

.vt-task-icon {
    flex-shrink: 0;
    width: 47px;
    height: 46px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.8;
    background: linear-gradient(86.16deg, rgba(255, 255, 255, 0.08) 11.14%, rgba(255, 255, 255, 0.04) 113.29%);
}
.vt-task-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.vt-task-btn--active .vt-task-icon {
    opacity: 1;
}

.vt-task-label {
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-breakdown-label {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-task-more {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0.7;
    user-select: none;
}

.vt-task-btn--active .vt-task-more {
    opacity: 1;
}

/* Optional: subtle pulse on active (for visual feedback) */
.vt-task-btn--active {
    animation: pulse 2s infinite alternate;
}
@keyframes pulse {
    0% { box-shadow: 0 0 12px rgba(106, 17, 203, 0.4); }
    100% { box-shadow: 0 0 20px rgba(106, 17, 203, 0.7), 0 0 0 2px rgba(106, 17, 203, 0.2); }
}

/* Responsive tweak */
@media (max-width: 768px) {
    .vt-task-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8125rem;
        width: 220px;
    }
    .vt-task-btn--active {
        width: 230px;
    }

    .vt-task-icon {
        width: 1.125rem;
        height: 1.125rem;
    }
}
/* === Project Management Preview Panels === */
.project-preview {
    width: 100%;
}
.span-header{
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
}
.span-para{
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.7);
}
.preview-content{
    display: grid;
    gap: 10px;
}
/* Common styles */
.preview-task-list{
    background: linear-gradient(180deg, rgba(32, 14, 49, 0) 38.54%, #200E31 94.39%);
    border-radius: 10px;
    padding: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Crew Preview */
.preview-header {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-bottom: 0.75rem;
}
.preview-badge {
    background: rgba(187, 57, 208, 0.2);
    color:#ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}
h3.preview-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}
.preview-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
}
.preview-avatar-group {
    display: flex;
    gap: -0.5rem;
}
.preview-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #1e1e23;
    background: #2d2d37;
}
.preview-avatar-more {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.preview-label {
    font-size: 26px;
    font-weight: 500;
    color: #e0e0e0;
}
.preview-trust {
    font-size: 0.8125rem;
    color: #a0a0a0;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Tasks Preview */
.preview-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.preview-task-list h3{
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}
.preview-task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(40, 40, 48, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.preview-task-item:hover {
    background: rgba(50, 50, 60, 0.7);
}
.preview-task-item.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}
.task-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.8;
}
.preview-task-item.active .task-icon svg {
    opacity: 1;
}
.preview-task-item span {
    flex: 1;
    font-weight: 500;
}
.task-actions {
    opacity: 0.6;
    font-size: 0.875rem;
    user-select: none;
}
.preview-task-item.active .task-actions {
    opacity: 1;
}
.icon-list{
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.icon-item{
    border: 1px solid rgba(250, 250, 250, 0.1);
    border-radius: 20px;
    padding: 8px 14px;
}
.button-class{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    gap: 10px;
}
.green-btn{
    background: rgba(12, 142, 48, 0.3);
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid rgba(250, 250, 250, 0.1);
    color: rgba(255, 255, 255, 1);
    pointer-events: none;
}
/* Calendar Preview */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 10px;
    background: linear-gradient(86.16deg, rgba(255, 255, 255, 0.08) 11.14%, rgba(255, 255, 255, 0.04) 113.29%);
    border-radius: 10px;
}
.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s;
}
.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.calendar-dates {
    display: flex;
    gap: 0.5rem;
}
.date-item {
    text-align: center;
    padding: 0.5rem 0.75rem;
    pointer-events: none;
    transition: all 0.2s;
}
.date-item.active {
    background: rgba(151, 71, 255, 0.06);
    border: 1px solid #9747FF;
    border-radius: 10px;
}
.date-item span {
    font-weight: 600;
    font-size: 0.95rem;
}
.date-item small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.calendar-event {
    display: flex;
    gap: 1rem;
    align-items: start;
}
.event-time {
    font-size: 0.875rem;
    color: #a0a0a0;
    min-width: 48px;
    padding-top: 0.25rem;
}
.event-content {
    padding: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 53.93%, rgba(255, 255, 255, 0.04) 100%);
    flex: 1;
    border-radius: 10px;
}
.event-content h4 {
    font-size: 14px !important;
    margin: 0 0 0.3rem 0;
    color: #e0e0e0;
}
.event-tag {
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.4rem;
}
.event-time-range {
    background: rgba(187, 57, 208, 0.2);
    color: #a0a0a0;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    display: inline-block;
}

/* === AI Scriptwriting Preview Card === */
.vt-visualtake-card[data-card="ai-scriptwriting"] .ai-script-preview {
    background: linear-gradient(180deg, #1E1E1E 0%, #191822 100%);
    border-radius: 0.75rem;
    height: 196px;
    width: 100%;
    padding: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(250, 250, 250, 0.1);
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.5;
    overflow: hidden;
    position: relative;
}

/* Script Header Bar */
.script-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    height: 50px;
    margin-bottom: 1.2rem;
    padding: 10px;
    background: rgba(250, 250, 250, 0.04);
    border-radius: 10px;
}

.scene-title-pill {
    background: linear-gradient(262.25deg, #BB39D0 0%, #9747FF 98.97%);
    color: white;
    padding: 0.35rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5em; 
    flex-direction: row;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 200;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
}

.script-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: default;
    transition: color 0.2s;
}
.tool-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

.page-count {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

/* Script Body */
.script-body {
    margin-bottom: 1.2rem;
}

.scene-heading {
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 2px;
}

.action-line {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #4caf50;
    margin: 2px;
}

.character-line {
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    color: #e0e0e0;
}

.dialogue-line {
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    color: #8a5cf5;
    text-align: center;
}

.dialogue-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(138, 92, 245, 0.3);
}

/* Script Footer (matches your original h4/p) */
.script-footer h4 {
    font-size: 1.1rem;
    margin: 0.8rem 0 0.4rem;
    color: #e0e0e0;
    font-weight: 600;
}

.script-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Responsive tweak */
@media (max-width: 768px) {
    .script-header {
        gap: 200px;
    }
    .scene-title-pill {
        font-size: 0.75rem;
    }
    .script-tools {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .script-tools::-webkit-scrollbar {
        display: none;
    }
}

/* === Smart Scheduling Preview Panel === */
.vt-visualtake-card[data-card="smart-scheduling"] .smart-schedule-preview {
    border-radius: 0.75rem;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Phase Header */
.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.phase-label {
    background: rgba(187, 57, 208, 0.2);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 10px;
    font-size: 10px;
}

.phase-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.row-1-container{
    display: flex;
    gap: 10px;
    align-items: center;
}
.item-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    flex-shrink: 0;
}

.item-badge.bg-purple { background: rgba(170, 64, 230, 1); }
.item-badge.bg-orange { background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%); }
.item-badge.bg-blue   { background: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%); }
.item-badge.bg-green  { background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); }
.item-badge.bg-red    { background: linear-gradient(135deg, #f44336 0%, #b71c1c 100%); }

.item-content {
    flex: 1;
}

.item-title {
    color: #e0e0e0;
    margin-bottom: 0.3rem;
    font-size: 12px;
}

.item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .phase-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: center;
    }
    .schedule-item {
        padding: 0.6rem;
    }
    .vt-task-buttons{
        align-items: center;
    }
    .vt-visualtake-card[data-card="ai-scriptwriting"] .ai-script-preview {
        width: 100%;
        height: 255px;
    }
    
}

.vt-visualtake-card[data-card="ai-scriptwriting"] .script-body {
    height: 90px; /* Fixed height to force scrolling */
    overflow: hidden; /* Hide the content that spills out */
    position: relative;
}

.vt-visualtake-card[data-card="ai-scriptwriting"] .script-content-wrapper {
    width: 100%;
    /* No fixed height here, it grows with content */
    will-change: transform; /* Optimize for animation */
}

/* Constrain text within script-body and its children */
.vt-visualtake-card[data-card="ai-scriptwriting"] .script-body,
.vt-visualtake-card[data-card="ai-scriptwriting"] .script-content-wrapper {
    overflow: hidden;
    white-space: normal; /* Allow wrapping */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Optional: Add ellipsis for very long single-line text */
.vt-visualtake-card[data-card="ai-scriptwriting"] .scene-heading,
.vt-visualtake-card[data-card="ai-scriptwriting"] .action-line,
.vt-visualtake-card[data-card="ai-scriptwriting"] .character-line,
.vt-visualtake-card[data-card="ai-scriptwriting"] .dialogue-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines per element */
    -webkit-box-orient: vertical;
    line-height: 1.2;
}

.vt-hero-section .vt-hero-content {
    overflow: visible !important;
    pointer-events: none; /* Let clicks pass through during anim */
    z-index: 10;
}

.vt-hero-section .vt-hero-content > * {
    pointer-events: auto;
}


/* Hide blurs during takeover */
.vt-hero-section.vt-video-taking-over .vt-blur-bg {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease;
}

/* Establish relative context for the card's video area */
.vt-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Or a fixed height like 400px depending on your layout */
    min-height: 600px;
    overflow: hidden;
    border-radius: inherit; /* Matches parent card radius if needed */
}

/* Ensure video covers the entire wrapper */
.vt-video-bg1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for maintaining aspect ratio without stretching */
    z-index: 1;
}

/* Position the text over the video */
.vt-card-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits above the video */
    
    /* Flexbox for centering or aligning content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns text to bottom (common for hero cards) */
    padding: 2rem;
}

/* Specific tweaks for the header inside the overlay */
.vt-card-overlay-content .card-header h3,
.vt-card-overlay-content .card-header p {
    color: #ffffff; 
}

/* Tablet & Mobile (Max-width 768px) */
@media (max-width: 768px) {
    .vt-visualtake-card[data-card="ai-scriptwriting"] .script-body {
        height: 130px;
    }
    .visualtake-row3 {
        flex-direction: column; /* Force stacking vertically */
        gap: 1.5rem;
    }

    .vt-visualtake-card {
        width: 100%; /* Ensure full width */
        flex: 1 1 100%;
    }

    /* Optional: Make video taller on mobile for better visibility */
    .vt-video-wrapper {
        aspect-ratio: 16 / 9; /* Keeps standard ratio, or change to 4/3 */
    }

    .vt-card-overlay-content {
        padding: 1rem;
        justify-content: flex-start;
    }

    .vt-card-overlay-content h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    .vt-card-overlay-content p {
        font-size: 14px;
        text-align: center;
    }
}
/* Small Mobile (Max-width 480px) */
@media (max-width: 480px) {
    .vt-video-wrapper {
        min-height: 340px;
    }
    
    .vt-card-overlay-content h3 {
        font-size: 1.1rem;
    }
}
/* --- Script Score Counter Styles --- */

/* Apply gradient to all text elements in the counter */
.vt-score-counter, 
.score-percent-symbol,
.score-decimal,
.score-strip span {
    /* The Gradient */
    background: linear-gradient(180deg, #8D2BE8 0%, rgba(141, 43, 232, 0) 86.44%);
    
    /* Apply gradient to text */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* CRITICAL: Make text transparent so gradient shows through */
    color: transparent; 
    
    font-weight: bold;
}

.vt-score-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem; /* Adjust size as needed */
    line-height: 1;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Hides the parts of the strip outside the window */
}

.score-column {
    height: 1em; /* Height of exactly one digit */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.score-strip {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.score-strip span {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1em;
}

.score-decimal {
    margin: 0 2px;
    align-self: flex-end;
    margin-bottom: 0.15em;
    font-size: 0.8em;
}

.score-percent-symbol {
    font-size: 0.8em;
    margin-left: 4px;
    align-self: flex-start;
    margin-top: 0.1em;
    font-weight: bold;
}

/* Ensure active buttons ALWAYS have the rotation */
.vt-task-btn.vt-task-btn--active,
.vt-breakdown-btn.vt-breakdown-btn--active {
    transform: rotate(-2.04deg) !important;
    transition: transform 0.3s ease; /* Smooth transition when clicked */
}

/* Ensure non-active buttons reset */
.vt-task-btn:not(.vt-task-btn--active),
.vt-breakdown-btn:not(.vt-breakdown-btn--active) {
    transform: none !important;
}

/* Show more date items on Tablet screens */
@media (min-width: 767px) and (max-width: 1024px) {
    .calendar-dates {
        /* Ensure flex-wrap is allowed if you have many items */
        flex-wrap: wrap; 
        gap: 4px; /* Reduce gap slightly to fit more */
        justify-content: center;
    }
     .card-buttons{
        flex-direction: column !important;
     }
    .date-item {
        /* Force items to be smaller to fit more in one row */
        /* If you want 7 items: calc(100% / 7) minus gap adjustment */
        flex: 0 0 calc((100% / 7) - 8px); 
        
        /* Adjust font sizes slightly for tablet density */
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .date-item span {
        font-size: 0.9rem;
    }

    .date-item small {
        font-size: 0.65rem;
    }

    .visualtake-row1 .vt-visualtake-card:nth-child(2){
        min-height: 400px !important;
    }
}

.calendar-dates {
    display: flex;
    flex-direction: row; /* Ensures items stay in a row */
    overflow-x: auto;    /* Enables horizontal scrolling */
    overflow-y: hidden;  /* Prevents vertical spill */
    
    /* UX Enhancement: Smooth scrolling behavior */
    scroll-behavior: smooth; 
    
    /* Hide Scrollbar for Firefox */
    scrollbar-width: none; 
}

/* Hide Scrollbar for Chrome, Safari, and Opera */
.calendar-dates::-webkit-scrollbar {
    display: none;
}

.date-item {
    /* Prevent items from shrinking or growing unevenly */
    flex: 0 0 auto; 
    min-width: 60px; 
    /* Center content within the item */
    text-align: center;
}

/* Remove margin from the last item */
.date-item:last-child {
    margin-right: 0;
}