/* ==== Video Popup Block ==== */
.fc-video-box-block {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E9EAEB;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    width: 100%; /* full width inside parent container */
    max-width: 450px; /* optional max-width for standalone block */
    margin: 0 auto;
}

.fc-video-box-block:hover {
    padding: 1px 1px 6px 1px;
    background: linear-gradient(
        90deg,
        rgba(86, 233, 255, 0.2) 0%,
        rgba(112, 151, 255, 0.2) 50%,
        rgba(183, 83, 255, 0.2) 100%
    );
}

.fc-video-box-content-wrapper {
    background-color: #fff;
    border-radius: 0 0 16px 16px;
}

/* Image Wrapper */
.fc-video-box-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.fc-video-box-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s ease;
}

.fc-video-box-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Play Button */
.fc-video-box-image-wrapper .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    background: #8020F8;
    border: 5px solid #E2CBFF;
    color: #fff;
    cursor: pointer;
    padding: 8px 17px;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.fc-video-box-image-wrapper .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #6020b8;
}

/* Video Popup Overlay */
.fc-video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px; /* add padding for mobile */
    box-sizing: border-box;
}

.fc-video-popup-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    /* overflow: hidden; */
}

.fc-video-popup-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.fc-video-popup-content .close-btn {
    position: absolute;
    top: -35px;
    right: -35px;
    background: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video Popup Responsive */
@media (max-width: 1024px) {
    .fc-video-popup-content { width: 70%; max-width: 700px; }
}

@media (max-width: 768px) {
    .fc-video-popup-content { width: 85%; max-width: 500px; }
}

@media (max-width: 480px) {
    .fc-video-popup-content { width: 95%; max-width: 350px; }
}

/* Title */
.fc-video-box-title {
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: rgb(21, 23, 28);
    text-align: left;
    padding: 20px 16px 0 24px;
    margin: 0;
    transition: 0.3s ease-in-out;
}

/* Subtitle */
.fc-video-box-block p.fc-video-box-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: rgb(85, 94, 114);
    text-align: left;
    padding: 14px 14px 24px 24px;
    margin: 0;
    transition: 0.3s ease-in-out;
}

/* Grid Wrapper (if multiple blocks are used in a parent container) */
.fc-video-box-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .fc-video-box-block { 
        max-width: 100%;
    }
    
    .fc-video-box-title {
        font-size: 18px;
    }

    .fc-video-box-block p.fc-video-box-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .fc-video-box-block { 
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .fc-video-box-block { 
        max-width: 100%;
    }
    
    .fc-video-popup-content .close-btn {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
}

/* ==== Advanced Table Block ==== */
.wp-block-frontis-child-table-of-content table {
    border: 1px solid #ddd;
    overflow: hidden; /* ensure corners clip */
}
/* Give consistent cell borders */
.wp-block-frontis-child-table-of-content table td, .wp-block-frontis-child-table-of-content table th {
    border: 1px solid #ddd;
    text-align: left;
}
/* Remove double borders inside */
.wp-block-frontis-child-table-of-content table td {
    border-left: none;
    border-top: none;
}
.wp-block-frontis-child-table-of-content table tr:first-child td {
  border-top: none;
  border-left: none;
}
.wp-block-frontis-child-table-of-content table tr:last-child td {
    border-bottom: none;
    border-left: none;
}
.wp-block-frontis-child-table-of-content table td:first-child {
    border-left: none;
    border-top: none;
}
.wp-block-frontis-child-table-of-content table td:last-child {
    border-right: none;
    border-left: none;
    border-top: none;
}

.wp-block-frontis-child-table-of-content table tbody td{
    vertical-align: baseline;
}

.wp-block-frontis-child-table-of-content table tbody tr:first-child td{
    vertical-align: baseline;
    font-family: Onest;
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0px;
}

.wp-block-frontis-child-table-of-content table tbody tr:first-child td span{
    padding: 20px;
    display: block;
}

/* .wp-block-frontis-child-table-of-content table tbody tr:first-child td:last-child{
    padding: 1px;
    padding-bottom: 0;
    border: none !important;
    background: linear-gradient(90deg, rgba(86, 233, 255, 1.2) 0%, rgba(112, 151, 255, 1.2) 50%, rgba(183, 83, 255, 1) 100%) !important;
}

.wp-block-frontis-child-table-of-content table tbody tr:first-child td:last-child span{
    background: #ffffff94;
    border-top-right-radius: 15px;
}
.wp-block-frontis-child-table-of-content table tbody tr td:last-child{
    border: none !important;
    padding: 0 1px 0 1px;
    background: linear-gradient(90deg, rgba(86, 233, 255, 1.2) 0%, rgba(112, 151, 255, 1.2) 50%, rgba(183, 83, 255, 1) 100%) !important;
} */

/* .wp-block-frontis-child-table-of-content table tbody tr td:last-child span{
    background: #E9EAEB;
} */

.wp-block-frontis-child-table-of-content table tbody tr td{
    vertical-align: middle;
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
}

.wp-block-frontis-child-table-of-content table tbody tr td span{
    padding: 30px 10px 30px 14px;
    display: block;
}

.wp-block-frontis-child-table-of-content table tbody tr:first-child td:first-child {
    border-top-left-radius: 16px;
}

.wp-block-frontis-child-table-of-content table tbody tr:first-child td:last-child {
    border-top-right-radius: 16px;
}

.wp-block-frontis-child-table-of-content table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.wp-block-frontis-child-table-of-content table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}
.wp-block-frontis-child-table-of-content table tbody tr:last-child td:last-child span {
    border-bottom-right-radius: 16px;
}
/* ==== Testimonial Masonry Block ==== */


.fc-testimonial-masonry-wrapper-main {
    width: 100%;
    column-count: 3; /* 3 columns */
    column-gap: 2rem; /* gap between columns */
}
.fc-testimonial-masonry-item-wrapper {    
    background: #e9eaeb;
    padding: 1px;
    margin-bottom: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.fc-testimonial-masonry-item-wrapper:hover {
    padding: 1px 1px 6px 1px;
    background: linear-gradient(90deg, rgba(86, 233, 255, 0.2) 0%, rgba(112, 151, 255, 0.2) 50%, rgba(183, 83, 255, 0.2) 100%);
}
.fc-testimonial-masonry-item-wrapper:hover .fc-testimonial-masonry-item{
    border: none;
}
.fc-testimonial-masonry-item {
    padding: 23px;
    border-radius: 16px;
    background: #fff;
    position: relative;
    break-inside: avoid; /* prevent breaking inside columns */
}

/* Responsive: 2 columns on smaller screens */
@media (max-width: 900px) {
    .fc-testimonial-masonry-wrapper-main {
        column-count: 2;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
    .fc-testimonial-masonry-wrapper-main {
        column-count: 1;
    }
}

/* testimonial box  */
.fc-testimonial-container .fc-user {
    font-family: Onest;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0px;
}
.fc-testimonial-container span.fc-user-designation {
    color: #A4A7AE;
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}
.fc-testimonial-container p.fc-user-desc {
    color: #414651;
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}
span.fc-testimonial-date-text {
    color: #101828;
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}
.fc-testimonial-container .fc-testimonial-author-container {
    align-items: center;
    justify-content: space-between;
    display: flex;
}
.fc-testimonial-container .fc-testimonial-author-container .fc-testimonial-author-inner-container {
    align-items: center;
    gap: 20px;
    display: flex;
}
.fc-testimonial-container .fc-testimonial-author-container .fc-testimonial-author-inner-container .fc-testimonial-userinfo-container {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}
.fc-testimonial-container .fc-testimonial-author-container .fc-testimonial-author-inner-container .fc-testimonial-author-image-container .fc-testimonial-image {
    align-items: center;
    display: flex;
    justify-content: center;
}
.fc-testimonial-container .fc-testimonial-image img {
    width: 52px;
    height: 52px;
    border-radius: 10% 10% 10% 10%;
}
.fc-testimonial-container .fc-testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 36px 0 16px 0;
}
.fc-testimonial-container .fc-testimonial-rating .fc-testimonial-rating-icon {
    display: inline-block;
}
.fc-testimonial-container .fc-testimonial-rating-icon svg {
    width: 20px;
    height: 20px;
    fill: #f04438;
}

/* testimonial date */
.fc-testimonial-author-container + .fc-testimonial-userdesc-container {
    margin-top: 36px;
}
.fc-testimonial-date-wrapper {
    margin-top: 20px;
}
.fc-testimonial-container .fc-testimonial-date {
    display: flex;
    align-items: center;
    column-gap: 10px;
}
.fc-testimonial-container .fc-testimonial-date-wrapper .fc-testimonial-date-icon svg {
    width: 20px;
    height: 20px;
}