/* === Container === */
.fab-tiles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    max-width: 1500px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: white;

    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* === Card === */
.fab-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.8rem 2.5rem;

    background: #f9fff9;
    border: 1px solid #c8e6c9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.1);

    width: 100%;
    max-width: 95%;
    line-height: 1.6;
    box-sizing: border-box;
}

/* === Headings === */
.fab-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #009624, #1b5e20, #00b248);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-align: left;
}

.fab-card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 4px;
    background: #00c853;
    border-radius: 2px;
}

/* === Paragraphs === */
.fab-card p {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    color: #333;
    text-align: justify;
    text-justify: inter-word;
}

.fab-card strong {
    color: #009624;
}

/* === Horizontal Rule === */
.fab-card hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 1rem 0;
}

/* === Project List (OL wrapper) === */
.project-list {
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.55;
  list-style: decimal;
  list-style-position: outside; /* default */
  margin: 0.3rem 0;
  padding-left: 2rem;           /* ✅ creates space before numbers */
  color: #222;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.project-list > li {
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;         /* just for text alignment */
  white-space: normal;
}
.project-list > li::marker {
  color: #009624;
  font-weight: 700;
}
/* === Nested UL === */
.project-list ul {
    list-style: disc;
    margin: 0.3rem 0 0 0;       /* small top margin */
    padding-left: 3rem;       /* lighter nested indent */
}

.project-list ul li {
    margin: 0.25rem 0;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    line-height: 1.45;
    padding-left: 0.35rem;      /* minimal padding to keep text aligned */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}



/* === Italic Block === */
.fab-card i {
    display: block;
    font-style: normal;
    background: #f4f9ff;
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #009624;
    margin-top: 1rem;
}

.project-list-mobile{
    padding: 0.2rem 1.1rem;
}
.project-list-mobile > li::marker {
    color: #009624;
    font-weight: 750;
}

.project-list-mobile ul{
    padding: 0.1rem 0.55rem;
}

.project-list-mobile li{
    padding: 0.2rem 0.5rem;
    font-size: 0.95rem;
}


.project-list-mobile  ul li{
        list-style: disc;
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .fab-card {
        max-width: 90%;
    }
}

@media (min-width: 769px) {
    .project-list-mobile{
        display: none;
    }
}

@media (max-width: 768px) {
    .fab-card {
        padding: 1.2rem;
        max-width: 95%;
    }

    .fab-card h2 {
        margin-bottom: 1rem;
    }

    .project-list {
        display: none;
    }


}

@media (max-width: 480px) {
    .fab-card {
        max-width: 100%;
        margin: 1rem;
        padding: 1rem;
    }

    .fab-card h2 {
        font-size: 1.5rem;
    }

    .fab-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        word-break: break-word;
    }

}