/* Card style */
.card {
    border-radius: 12px;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    /* Prevents border from going outside */
    box-shadow: 0 20px 50px rgba(241, 101, 1, 0.25);
    /* Increased box-shadow for all angles */
    transition: transform 0.3s ease;
}

/* Hover effect with border */
.card:hover {
    transform: translateY(-6px);
    /* Slight lift when hovered */
}

/* Pseudo-element to create the moving border effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    /* Default transparent border */
    border-radius: 12px;
    box-sizing: border-box;
    z-index: 0;
    pointer-events: none;
    transition: border-color 0.3s ease;
    /* Smooth transition for border color */
}

/* Infinite border color animation on hover */
.card:hover::before {
    animation: move-border 3s linear infinite;
    /* Continuous looping with no stops */
    border-color: #d95300;
    /* Set the border color on hover */
}

/* Keyframe for smooth moving border effect */
@keyframes move-border {
    0% {
        border-top-color: #d95300;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }

    25% {
        border-top-color: transparent;
        border-right-color: #d95300;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }

    50% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #d95300;
        border-left-color: transparent;
    }

    75% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: #d95300;
    }

    100% {
        border-top-color: #d95300;
        border-right-color: #d95300;
        border-bottom-color: #d95300;
        border-left-color: #d95300;
    }
}

/* Card title */
.card-title {
    color: #1B2330;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.text-primary.fw-medium {
    color: #F16501 !important;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: #F16501;
    border-color: #F16501;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(241, 101, 1, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #d95300;
    border-color: #d95300;
    box-shadow: 0 6px 25px rgba(217, 83, 0, 0.6);
}

/* Section heading and paragraph */
.py-5 h2.fw-bold.text-primary {
    color: #F16501;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.py-5 p.text-muted.fs-5 {
    font-size: 1.15rem;
    color: #555;
}