  /* ============================================================
   FLOATING CARDS
============================================================ */

/* ==========================================
   HERO CARDS / FLOATING AREA FIX
========================================== */

.floating-elements {
    position: relative;

    width: 100%;
max-width: 520px;
height: 700px;

margin: 0;

display: block;
}

.floating-card {
    position: absolute;
    width: 170px;
}

.floating-card-1 {
    top: 30px;
    right: 250px;
    left: auto;
}

.floating-card-2 {
    top: 250px;
    right: 250px;
    left: auto;
}

.floating-card-3 {
    top: 260px;
    right: 0;
    left: auto;
}

.floating-card-4 {
    display: flex;

    position: absolute;

    top: 15px;
    right: 0;
    left: auto;

    width: 210px;
    min-height: 210px;
}

.floating-card-1,
.floating-card-2,
.floating-card-3 {
    width: 180px;
    min-height: 180px;
}

.floating-card {
    display: flex;
flex-direction: column;
align-items: flex-start;

    background: rgba(18, 24, 45, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 18px;

    padding: 18px;
    gap: 14px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    transition: transform .3s ease,
                box-shadow .3s ease,
                border-color .3s ease;
}

.floating-card:hover {
    box-shadow: 0 18px 40px rgba(37,99,235,.18);
    border-color: rgba(96,165,250,.45);
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    margin-top: 16px;
    gap: 6px;
}

.card-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.card-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,.72);
    flex: 1;
}

.card-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: linear-gradient(135deg,#2563eb,#7c3aed);
    color: #fff;
    font-size: 22px;

    flex-shrink: 0;

    box-shadow: 0 10px 24px rgba(37,99,235,.30);
}

.card-content p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .floating-elements{
    position: static;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:16px;
    width:100%;
    height:auto !important;
    margin-top:20px;
    align-content:start;
    }
  .floating-elements{
    height: fit-content !important;
  }

  .floating-card,
.floating-card-1,
.floating-card-2,
.floating-card-3,
.floating-card-4 {
    position: static;

    width: 100%;
    max-width: 180px;

    height: 200px !important;
min-height: 200px !important;
max-height: 200px !important;

    margin: 0;
    justify-self: center;
  display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
}
  
  .floating-card-3 {
    transform: none;
  }
    .card-content {
    width: 100%;
    height: auto;
    margin-top: 8px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    }
  
  .floating-card {
    padding: 12px;
    gap: 8px;
  }

    .card-content p {
        -webkit-line-clamp: 3;
    }

.card-content h3 {
    font-size: 16px;
    line-height: 1.2;
}

.card-content p {
    font-size: 12px;
    line-height: 1.3;
}
  
}
