section.cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 50px 0;
    margin-left: 3rem;
    width: 100%;
}

.card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 91%;
    height: 250px;
    border-left: 5px solid #3A4454;
    padding: 20px;
    margin: 20px 0;
    margin-top: -0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.2rem;
    display: block;
}

.card-content {
    gap: 20px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.5s ease;
    overflow: hidden;
}

.default-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
    height: auto;
    max-height: 500px;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
}

.hover-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.card.expanded {
    height: auto;
}

.card.expanded .default-content {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
}

.card.expanded .hover-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    height: auto;
    max-height: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.toggle-button {
    background-color: #3A4454;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.toggle-button:hover {
    background-color: #2A3342;
}

.card-video {
    flex: 1;
    max-width: 30%;
    height: auto;
}

.card-video iframe {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
}

.card-text {
    flex: 2;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}