/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #151211;
    color: #fff;
    overflow-x: hidden;
}

/* Info banner */
.info-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ff6b6b;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.info-banner i {
    font-size: 1.1rem;
}

/* Background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mt2k9.cc/images/home-bg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(21,18,17,0.8) 100%);
}

/* Main container */
.presentation-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Left menu */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(21, 18, 17, 0.95);
    border-right: 2px solid #ff6b6b;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Sidebar header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    width: 140px;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.sidebar-toggle:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #ff4757;
}

/* Mobile menu button - fixed position */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 60px;
    left: 15px;
    z-index: 999;
    background: rgba(21, 18, 17, 0.95);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link i {
    font-size: 1.2rem;
    min-width: 25px;
}

.nav-link span {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #fff;
    border-left-color: #ff6b6b;
}

.nav-link.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 107, 107, 0.3);
}

.back-to-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-to-main:hover {
    background: #ff6b6b;
    color: #000;
}

/* Main content */
.presentation-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 40px;
    position: relative;
}

/* Language selector - top right corner */
.language-selector {
    position: fixed;
    top: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(21, 18, 17, 0.95);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 0;
    backdrop-filter: blur(10px);
    z-index: 900;
    overflow: hidden;
    max-height: 44px;
    transition: max-height 0.4s ease;
}

/* .language-selector:hover {
    max-height: 400px;
} */

.lang-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-link:not(:first-child) {
    border-top: 1px solid rgba(255, 107, 107, 0.1);
}

.lang-link img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.lang-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ccc;
}

.lang-link:hover img {
    filter: grayscale(80%);
    opacity: 0.7;
}

.lang-link.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-left: 3px solid #ff6b6b;
}

.lang-link.active img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Show full colors when language selector is expanded */
.language-selector:hover .lang-link {
    color: #ccc;
}

.language-selector:hover .lang-link img {
    filter: grayscale(0%);
    opacity: 0.85;
}

.language-selector:hover .lang-link:hover {
    color: #fff;
}

.language-selector:hover .lang-link:hover img {
    opacity: 1;
}

.language-selector:hover .lang-link.active {
    color: #ff6b6b;
}

.language-selector:hover .lang-link.active img {
    opacity: 1;
}

/* Content sections */
.content-section {
    min-height: 100vh;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(21, 18, 17, 0.8);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    padding: 60px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.section-container h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'Capriola', sans-serif;
    text-align: center;
}

/* SectionServer Launch */
.launch-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.launch-logo {
    width: 300px;
    max-width: 100%;
}

.launch-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5));
}

.launch-title {
    color: #fff;
    font-size: 3.5rem;
    font-family: 'Capriola', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.launch-date-block {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    padding: 30px 50px;
    margin: 20px 0;
}

.date-label {
    color: #ccc;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.launch-date {
    color: #ff6b6b;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Capriola', sans-serif;
    margin-bottom: 10px;
}

.launch-time {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Capriola', sans-serif;
}

.launch-motto {
    color: #ff6b6b;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    margin: 30px 0;
    text-align: center;
}

.launch-description {
    max-width: 700px;
    margin-top: 20px;
}

.launch-description p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 10px 0;
    text-align: center;
}

/* SectionBasic Information */
.section-title {
    color: #fff;
    font-size: 2.5rem;
    font-family: 'Capriola', sans-serif;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    padding: 10px 0;
    text-align: center;
}

.info-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.info-content p {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0;
}

.kingdom-flags {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.kingdom-flags img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* SectionLanguage Versions */
.language-flags-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 700px;
}

.language-flags-grid img {
    width: 80px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.language-flags-grid img:hover {
    transform: scale(1.1);
}

/* SectionGameplay & Progression */
.gameplay-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.gameplay-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

/* SectionCore Mechanics */
.mechanics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.mechanic-item {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    padding: 15px 0;
}

/* SectionCrafting */
.crafting-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.crafting-npc-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    border-radius: 8px;
}

.crafting-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.crafting-dialog {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    border-radius: 8px;
}

.crafting-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

/* SectionHerbalism */
.herbalism-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.herbalism-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

/* SectionMap Chests */
.map-chests-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.map-chests-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

/* SectionDemon Tower */
.demon-tower-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.demon-tower-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

.demon-tower-limits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px auto;
    max-width: 600px;
}

.limit-item {
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 0;
}

/* SectionCurses */
.curses-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.curses-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

/* SectionFactions */
.factions-content {
    max-width: 1000px;
    margin: 0 auto;
}

.factions-image {
    text-align: center;
    margin-bottom: 40px;
}

.factions-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.factions-table {
    width: 100%;
    overflow-x: auto;
}

.factions-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.factions-table th {
    color: #ff6b6b;
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.factions-table td {
    padding: 25px 20px;
    color: #fff;
}

.location-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ff6b6b;
    width: 200px;
    vertical-align: top;
}

.location-desc {
    font-size: 1.1rem;
    line-height: 1.8;
}

.factions-note {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 30px;
    line-height: 1.8;
}

/* SectionNew Bosses */
.new-bosses-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.new-bosses-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

.bosses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.boss-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boss-card:hover {
    transform: scale(1.05);
}

.boss-card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.boss-location {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    text-align: center;
}

/* SectionProfessions and Skills */
.professions-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.professions-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 25px 0;
}

.subsection-title {
    color: #ff6b6b;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 50px 0 30px 0;
    text-align: center;
}

.leadership-requirements {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 30px auto;
}

.requirement-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    padding: 15px;
}

.requirement-level {
    color: #fff;
    font-size: 1.1rem;
}

.requirement-book {
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: 600;
}

.leadership-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
}

.leadership-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.9rem;
}

.leadership-table th {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 107, 0.3);
    font-size: 0.85rem;
    line-height: 1.3;
}

.leadership-table td {
    padding: 10px 8px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.leadership-table tbody tr:nth-child(even) {
    background: rgba(255, 107, 107, 0.05);
}

.leadership-table tbody tr:hover {
    background: rgba(255, 107, 107, 0.1);
}

.leadership-table td:first-child {
    font-weight: 600;
    color: #ff6b6b;
}

.profession-title {
    color: #ff6b6b;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    text-align: center;
}

.profession-changes {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    text-align: center;
}

/* Professions List */
.professions-list {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 40px;
}

.professions-list li {
    margin: 10px 0;
}

/* Discord Button */
.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #5865F2;
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 30px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-button:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.discord-button i {
    font-size: 1.4rem;
}

/* Biologist Table */
.biologist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px auto;
    font-size: 0.95rem;
    table-layout: fixed;
}

.biologist-table th {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.biologist-table td {
    padding: 12px 10px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.biologist-table tbody tr:nth-child(even) {
    background: rgba(255, 107, 107, 0.05);
}

.biologist-table tbody tr:hover {
    background: rgba(255, 107, 107, 0.1);
}

.item-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
}

.item-icon-armor {
    width: 32px;
    height: 64px;
    display: inline-block;
    vertical-align: middle;
}

.item-icon-weapon {
    width: 32px;
    height: 64px;
    display: inline-block;
    vertical-align: middle;
}

/* Jewelry Table */
.jewelry-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px auto;
    font-size: 0.95rem;
}

.jewelry-table th {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.jewelry-table td {
    padding: 12px 10px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.jewelry-table tbody tr:nth-child(even) {
    background: rgba(255, 107, 107, 0.05);
}

.jewelry-table tbody tr:hover {
    background: rgba(255, 107, 107, 0.1);
}

.jewelry-table td:first-child,
.jewelry-table th:first-child {
    width: 250px;
    text-align: left;
    padding-left: 20px;
}

/* Spirit Stone table - narrower first column for icons only */
.jewelry-table td:first-child:has(img.item-icon),
.jewelry-table th:first-child:empty {
    width: 60px;
    text-align: center;
    padding-left: 10px;
}

/* Table wrapper for horizontal scroll */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.table-wrapper table {
    margin: 0;
}

/* Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.7);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .presentation-content {
        margin-left: 250px;
        width: calc(100% - 250px);
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        height: 100vh;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .presentation-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .section-container {
        padding: 40px 30px;
    }

    .section-container h2 {
        font-size: 2rem;
    }

    .language-selector {
        display: none;
    }

    .info-banner {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .launch-title {
        font-size: 2.5rem;
    }

    .launch-date {
        font-size: 2.2rem;
    }

    .launch-time {
        font-size: 1.5rem;
    }

    .launch-date-block {
        padding: 20px 30px;
    }

    .lang-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .lang-link img {
        width: 20px;
        height: 15px;
    }

    .crafting-items {
        flex-direction: column;
        align-items: center;
    }

    .crafting-dialog {
        max-width: 90%;
    }

    .professions-text {
        font-size: 1rem;
    }

    .biologist-table,
    .jewelry-table,
    .leadership-table {
        font-size: 0.8rem;
        width: 100%;
    }

    .biologist-table th,
    .biologist-table td,
    .jewelry-table th,
    .jewelry-table td,
    .leadership-table th,
    .leadership-table td {
        padding: 8px 4px;
        word-wrap: break-word;
    }

    .jewelry-table td:first-child,
    .jewelry-table th:first-child {
        width: auto;
        min-width: 120px;
    }

    .boss-card img {
        width: 200px;
        height: 200px;
    }

    .discord-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .language-flags-grid {
        gap: 20px;
    }

    .language-flags-grid img {
        width: 70px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 30px 15px;
    }

    .section-container h2 {
        font-size: 1.5rem;
    }

    .info-banner {
        font-size: 0.75rem;
        padding: 8px 10px;
        gap: 6px;
    }

    .info-banner i {
        font-size: 0.9rem;
    }

    .launch-title {
        font-size: 1.8rem;
    }

    .launch-date {
        font-size: 1.6rem;
    }

    .launch-time {
        font-size: 1.1rem;
    }

    .launch-date-block {
        padding: 15px 20px;
    }

    .launch-description p {
        font-size: 0.95rem;
    }

    .launch-motto {
        font-size: 1rem;
        margin: 20px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .professions-text {
        font-size: 0.95rem;
    }

    .professions-list {
        font-size: 0.9rem;
        padding-left: 25px;
    }

    .crafting-npc-image {
        max-width: 95%;
    }

    .crafting-dialog {
        max-width: 100%;
    }

    .biologist-table,
    .jewelry-table,
    .leadership-table {
        font-size: 0.7rem;
        width: 100%;
    }

    .biologist-table th,
    .biologist-table td,
    .jewelry-table th,
    .jewelry-table td,
    .leadership-table th,
    .leadership-table td {
        padding: 6px 2px;
        word-wrap: break-word;
        font-size: 0.7rem;
    }

    .jewelry-table td:first-child,
    .jewelry-table th:first-child {
        width: auto;
        min-width: 80px;
        font-size: 0.65rem;
    }

    .spirit-stone-table {
        min-width: 700px;
    }

    .table-wrapper {
        border: 1px solid rgba(255, 107, 107, 0.2);
        border-radius: 8px;
    }

    .item-icon {
        width: 24px;
        height: 24px;
    }

    .item-icon-armor,
    .item-icon-weapon {
        height: 48px;
    }

    .boss-card img {
        width: 180px;
        height: 180px;
    }

    .boss-location {
        font-size: 1rem;
    }

    .discord-button {
        padding: 12px 20px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .discord-button i {
        font-size: 1.2rem;
    }

    .subsection-title {
        font-size: 1.3rem;
    }

    .language-flags-grid {
        gap: 15px;
    }

    .language-flags-grid img {
        width: 65px;
        height: 32px;
    }

    .gameplay-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .mechanic-item {
        font-size: 1rem;
        padding: 10px 0;
    }

    .mechanics-list {
        gap: 15px;
    }

    .crafting-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .herbalism-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .map-chests-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .demon-tower-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .limit-item {
        font-size: 1rem;
        padding: 8px 0;
    }

    .demon-tower-limits {
        gap: 10px;
        margin: 20px auto;
    }

    .curses-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .factions-image {
        margin-bottom: 30px;
    }

    .factions-table th {
        padding: 15px;
        font-size: 1.1rem;
    }

    .factions-table td {
        padding: 20px 15px;
    }

    .location-name {
        font-size: 1rem;
        width: auto;
        display: block;
        margin-bottom: 10px;
    }

    .location-desc {
        font-size: 1rem;
    }

    .factions-table table {
        display: block;
    }

    .factions-table thead {
        display: none;
    }

    .factions-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid rgba(255, 107, 107, 0.3);
        border-radius: 10px;
        overflow: hidden;
    }

    .factions-table td {
        display: block;
        border: none;
        text-align: center;
    }

    .factions-note {
        font-size: 1rem;
        margin-top: 20px;
    }

    .new-bosses-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .bosses-grid {
        gap: 15px;
        margin-top: 30px;
    }

    .professions-text {
        font-size: 1rem;
        margin: 20px 0;
    }

    .subsection-title {
        font-size: 1.5rem;
        margin: 40px 0 20px 0;
    }

    .leadership-requirements {
        gap: 10px;
        margin: 20px auto;
    }

    .requirement-item {
        padding: 10px;
    }

    .requirement-level {
        font-size: 1rem;
    }

    .requirement-book {
        font-size: 1.1rem;
    }

    .leadership-table {
        font-size: 0.75rem;
    }

    .leadership-table th {
        padding: 8px 4px;
        font-size: 0.7rem;
    }

    .leadership-table td {
        padding: 8px 4px;
    }

    .profession-title {
        font-size: 1.3rem;
        margin: 30px 0 15px 0;
    }

    .profession-changes {
        font-size: 1rem;
        margin: 15px 0 10px 0;
    }
}

/* Discord Widget */
.discord-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 280px;
    background: rgba(21, 18, 17, 0.95);
    border: 2px solid #5865f2;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
    z-index: 900;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.discord-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.6);
}

.discord-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
}

.discord-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-logo {
    width: 60px;
    height: 60px;
    background-image: url('../assets/images/dcav.jpg');
    background-position: center;
    background-size: cover;
    margin: 0 auto 15px;
}

.discord-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-family: 'Capriola', sans-serif;
}

.discord-body {
    padding: 20px;
    text-align: center;
}

.discord-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #5865f2, #7289da);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.discord-join-btn:hover {
    background: linear-gradient(45deg, #7289da, #99aaff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* Responsive for Discord Widget */
@media (max-width: 768px) {
    .discord-widget {
        display: none;
    }
}
