/* Tone trắng-hồng nữ tính, hiện đại */

body {
    background: linear-gradient(135deg, #fff0f6 0%, #ffe6f0 100%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease-in-out infinite;
    color: #3d2c3c;
    margin: 0;
    padding: 0 20px;
    font-family: 'Segoe UI', 'Quicksand', 'Montserrat', Arial, sans-serif;
    font-size: 1.07rem;
}

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

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

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

img.fade-in {
    transition: opacity 1s, transform 1s, box-shadow 0.5s;
}

img.fade-in:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(215, 38, 96, 0.18);
}

.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;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 24px rgba(255, 182, 193, 0.13);
    overflow: hidden;
}

.content {
    order: 1;
}

.sidebar {
    order: 2;
    margin-left: 28px;
    background: linear-gradient(180deg, #ffd6e0 0%, #ffb6d5 100%);
    color: #d72660;
    border: 2.5px solid #d72660;
    font-weight: 700;
    box-shadow: 0 6px 32px rgba(215, 38, 96, 0.18), 0 1.5px 8px rgba(255, 182, 193, 0.18);
    z-index: 10;
}

.sidebar h3 {
    color: #d72660;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #fff0f6;
    background: none;
}

.sidebar a {
    color: #d72660;
    font-weight: 700;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sidebar a:hover,
.sidebar a:focus {
    background: #fff0f6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(215, 38, 96, 0.13);
}

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

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

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

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

.sidebar {
    width: 200px;
    min-width: 150px;
    max-width: 240px;
    background: linear-gradient(180deg, #ffe6f0 0%, #ffd6e0 100%);
    color: #d72660;
    padding: 22px 14px 22px 14px;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    border-radius: 0 18px 18px 0;
    box-shadow: 2px 0 18px rgba(255, 182, 193, 0.08);
    font-size: 1.01rem;
    z-index: 100;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    align-self: flex-start;
    order: 2;
    margin-left: 28px;
}

.sidebar h3 {
    margin-top: 0;
    color: #d72660;
    border-bottom: 2px solid #f8bbd0;
    padding-bottom: 10px;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

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

.sidebar li a {
    display: block;
    text-decoration: none;
    color: #d72660;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.01rem;
    padding: 8px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar a:hover,
.sidebar a:focus {
    background: #f8bbd0;
    color: #fff;
    outline: none;
}

h1,
h2,
h3 {
    color: #d72660;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

h2 {
    font-size: 1.45rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.13rem;
    margin-top: 22px;
    margin-bottom: 8px;
}

.highlight {
    background: #ffe6f0;
    border-left: 7px solid #d72660;
    color: #d72660;
    font-weight: bold;
    box-shadow: 0 2px 14px rgba(255, 182, 193, 0.10);
    padding: 22px 28px;
    border-radius: 12px;
    margin: 28px 0;
    font-size: 1.13rem;
    line-height: 1.7;
    padding-left: 20px;
    padding-right: 20px;
}

ul {
    background: transparent;
    padding: 15px 20px;
    border-left: 4px solid #f8bbd0;
    border-radius: 7px;
}

strong {
    color: #d72660;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    padding-left: 20px;
    padding-right: 20px;
}

img {
    width: 800px;
    height: 450px;
    display: block;
    margin: 30px auto;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(255, 182, 193, 0.13);
    object-fit: cover;
    background: #fff6fa;
    border: 2px solid #f8bbd0;
}

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


/* Responsive adjustments */

@media (max-width: 900px) {
    .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;
}