/* Tone cam-trắng hiện đại */

body {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    background-size: 200% 200%;
    animation: gradientMove 10s ease-in-out infinite, bodyFadeIn 1.2s ease 0.1s forwards;
    color: #4e260e;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Quicksand', 'Montserrat', Arial, sans-serif;
    font-size: 1.07rem;
    min-height: 100vh;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 1s cubic-bezier(.4, 0, .2, 1), transform 1s cubic-bezier(.4, 0, .2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

img.fade-in {
    transition: opacity 1.2s, transform 1.2s, box-shadow 0.7s;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.18);
    border-radius: 16px;
}

img.fade-in:hover {
    transform: scale(1.06) rotate(-1deg);
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.28);
}

img,
.content img {
    max-width: 800px;
    max-height: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 18px auto 24px auto;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(255, 152, 0, 0.10);
    object-fit: cover;
    background: #fff3e0;
    animation: imgZoomIn 1.1s cubic-bezier(.4, 0, .2, 1);
}

@keyframes imgZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(40px);
    }
    60% {
        opacity: 1;
        transform: scale(1.03) translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.site-header {
    width: 100%;
    background: linear-gradient(90deg, #fff0f6 60%, #ffd6e0 100%);
    box-shadow: 0 2px 12px rgba(255, 182, 193, 0.07);
    padding: 0;
    margin-bottom: 18px;
    position: relative;
    z-index: 200;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 12px 24px;
}

.logo {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #d72660;
    text-decoration: none;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #d72660;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.07rem;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus {
    background: #f8bbd0;
    color: #fff;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 40px auto 40px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 32px rgba(255, 152, 0, 0.13);
    overflow: hidden;
    position: relative;
    padding: 0 20px;
    display: block;
}

.content {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 36px 50px 36px 50px;
    min-width: 0;
    box-sizing: border-box;
    text-align: unset;
}

.content h1 {
    text-align: center;
}

.content h2,
.content h3,
.content p,
.content ul,
.content ol,
.content li {
    text-align: justify;
}

@media (min-width: 900px) {
    .content {
        padding-left: 0;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    min-width: 180px;
    max-width: 220px;
    background: linear-gradient(180deg, #ffe0b2 0%, #ffb74d 100%);
    color: #ff9800;
    padding: 16px 10px 16px 10px;
    border-radius: 0 18px 18px 0;
    box-shadow: 4px 0 24px rgba(255, 152, 0, 0.18), 0 2px 12px rgba(255, 152, 0, 0.10);
    font-size: 1rem;
    z-index: 100;
    font-weight: 600;
    border: 2px solid #ff9800;
    margin-right: 0;
    align-self: flex-start;
}

.sidebar h3 {
    color: #e65100;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #fff3e0;
    background: none;
    margin-bottom: 12px;
    font-size: 1.12em;
    text-align: center;
}

.sidebar h3::after {
    display: none !important;
}

.sidebar a,
.sidebar li,
.sidebar ul {
    font-size: 1em !important;
    text-decoration: none !important;
}

.sidebar a {
    color: #e65100;
    font-weight: 600;
    border-radius: 5px;
    padding: 2px 4px;
}

.sidebar a:hover,
.sidebar a:focus {
    background: #ff9800;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.13);
}

.site-footer {
    width: 100%;
    background: linear-gradient(90deg, #ffb74d 0%, #fff3e0 100%);
    color: #e65100;
    text-align: center;
    padding: 28px 0 18px 0;
    margin-top: 36px;
    font-size: 1.01rem;
    border-top: 2px solid #ffb74d;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-footer a {
    color: #e65100;
    text-decoration: underline;
    margin: 0 6px;
    font-weight: 600;
}

.site-footer a:hover {
    color: #fff;
    background: #ff9800;
    border-radius: 4px;
    padding: 2px 8px;
    text-decoration: none;
}

h1,
h2,
h3 {
    position: relative;
    color: #e65100;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    letter-spacing: 0.5px;
    line-height: 1.2;
    overflow: hidden;
}

h1::after,
h2::after,
h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff9800 0%, #fff3e0 100%);
    border-radius: 2px;
    margin-top: 8px;
    animation: underlineGrow 1.2s cubic-bezier(.4, 0, .2, 1);
}

@keyframes underlineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    60% {
        width: 60px;
        opacity: 1;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

.highlight {
    background: linear-gradient(90deg, #fffde7 60%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1.09em;
    color: #e65100;
    margin-bottom: 1.5em;
}

ul {
    padding-left: 1.3em;
}

strong {
    color: #ff9800;
}

p {
    color: #4e260e;
    margin-bottom: 1.1em;
}

h1,
h2,
h3 {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar ul ul li {
    margin-left: 16px;
    font-size: 0.97em;
}


/* Responsive adjustments */

@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
        min-width: 140px;
        padding: 18px 8px 18px 8px;
    }
    .container {
        max-width: 98vw;
        padding: 0 6vw;
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    .container {
        margin: 0 auto;
        padding: 0 2vw;
    }
    .header-inner,
    .footer-inner,
    .container {
        max-width: 100vw;
        padding-left: 8px;
        padding-right: 8px;
    }
    .container {
        flex-direction: column;
    }
    .sidebar {
        margin-left: 0;
        margin-top: 18px;
        order: 2;
        position: static;
        width: 100%;
        max-width: 100vw;
        left: unset;
        top: unset;
        height: auto;
        border-radius: 18px 18px 0 0;
    }
    .content {
        order: 1;
    }
    .main-nav ul {
        gap: 10px;
    }
    .container {
        flex-direction: column;
        max-width: 100vw;
        margin: 0 4px;
    }
    .sidebar {
        position: static;
        width: 100%;
        max-width: 100vw;
        left: unset;
        top: unset;
        transform: none;
        margin-top: 0;
        margin-bottom: 18px;
        border-radius: 18px 18px 0 0;
        z-index: 10;
    }
    .content {
        margin-left: 0;
        padding: 18px;
    }
    img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 1050px) {
    .container {
        max-width: 98vw;
        margin: 0 4px;
    }
    .sidebar {
        position: static;
        width: 100%;
        max-width: 100vw;
        left: unset;
        top: unset;
        transform: none;
        margin-top: 0;
        margin-bottom: 18px;
        border-radius: 18px 18px 0 0;
        z-index: 10;
    }
}

::-webkit-scrollbar {
    width: 8px;
    background: #fff0f6;
}

::-webkit-scrollbar-track {
    background: #fff0f6;
}

::-webkit-scrollbar-thumb {
    background: #f8bbd0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d72660;
}