@font-face {
    font-family: "Aptos-light";
    src: url("../Fonts/aptos-light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
/* Capability Card Styling */
.cap-card {
    position: relative;
    height: 450px; /* Base height for desktop */
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* padding: 30px; */
}
.topHeading {
    font-family: "Poppins";
    font-weight: 700 !important;
    font-size: 46px !important;
    line-height: 60px !important;
    letter-spacing: 0px !important;
}

.subparaText {
    font-family: "Poppins" !important;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0px;
    color: #292929;
}

.actionHeading {
    font-family: "Poppins";
    font-weight: 600 !important;
    font-size: 59px !important;
    line-height: 44px !important;
    letter-spacing: 0px !important;
    color: #ffffff !important;
}
.actionPara {
    font-family: "Aptos-light" !important;
    font-weight: 300 !important;
    font-size: 32px !important;
    line-height: 40px !important;
    letter-spacing: 0px !important;
    color: #ffffff !important;
}
.bg_marquee {
    background-color: #2212ff;
    padding: 5px 0;
    color: #fff;
}

.cap-card {
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.cap-card.tall {
    height: 740px;
}

.cap-card.short {
    height: 740px;
}

.cap-overlay {
    position: absolute;
    top: 0;
    padding: 50px 40px;
    /* background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); */
    width: 100%;
}
.btn-view {
    background-color: #2212ff !important;
    border: none !important;
    font-family: "Poppins" !important;
    font-weight: 600 !important;
    font-size: 19px !important;
}

.cap-card:hover {
    transform: scale(1.02);
}

/* Text Overlay Styling */
.cap-overlay {
    max-width: 100%;
    z-index: 2;
}

.cap-overlay p {
    opacity: 0.9;
    line-height: 1.5;
}

/* Gradient for readability on dark images */
.cap-card.text-white::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    z-index: 1;
}

/* Button & Link Customization */
.btn-primary {
    background-color: #2b17ff;
    border: none;
}

.btn-primary:hover {
    background-color: #1a0cc4;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .cap-card {
        height: 350px;
        padding: 20px;
    }

    .cap-overlay {
        max-width: 100%;
    }

    .display-5 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .h1 {
        font-size: 1.8rem;
    }
}
