.tci-custom-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 2px;
    background-color: #ffd322;
}

.tci-custom-card .learn-more {
    font-size: 16px;
    color: #ffd322;
    margin-top: 1rem;
    font-weight: bold;
    font-family: "Work Sans", sans-serif;
    text-decoration: none;
    display: none;
}

.tci-custom-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: #ffd322;
    transition: clip-path 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    /* Initial square clip-path */
    z-index: 0;
    /* Place it below the overlay but above the image */
}

.tci-custom-card:hover::before {
    clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
}

.tci-custom-card a.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.tci-custom-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: clip-path 0.3s ease;
}

.card-overlay {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, clip-path 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    z-index: 2;
}

.tci-custom-card:hover .card-overlay,
.tci-custom-card:hover img,
.tci-custom-card:hover {
    clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
    background-color: rgba(0, 62, 113, 0.85);
    /* Blue overlay on hover */
}

.tci-custom-card:hover .learn-more {
    display: block;
}

.card-title {
    font-size: 33px;
    color: #fff;
    font-weight: bold;
    font-family: "Work Sans", sans-serif;
    margin-bottom: 10px;
}

/* New Styles */
/* Style for the vertical divider */
.vertical-divider {
    width: 2px;
    /* Width of the divider */
    height: 2rem;
    /* Height of the divider, adjust as needed */
    background-color: #ffd322;
    /* Color of the divider */
    display: none;
    /* Hide by default */
}

/* Show the divider on hover */
.tci-custom-card:hover .vertical-divider {
    display: block;
}

.card-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Adjust based on design requirements */
    align-items: center;
    /* Center children horizontally */
    text-align: center;
    padding: 15px;
}

.learn-more {
    transition: opacity 0.3s ease;
    opacity: 0;
    /* Hide initially, show on hover */
}

.tci-custom-card:hover .learn-more {
    opacity: 1;
}

/* Styles for different card types */
.tci-custom-card.tall {

    width: 100%;
    /* Full width of the container */
    height: 431px;
    /* Fixed height */
    position: relative;
    /* Needed for absolute positioning of the content */
    background-color: #ffd322;
    /* Yellow background as border */
    padding: 2px;
    /* Space for the border */
    box-sizing: border-box;
    /* Include padding in the height calculation */
    overflow: hidden;
    /* To ensure clip-path applies within the border */
}

.tci-custom-card.tall img {

    object-fit: cover;
    position: absolute;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: 1;
    /* Position below the overlay */
}

.tci-custom-card.tall .card-link,
.tci-custom-card.tall .card-overlay {
    position: absolute;
    top: 2px;
    /* Align with padding */
    left: 2px;
    /* Align with padding */
    right: 2px;
    /* Align with padding */
    bottom: 2px;
    /* Align with padding */
    z-index: 2;
    /* Ensure these are above the image */
}

.tci-custom-card.wide {
    width: 100%;
    height: auto;
}

.tci-custom-card.square {
    width: 100%;
    /* Full width of the container */
    position: relative;
    /* Needed for absolute positioning of the content */
}

/* Style: Square */

.tci-custom-card.square {
    width: 100%;
    /* Full width of the container */
    position: relative;
    /* Needed for absolute positioning of the content */
    background-color: #ffd322;
    /* Yellow background as border */
    padding: 2px;
    /* Space for the border */
    box-sizing: border-box;
    /* Include padding in the height calculation */
    overflow: hidden;
    /* To ensure clip-path applies within the border */
    aspect-ratio: 1 / 1;
    /* 1:1 Aspect Ratio */
}

.tci-custom-card.square img {
    width: calc(100% - 4px);
    /* Full width of the parent */
    height: calc(100% - 4px);
    /* Maintain aspect ratio */
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
}

.tci-custom-card.square .card-link,
.tci-custom-card.square .card-overlay {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
}

/* Adjust the padding-top for the aspect ratio */
.tci-custom-card.square .image-overlay-container {
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}