/* ================== GRID ================== */
.features {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    margin-bottom: 24px;
}

/* ================== LINK ================== */
.portrait-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit; /* 🔥 hilangkan feel link */
}

/* ================== CARD ================== */
.f-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* 🔥 semua card sama tinggi */

    border-radius: 20px;
    overflow: hidden;

    background: linear-gradient(180deg, #11181d, #0c1115);
    border: 1px solid var(--line);

    transition: 0.35s ease;
}

/* ================== MEDIA ================== */
.f-card-media {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.f-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* overlay */
.f-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.2),
        transparent
    );
}

/* ================== CONTENT ================== */
.f-card-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 14px 14px 16px;
}

/* TITLE */
.f-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--white);
    text-decoration: none;

    min-height: 2.6em; /* 🔥 biar rata */
}

/* DESC */
.f-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* 🔥 max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* filler biar rata bawah */
.f-card-text::after {
    content: "";
    flex-grow: 1;
}

/* ================== HOVER ================== */
.f-card:hover {
    transform: translateY(-6px);
    border-color: var(--teal-2);
    box-shadow: 0 15px 50px rgba(0,0,0,.6);
}

.f-card:hover .f-card-image {
    transform: scale(1.08);
}

/* glow */
.f-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(212,172,90,0.12),
        transparent 60%
    );
    opacity: 0;
    transition: 0.4s;
}

.f-card:hover::after {
    opacity: 1;
}

/* ================== RESPONSIVE ================== */

/* TABLET */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TABLET KECIL */
@media (max-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .f-card-media {
    aspect-ratio: 3/4;
  }

  .f-card h3 {
    font-size: 1.1rem;
  }

  .f-card p {
    font-size: 0.85rem;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .features {
    gap: 14px;
  }

  .f-card {
    border-radius: 16px;
  }

  .f-card-media {
    aspect-ratio: 3/4;
  }

  .f-card h3 {
    font-size: 1rem;
  }

  .f-card p {
    font-size: 0.8rem;
  }
}