/* Khodrano car brand logos — shared sizing and responsive layout. */
.khodrano-brand-logos-section .brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    direction: rtl;
    align-items: stretch;
    gap: clamp(10px, 1.5vw, 20px);
}
.khodrano-brand-logos-section .brand-card {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: clamp(15px, 2vw, 24px) 10px 17px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    text-decoration: none;
    background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
    overflow: hidden;
}
.khodrano-brand-logos-section .brand-round {
    width: clamp(64px, 6.2vw, 84px) !important;
    height: clamp(64px, 6.2vw, 84px) !important;
    min-width: clamp(64px, 6.2vw, 84px);
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    box-sizing: border-box;
    display: grid !important;
    place-items: center;
    padding: 13px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(201, 32, 27, .10);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    overflow: hidden;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.khodrano-brand-logos-section .brand-round img.khodrano-brand-logo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.khodrano-brand-logos-section .brand-card strong {
    display: block;
    max-width: 100%;
    color: #f7f7f7;
    font-size: clamp(12px, 1.15vw, 15px);
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .22s ease;
}
.khodrano-brand-logos-section .brand-card small {
    display: block;
    max-width: 100%;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.6;
    transition: color .22s ease;
}
.khodrano-brand-logos-section .brand-card:hover,
.khodrano-brand-logos-section .brand-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(201, 32, 27, .7);
    background: linear-gradient(155deg, rgba(201,32,27,.12), rgba(255,255,255,.025));
    box-shadow: 0 12px 30px rgba(0,0,0,.22), 0 0 0 1px rgba(201,32,27,.10);
    outline: none;
}
.khodrano-brand-logos-section .brand-card:hover .brand-round,
.khodrano-brand-logos-section .brand-card:focus-visible .brand-round {
    transform: translateY(-2px);
    border-color: rgba(201, 32, 27, .36);
    box-shadow: 0 0 0 4px rgba(201,32,27,.08), 0 8px 24px rgba(0,0,0,.20);
}
.khodrano-brand-logos-section .brand-card:hover strong,
.khodrano-brand-logos-section .brand-card:focus-visible strong,
.khodrano-brand-logos-section .brand-card:hover small,
.khodrano-brand-logos-section .brand-card:focus-visible small {
    color: #c9201b;
}
@media (max-width: 960px) {
    .khodrano-brand-logos-section .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .khodrano-brand-logos-section .brand-card strong { font-size: 14px; }
}
@media (max-width: 560px) {
    .khodrano-brand-logos-section .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .khodrano-brand-logos-section .brand-card { padding: 16px 8px 14px; border-radius: 15px; }
    .khodrano-brand-logos-section .brand-round {
        width: 70px !important; height: 70px !important; min-width: 70px; padding: 11px;
    }
    .khodrano-brand-logos-section .brand-card strong { font-size: 13px; }
    .khodrano-brand-logos-section .brand-card small { font-size: 11px; }
    .khodrano-brand-logos-section .brand-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 6px);
        justify-self: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .khodrano-brand-logos-section .brand-card,
    .khodrano-brand-logos-section .brand-round,
    .khodrano-brand-logos-section .brand-card strong,
    .khodrano-brand-logos-section .brand-card small { transition: none !important; }
}
