/* Founder page (raihan-khan.html + raihan-khan-en.html) — same layout as the
   founder pages on Chakri Bangla, e-GP Bangla and Visa Bangla, in ABCL TECH colours. */
.fd-page {
    --fd-ink: #0f172a;
    --fd-green: #1f8a32;
    --fd-green-bright: #39b549;
    --fd-soft: #f1f8f2;
    --fd-muted: #4b5563;
    --fd-line: #e5e7eb;
    background: var(--off-white, #f8f9fa);
    padding: clamp(1.2rem, 4vw, 2.5rem) 0 3rem;
}
.fd-wrap {
    max-width: 1400px; /* the site's header container, same as the blog listing */
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 2rem);
}
.fd-sheet {
    background: #fff;
    border: 1px solid var(--fd-line);
    border-top: 4px solid var(--fd-green-bright);
    border-radius: 14px;
    padding: clamp(1.2rem, 4vw, 2.6rem);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.25);
}
.fd-section { margin-bottom: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--fd-line); }
.fd-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.fd-section h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    color: var(--fd-ink);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--fd-green-bright);
    display: inline-block;
}
.fd-section h3 { color: var(--fd-ink); }
.fd-section p { color: var(--fd-muted); line-height: 1.85; margin: 0 0 1rem; }
.fd-section a { color: var(--fd-green); }

/* Kicker row + name */
.fd-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 0.3rem; }
.fd-kicker { margin: 0; color: var(--fd-green); font-weight: 700; letter-spacing: 0.3px; font-size: 0.92rem; }
.fd-lang-switch {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--fd-green); border-radius: 20px;
    color: var(--fd-green); font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.fd-lang-switch:hover, .fd-lang-switch:focus-visible { background: var(--fd-green); color: #fff; }
.fd-page h1 { font-size: clamp(2rem, 5vw, 2.6rem); color: var(--fd-ink); margin: 0 0 1rem; line-height: 1.25; font-weight: 800; }

/* Intro card: text left, photo right on wide screens */
.fd-card { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
.fd-role { margin: -0.4rem 0 1.2rem; font-size: 1.2rem; color: var(--fd-green); font-weight: 700; }
.fd-details > p:first-child { margin-top: 0; }
.fd-photo { text-align: center; }
.fd-photo img {
    width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1;
    object-fit: cover; object-position: center top;
    border-radius: 12px;
    box-shadow: 0 12px 26px -12px rgba(15, 23, 42, 0.35);
}
@media (min-width: 860px) {
    .fd-card { grid-template-columns: 1fr 270px; gap: 2.4rem; }
    .fd-photo { order: 2; margin-top: 0.45rem; } /* top of the first text line, not its line-height box */
    .fd-photo img { max-width: none; }
}

.fd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.fd-stats li { background: var(--fd-soft); border: 1px solid #d6ead9; border-radius: 10px; padding: 12px 8px; text-align: center; }
.fd-stats strong { display: block; color: var(--fd-green); font-size: 1.4rem; line-height: 1.2; }
.fd-stats span { display: block; color: var(--fd-muted); font-size: 0.82rem; line-height: 1.35; margin-top: 4px; }

.fd-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.fd-socials a {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--fd-ink); color: #4ade80;
    text-decoration: none; font-size: 1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.fd-socials a:hover, .fd-socials a:focus-visible { background: var(--fd-green-bright); color: #fff; transform: translateY(-2px); }

/* Tags */
.fd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.fd-tags li { background: var(--fd-soft); border: 1px solid #d6ead9; color: var(--fd-ink); font-size: 0.86rem; font-weight: 600; padding: 6px 13px; border-radius: 20px; }

/* Career timeline */
.fd-timeline { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0 0 0 1.4rem; border-left: 3px solid #d6ead9; }
.fd-timeline li { position: relative; padding: 0 0 1.2rem 0.6rem; }
.fd-timeline li:last-child { padding-bottom: 0; }
.fd-timeline li::before {
    content: ""; position: absolute; left: -1.4rem; top: 0.35rem;
    width: 13px; height: 13px; margin-left: -8px;
    border-radius: 50%; background: var(--fd-green-bright); border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--fd-green-bright);
}
.fd-when { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--fd-green); margin-bottom: 0.2rem; }
.fd-timeline h3 { font-size: 1.02rem; margin: 0 0 0.25rem; }
.fd-timeline p { margin: 0; font-size: 0.95rem; }

/* Cards: ventures, research, projects, skill groups */
.fd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1rem 0 1.2rem; padding: 0; list-style: none; }
.fd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fd-item { border: 1px solid var(--fd-line); border-top: 3px solid var(--fd-green-bright); border-radius: 10px; padding: 16px 18px; background: #fff; }
.fd-item h3 { margin: 4px 0 8px; font-size: 1.08rem; line-height: 1.4; }
.fd-item h3 a { color: var(--fd-ink); text-decoration: none; }
.fd-item h3 a:hover, .fd-item h3 a:focus-visible { color: var(--fd-green); text-decoration: underline; }
.fd-item p { margin: 0; font-size: 0.94rem; line-height: 1.7; }
.fd-item .fd-tags { margin-top: 0.2rem; }
.fd-label { color: #64748b; font-size: 0.8rem; font-weight: 700; }
.fd-item .fd-ico { color: var(--fd-green); margin-right: 0.35rem; }

@media (max-width: 860px) {
    .fd-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fd-grid, .fd-grid--3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .fd-socials a { transition: none; }
    .fd-socials a:hover { transform: none; }
}
