@font-face {
    font-family: "Qurova DEMO";
    src: url("https://db.onlinewebfonts.com/t/2cf31cbaf98b296b692adb4ed0483799.eot");
    src: url("https://db.onlinewebfonts.com/t/2cf31cbaf98b296b692adb4ed0483799.eot?#iefix") format("embedded-opentype"), url("https://db.onlinewebfonts.com/t/2cf31cbaf98b296b692adb4ed0483799.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/2cf31cbaf98b296b692adb4ed0483799.woff") format("woff"), url("https://db.onlinewebfonts.com/t/2cf31cbaf98b296b692adb4ed0483799.ttf") format("truetype"),
        url("https://db.onlinewebfonts.com/t/2cf31cbaf98b296b692adb4ed0483799.svg#Qurova DEMO") format("svg");
}

@font-face {
    font-family: 'Aeonik Trial';
    src: url('../fonts/aeoniktrial-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Aeonik Trial';
    src: url('../fonts/aeoniktrial-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* ---------- HERO Section Start ---------- */
.hero-section-blogpage {
    width: 100%;
    background: url("../images/blogpageheader.png") no-repeat center top / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-top: 176px;
    text-align: center;
    height: auto;
    font-family: 'Aeonik Trial';
}

/* Heading in center */
.hero-section-blogpage .tilt-heading {
    font-weight: 700;
    font-size: 64px;
    margin: 0;
    font-family: Qurova DEMO;
    margin-bottom: 10px;
    text-align: center;
    z-index: 2;
}

/* Rotator Container */
.hero-section-blogpage .rotator {
    position: relative;
    display: flex;
    justify-content: center;
    /* center svg inside */
    align-items: center;
    width: 200px;
    height: 200px;
    margin-top: 100px;
}

/* Rotating SVG */
.hero-section-blogpage .rotator svg {
    width: 90%;
    height: 100%;
    animation: spin 12s linear infinite;
}

/* Arrow inside center of SVG */
.hero-section-blogpage .rotator .arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* perfectly center */
    width: 15px;
    /* size of arrow */
    animation: float 2s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -55%);
    }

    50% {
        transform: translate(-50%, -75%);
    }
}

/* -----------------------------------------main section ----------------------------------------------------------*/

/* --- Global Section Style --- */
.fintech-ai-section {
    background: url("../images/blogpageglow.png") no-repeat left;
    padding: 40px;
    font-family: 'Inter', sans-serif;
    margin-top: 80px;
}

/* --- Horizontal Card Container (for arranging multiple cards) --- */
.card-container-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 95%;
    /* height:100%; */
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;

}


/* --- Individual Horizontal Card Style --- */
.card-horizontal {
    background-color: #1a1a1a;
    border-radius: 20px;
    /* padding: 30px 25px 20px 25px;  */
    padding-top: 20px !important;
    padding: 10px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    box-shadow: 0px -1px 2px 0 rgba(228, 228, 228, 1);
    margin-top: 25px;
}

/* --- Card Tag (Fintech x AI pill) --- */
.card-tag {
    background: rgba(78, 78, 78, 1);
    color: rgba(228, 228, 228, 1);
    padding: 10px 15px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: bold;
    position: absolute;
    top: -15px;
    left: 40px;

}

/* --- Wrapper for Image and Text (Flexbox to place them side-by-side) --- */
.card-content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* --- Image Section --- */
.card-image-section {
    flex-shrink: 0;
    width: 30%;
    height: 15%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: flex-end;
    align-items: end;
}

.card-image-section img.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    align-items: center;
}

/* --- Text Section (Heading and Paragraph) --- */
.card-text-section {
    flex-grow: 0;
}

.card-title-horizontal {
    color: rgba(255, 85, 85, 1);
    font-size: 1.08rem;
    line-height: 1.1;
    margin-top: 0;
    padding-right: 0% !important;
    letter-spacing: 1.02px;
    margin-bottom: 10px;
    text-align: start;
    /* text-wrap:wrap; */
    font-weight: 700;
    height: 60px;
}

.card-description-horizontal {
    color: rgba(228, 228, 228, 1);
    font-size: 0.95rem;
    letter-spacing: normal;
    line-height: 1.2;
    text-justify: inter-word !important;
    margin-bottom: 20px;
    height: 100px;
}

/* --- Action Button (at the bottom center) --- */
.card-action-button {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: bold;
    padding: 10px 20px;
}


.card-action-button .arrow-button-img {
    width: 80%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.card-action-button .arrow-button-img:hover {
    transform: scale(1.05);
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .card-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-image-section {
        width: 90%;
        height: 150px;
    }

    .card-tag {
        left: 50%;
        transform: translateX(-50%);
    }

    .card-title-horizontal {
        font-size: 1.15em;
    }

    .card-horizontal {
        padding-top: 40px;
    }

    .hero-section-blogpage .tilt-heading {
        margin: auto;
        display: block !important;
    }

    .card-description-horizontal {
        line-height: 1.2;
        text-align: left;
        /* -webkit-hyphens: auto; */
        /* hyphens: auto; */
        height: 120px;
        margin-top: 30px;
         white-space: normal;
        margin-bottom: 20px;
         /* text-wrap: pretty;  */
         /* overflow-wrap: break-word; */
    }

    .blog-header h1 {
        font-size: 28px !important;
    }

    .highlight-box h4 {
        font-size: 18px !important;
        /* text-justify: inter-word; */
    }
    .blog-body p{
        text-align: left;
    }
}

@media (max-width: 550px) {
    .card-container-horizontal {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }

    .card-horizontal {
        min-height: auto;
    }

    .card-title-horizontal {
        font-size: 1.15em;
        margin-bottom: 20px;
    }
}

/* desktop and tab */
@media (max-width: 1024px) {
    .card-content-wrapper {
        flex-direction: column;
        /* Stack image and text vertically on smaller screens */
        align-items: center;
        /* Center stacked items */
        text-align: justify;
    }

    .card-image-section {
        width: 90%;
        height: 180px;
    }

    .card-tag {
        /* Adjust tag position if needed for smaller screens, or keep same */
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        left: 50%
    }

    .card-title-horizontal {
        font-size: 1.15em;
        margin-bottom: 20px;
    }

    .card-horizontal {
        padding-top: 40px;
        /* More space for tag */
    }

    .hero-section-blogpage .tilt-heading {
        margin: auto;
        display: block !important;
    }

    .card-description-horizontal {
        height: 120px;
        /* font-size: larger; */
    }
}