﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/*loading*/
@keyframes spin {
    0%

{
    transform: rotate(0deg);
}

100% {
    transform: rotate(360deg);
}

}

#slideSuccess {
    position: fixed;
    top: 20px;
    right: -300px;
    background: #e6ffed;
    color: #2e7d32;
    padding: 12px 18px;
    border: 1px solid #b7ebc6;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    transition: right 0.4s ease;
}

    /* show */
    #slideSuccess.show {
        right: 20px;
    }

.img-frame {
    width: 100%;
    max-width: 680px; /* 🔥 giới hạn desktop */
    margin: 24px 0; /* 🔥 canh trái (không auto) */
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    position: relative;
}

    /* giữ tỷ lệ đồng bộ */
    .img-frame::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* 16:9 */
    }

    .img-frame img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* 🔥 không crop */
    }

/* Mobile */
@media (max-width: 768px) {
    .img-frame {
        max-width: 100%;
        margin: 16px 0;
        border-radius: 10px;
    }
}