/*
 * H2MIRI Unified Components CSS
 * Consolidates card styles, buttons, forms, and reusable UI elements
 * Purpose: Create a single source of truth for component styling
 */

/* ==============================
   CARD COMPONENTS
   ============================== */

/* Base card styles */
.card,
.detail-card,
.single-partner-match-card,
.single-case-study,
.single-training-material {

    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Partner card specific */
.single-partner-match-card {
    flex-wrap: wrap;
    justify-content: space-evenly;
}

/* Training card thumbnail */
.training-thumbnail {
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* ==============================
   CONTACT & PROFILE CARDS
   ============================== */

.contact-details {
    display: block;
    gap: 10px;
    width: 100%;
}

.contact-info {
    margin: 0.5rem;
    padding: 1rem 1.5rem;
    width: 45%;
    max-width: 45%;
    max-height: 20rem;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #eeeeeede;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Inter';
    font-weight: 200;
}

.contact-info h2 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.contact-info h4 {
    margin: 0;
    font-weight: 400;
    font-size: 0.8rem;
    color: #656565;
}

.contact-info h4 a {
    margin: 0;
    font-weight: 400;
    font-size: 0.8rem;
    color: #656565;
}

.contact-info h5 {
    margin: 0;
}

.contact-info h6 {
    font-size: 0.75rem;
    text-align: left;
    font-weight: 350;
    cursor: pointer;
    margin: 8px 0 0 0;
    color: black;
}

.contact-info p {
    font-weight: 300;
    margin: 3px 0;
    font-size: 0.8rem;
}

/* ==============================
   FIELD LAYOUTS
   ============================== */

.field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: black;
    text-align: left;
    font-size: 0.8rem;
}

.field-2 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    color: #5a5a5a;
    text-align: left;
    font-size: 0.8rem;
}

.field label,
.field-2 label {
    font-weight: bold;
    font-size: 0.75rem;
    font-variant: all-small-caps;
    color: #393939;
    margin-right: 10px;
}

/* ==============================
   PARTNER/INFRASTRUCTURE INFO
   ============================== */

.partner-description {
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    padding: 20px;
    flex: 1;
    font-size: 15px;
}

.infra-host {
    border-top: 1px solid #ffffff75;
    margin-top: 5px;
    padding-top: 5px;
}

.infra-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==============================
   FOOTER/STRUCTURAL COMPONENTS
   ============================== */

.footer {
    display: flex;
    justify-content: center;
    background-color: #000;
}
.single-partner-match-card .location-text {
    position: absolute;
    right: 1rem;
    top: 1rem;
    left: unset;
    font-size: small;
    font-weight: 200;
    color: white;
    background-color: rgba(0, 0, 0, 0.79);
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 101;
    white-space: nowrap;
}
.location-text {
    position: absolute;
  
    font-size: small;
    font-weight: 200;
    color: white;
    background-color: rgba(0, 0, 0, 0.79);
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 101;
    white-space: nowrap;
}

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

@media (max-width: 1400px) {
    .contact-details span {
        font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    }
}

@media (max-width: 780px) {
    .contact-info {
        max-width: 95%;
        width: 80%;
        padding: 10px;
        margin: 0;
        margin-top: 10px;
    }

    .partner-description {
        max-width: 100%;
    }
}
