/* ===========================================================================
   Contact / the team behind the system.

   Same design language as the Quick Estimate page: generous spacing, Manrope
   for text and Space Grotesk for names and headings. Loaded only by
   contact.php. Namespaced `ct-`.
   =========================================================================== */

.ct-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 46px 28px 72px;
}

/* --- institute section ---------------------------------------------------- */

.ct-org { margin-bottom: 48px; }

.ct-org-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--hui-line);
}

.ct-org-logo {
    height: 62px;
    width: 62px;
    object-fit: contain;
    flex: none;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--hui-line);
    border-radius: 14px;
}

.ct-org-name {
    font-family: var(--hui-display);
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--hui-green);
}

.ct-org-full {
    margin: 3px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--hui-muted);
}

.ct-org-place {
    flex: none;
    align-self: flex-start;
    padding: 5px 13px;
    border-radius: 999px;
    background: #eef3ea;
    border: 1px solid #dbe6d3;
    font-size: 12px;
    font-weight: 600;
    color: #4c6b3d;
    white-space: nowrap;
}

/* --- people --------------------------------------------------------------- */

.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
    gap: 18px;
}

.ct-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--hui-cream);
    border: 1px solid var(--hui-line);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(13, 68, 44, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ct-card:hover {
    border-color: #cfd9c6;
    box-shadow: 0 14px 34px -20px rgba(13, 68, 44, .45);
    transform: translateY(-2px);
}

.ct-photo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8e3d3;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--hui-line);
}

.ct-name {
    font-family: var(--hui-display);
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--hui-ink);
}

.ct-role {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #6f8a5c;
}

/* Long institutional addresses must wrap rather than widen the card. */
.ct-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    color: var(--hui-muted) !important;
    text-decoration: none !important;
}

.ct-mail svg { width: 14px; height: 14px; flex: none; color: #a3b09a; }
.ct-mail:hover { color: var(--hui-green) !important; }
.ct-mail:hover svg { color: var(--hui-olive); }

.ct-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--hui-line);
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hui-muted) !important;
    text-decoration: none !important;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.ct-btn:hover {
    border-color: var(--hui-olive);
    background: #f2f6ef;
    color: var(--hui-green) !important;
}

.ct-btn svg { width: 13px; height: 13px; }

/* Filled variant for the one link that leads somewhere substantial — a full
   biodata page — rather than to another institute's index. */
.ct-btn-primary {
    background: var(--hui-green);
    border-color: var(--hui-green);
    color: #fffdf5 !important;
}

.ct-btn-primary:hover {
    background: var(--hui-green-3);
    border-color: var(--hui-green-3);
    color: #fff !important;
}

/* --- hosting note --------------------------------------------------------- */

.ct-host {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border-radius: 22px;
    background: var(--hui-green);
    color: #fff;
    box-shadow: 0 20px 50px -30px rgba(13, 68, 44, .8);
}

.ct-host img {
    height: 62px;
    width: 62px;
    flex: none;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.ct-host h2 {
    font-family: var(--hui-display);
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.ct-host p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .75);
}

.ct-host a { color: #eccb92 !important; font-weight: 600; text-decoration: none !important; }
.ct-host a:hover { color: #fff !important; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 620px) {
    .ct-wrap { padding: 26px 16px 52px; }
    .ct-org-head { flex-wrap: wrap; gap: 14px; }
    .ct-org-logo { height: 50px; width: 50px; }
    .ct-grid { grid-template-columns: 1fr; }
    .ct-card { padding: 20px; border-radius: 18px; }
    .ct-host { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
}
