body {
    background-color: #FAFAFA;
    color: #222;
    overflow-x: hidden;
}

.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #8B1A1A;
    float: left;
    line-height: 1;
    padding-right: 8px;
    margin-top: -8px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Pure CSS Flip Card Styles (Bảo vệ khỏi IMS) --- */
.flip-card {
    perspective: 1000px;
}

.flip-card-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.flip-checkbox {
    display: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Khi checkbox được check (chạm vào), thẻ sẽ lật */
.flip-checkbox:checked + .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.flip-card-front {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #222;
}

.flip-card-back {
    background-color: #8B1A1A;
    color: white;
    transform: rotateY(180deg);
    border: 1px solid #8B1A1A;
}

.flip-card-back.gold-bg {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #111;
}

/* Hover image zoom */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.7s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.05);
}

.custom-chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}