/* KALTEM V2.6.8: surgical fixes; no effect on V1 */
/* Reference logo: enforce one clipping box independent of source pixel dimensions. */
body.kaltem-v2 .kv266-ref-grid{align-items:stretch}
body.kaltem-v2 .kv266-ref-card{min-width:0;max-width:100%;position:relative;display:flex;flex-direction:column;isolation:isolate;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
body.kaltem-v2 .kv266-ref-card:hover{transform:translateY(-5px);box-shadow:0 18px 34px rgba(25,53,78,.14);border-color:#bdcee0}
body.kaltem-v2 .kv266-ref-card:focus-within{outline:2px solid #7ca9cb;outline-offset:2px}
body.kaltem-v2 .kv266-ref-card .kv266-ref-image.kv268-ref-image{box-sizing:border-box!important;width:100%!important;height:190px!important;min-height:0!important;min-width:0!important;padding:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#f6f9fd}
body.kaltem-v2 .kv268-logo-frame{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;max-width:100%;width:100%;height:100%;overflow:hidden;line-height:0}
body.kaltem-v2 .kv266-ref-card .kv268-logo-frame img{box-sizing:border-box!important;display:block!important;position:static!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center center!important;margin:0 auto!important;border:0!important;transform:none!important}
body.kaltem-v2 .kv266-ref-card:hover .kv268-logo-frame img{transform:scale(1.035)!important}
body.kaltem-v2 .kv266-ref-info{width:100%;margin-top:auto;position:relative;z-index:1;background:#fff;border-top:1px solid #eaf0f5}
body.kaltem-v2 .kv266-ref-info h2,body.kaltem-v2 .kv266-ref-info p{overflow-wrap:anywhere;word-break:normal}
/* Cookie dialog always sits above its banner, WhatsApp, floating menus and backdrop. */
body.kaltem-v2 #cookie-banner{z-index:1500!important}
body.kaltem-v2.kv268-cookie-open #cookie-banner{visibility:hidden!important;pointer-events:none!important;opacity:0!important}
body.kaltem-v2 .modal-backdrop{z-index:3090!important}
body.kaltem-v2 #cookieModal{position:fixed!important;inset:0!important;z-index:3100!important}
body.kaltem-v2 #cookieModal .modal-dialog{position:relative;z-index:3101}
/* Keep mobile cookie dialog readable and scrollable; no unwanted horizontal overflow. */
@media(max-width:767px){
 body.kaltem-v2 #cookieModal .modal-dialog{max-width:calc(100vw - 18px);margin:9px auto}
 body.kaltem-v2 #cookieModal .modal-body{max-height:calc(100dvh - 188px);overflow-y:auto}
 body.kaltem-v2 .kv266-ref-card .kv266-ref-image.kv268-ref-image{height:138px!important;padding:11px!important}
 /* Social icons clear of floating WhatsApp control and phone nav. */
 body.kaltem-v2 .kv21-footer .kv21-socials{box-sizing:border-box;max-width:calc(100% - 92px);padding:6px 8px;margin-left:10px!important;margin-right:92px!important;display:flex!important;flex-wrap:wrap;justify-content:flex-start;gap:16px}
 body.kaltem-v2 .kv21-footer .kv21-footer-bottom{padding-bottom:16px}
}
/* Center logos & unusually sized images in classic education/services cards,
   with no markup change and no effect on V1 pages. */
body.kaltem-v2 .services .service-item .img{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;min-width:0;background:#f7f9fc}
body.kaltem-v2 .services .service-item .img img{display:block!important;position:static!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:center!important;margin:auto!important}
@media(prefers-reduced-motion:reduce){body.kaltem-v2 .kv266-ref-card,body.kaltem-v2 .kv268-logo-frame img{transition:none!important}}
