* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFBF5;
    min-height: 100vh;
    line-height: 1.6;
}

.article-container {
    min-width: 65%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 60px 10px;
}

@media (min-width: 640px) {
    .article-container {
        padding: 80px 24px;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: #3D3D3D;
}

.header p{
    font-size: clamp(1rem, 3vw, 1.5rem);
    color:#7A7A7A;
}

/* Main Content Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
    }
}

/* Mobile Toggle Button */
.mobile-toggle {

    width: 100%;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    background-color: #EDE7DC;
    color: #3D3D3D;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;

    }
}

.sidebar.open {
    display: block;
    width: 100%;
}

.sidebar-content {
    border-radius: 12px;
    padding: 24px;
    background-color: #EDE7DC;
}

@media (min-width: 1024px) {
    .sidebar-content {
        position: sticky;
        top: 96px;

        max-height: calc(100vh - 120px);
        overflow-y: auto;

        /* hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar-content::-webkit-scrollbar {
        display: none;
    }
}

.sidebar-title {
    font-size: 24px;
    margin-bottom: 24px;
    color: #3D3D3D;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item {
    margin-bottom: 8px;
}

.article-button {
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.article-button.active {
    background-color: #C9A961;
    color: #FFFBF5;
}

.article-button:not(.active) {
    background-color: #FFFBF5;
    color: #3D3D3D;
}

.article-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.article-button-content {
    flex: 1;
    min-width: 0;
}

.article-button-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-button-date {
    font-size: 14px;
    opacity: 0.8;
}

.chapter-list {
    margin-left: 32px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chapter-button {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: #3D3D3D;
    font-size: 16px;
}

.chapter-button.active {
    background-color: #C9A961;
    color: #FFFBF5;
}

.chapter-button:not(.active):hover {
    background-color: #F0EBE3;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    min-width: 0;
}

.article-card {
    border-radius: 12px;
    padding: 32px;
    background-color: #F0EBE3;
}

@media (min-width: 640px) {
    .article-card {
        padding: 40px;
    }
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #C9A961;
}

.article-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: #3D3D3D;
}

@media (min-width: 640px) {
    .article-title {
        font-size: 36px;
    }
}

.article-date {
    font-size: 18px;
    color: #7A7A7A;
}

/* Chapter Navigation */
.chapter-nav {
    margin-bottom: 32px;
    padding: 16px;
    border-radius: 8px;
    background-color: #EDE7DC;
}

@media (min-width: 640px) {
    .chapter-nav {
        padding: 24px;
    }
}

.chapter-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 640px) {
    .chapter-nav-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .nav-button {
        padding: 8px 16px;
        width: auto;
    }
}

.nav-button.enabled {
    background-color: #C9A961;
    color: #FFFBF5;
}

.nav-button.disabled {
    background-color: #FFFFFF;
    color: #7A7A7A;
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-button svg {
    width: 16px;
    height: 16px;
}

.nav-button-text {
    display: none;
}

@media (min-width: 640px) {
    .nav-button-text {
        display: inline;
    }
}

.chapter-dropdown {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .chapter-dropdown {
        width: auto;
        flex: 1;
        max-width: 384px;
    }
}

.dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    background-color: #C9A961;
    color: #FFFBF5;
}

@media (min-width: 640px) {
    .dropdown-button {
        padding: 12px 24px;
        font-size: 18px;
    }
}

.dropdown-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .dropdown-button svg {
        width: 20px;
        height: 20px;
    }
}

.dropdown-menu {
    position: absolute;
    left: 0;
    margin-top: 8px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 50;
    background-color: #FFFBF5;
    max-height: 384px;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .dropdown-menu {
        left: auto;
        right: 0;
        width: 384px;
    }
}

.dropdown-menu.bottom {
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: #3D3D3D;
}

@media (min-width: 640px) {
    .dropdown-item {
        font-size: 18px;
        padding: 12px 24px;
    }
}

.dropdown-item.active {
    background-color: #C9A961;
    color: #FFFBF5;
}

.dropdown-item:not(.active):hover {
    background-color: #F0EBE3;
}

.dropdown-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chapter Content */
.chapter-content {
    max-width: 100%;
    margin-bottom: 32px;
}
.chapter-content p {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: #3D3D3D;
}

.chapter-paragraph {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: #3D3D3D;
}

@media (min-width: 640px) {
    .chapter-paragraph {
        font-size: 20px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-btn
{
    display:none;
}