:root { --main-color: #fdaf2e; --main-width: 1200px; --h1-size: 2.4rem; --h2-size: 1.8rem; --h3-size: 1.5rem; --h1-color: #fdaf2e; --h2-color: #ffd152; --h3-color: #fff6df; }
html, body { padding: 0; margin: 0; font-family: 'Segoe UI', 'Arial', sans-serif; font-size: 16px; background: #060024; color: #eaeaea; }
.hero-section { padding: 0; position: relative; overflow: hidden; width: 100%; background: rgb(6, 0, 36); }
.hero-bg-container { position: absolute; z-index: 1; inset: 0; }
.hero-container { max-width: var(--main-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 40px; position: relative; z-index: 2; flex-direction: row; height: 100%; min-height: 380px; }
.hero-content { flex: 1; margin: 30px 0; }
.hero-title { font-size: var(--h1-size); line-height: 1.1; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; position: relative; display: inline-block; color: #ffffff; font-weight: 700; letter-spacing: 1px; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 30px; display: block; margin-top: 20px; color: #ffffff; position: relative; }
.hero-subtitle span { content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #fdaf2e, transparent); }
.hero-btn { background: linear-gradient(135deg, #fdaf2e 0%, #ffd152 100%); color: #fff; border: none; padding: 15px 35px; border-radius: 6px; font-size: 1.1rem; cursor: pointer; font-weight: bold; box-shadow: 0px 4px 15px rgba(0,0,0,0.3); transition: all 0.3s; margin-top: 20px; position: relative; overflow: hidden; }
.hero-btn .hero-btn-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); transition: left 0.5s; pointer-events: none; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.hero-btn:hover .hero-btn-shine { animation: hero-shine 1s; }
@keyframes hero-shine { to { left: 100%; } }
    .hero-bonus2 { flex: 0 0 500px; display: flex; align-items: center; justify-content: center; height: 292px; position: relative; overflow: hidden; border-left: none; border-right: none; }
    .hero-bonus2 .hero-image-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0px; box-sizing: border-box; }
    .hero-uploaded-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: none; box-sizing: border-box; filter: none; border-radius: 0px; }
@media (max-width: 1024px) { .hero-container { flex-direction: column; gap: 20px; min-height: unset; } .hero-bonus2 { width: 100%; max-width: 380px; min-width: 0; height: 200px; margin: 0 auto; } }
@media (max-width: 600px) { .hero-section { padding: 0; } .hero-container { padding: 0 8px; } .hero-title { font-size: 2rem; } .hero-bonus2 { height: 160px; max-width: 100%; } .hero-content { margin: 15px 0; } }
    .content-container { max-width: var(--main-width); margin: 40px auto 40px auto; padding: 40px 24px 40px 24px; box-sizing: border-box; }
@media (max-width: 600px) { .content-container { padding: 18px 6px 32px 6px; margin: 22px auto 20px auto; } }
    .content-container h1, .content-container h2, .content-container h3 { font-family: 'Segoe UI', 'Arial', sans-serif; margin-top: 36px; margin-bottom: 14px; font-weight: 700; line-height: 1.2; }
    .content-container h1 { font-size: var(--h1-size); color: var(--h1-color); margin-bottom: 22px; }
    .content-container h2 { font-size: var(--h2-size); color: var(--h2-color); }
    .content-container h3 { font-size: var(--h3-size); color: var(--h3-color); }
    .content-container p { margin: 18px 0 18px 0; line-height: 1.7; color: #eaeaea; }
    .content-container a { color: inherit; text-decoration: underline; word-break: break-all; }
    .content-container img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
    .content-container ul { margin-left: 24px; color: #ffd152; }
    .content-container li { margin-bottom: 10px; font-size: 1.07rem; }
    .content-container table { width: 100%; border-collapse: collapse; margin: 24px 0 32px 0; }
    .content-container th, .content-container td { padding: 12px 18px; text-align: left; border-bottom: 2px solid #20194a; }
    .content-container th { background: #1a1045; color: #ffd152; font-weight: 700; font-size: 1.1rem; }
    .content-container td { color: #fdf6e3; }
    .feed-block { margin: 36px 0 50px 0; }
    .feed-block-title { color: #fdaf2e; font-size: 1.5rem; margin-bottom: 25px; letter-spacing: 1px; }
    .feed-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
    .feed-item { background: rgba(255, 219, 126, 0.08); border-radius: 11px; box-shadow: 0 1px 8px rgba(40, 14, 80, 0.07); padding: 18px 17px 14px 17px; display: flex; flex-direction: column; min-height: 320px; }
    .feed-img-link { display: block; width: 100%; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
    .feed-img-link img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; }
    .feed-title-link { color: #fdaf2e; font-weight: bold; text-decoration: underline; font-size: 1.08rem; margin-bottom: 11px; display: inline-block; }
    .feed-desc { color: #f4e5cb; margin-bottom: 0; font-size: 1rem; }
    .comment-block { margin: 44px 0 34px 0; }
    .comment-block-title { color: #ffd152; font-size: 1.25rem; margin-bottom: 18px; letter-spacing: 0.5px; }
    .comment-list { display: flex; flex-direction: column; gap: 18px; }
    .comment-item { border-left: 6px solid #fdaf2e; padding: 12px 18px 10px 22px; background: linear-gradient(90deg, #20194a 60%, transparent); border-radius: 8px; }
    .comment-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 7px; }
    .comment-name { color: #fdaf2e; font-size: 1.1rem; }
    .comment-date { color: #ffd152; font-size: 1rem; }
    .comment-text { color: #fff; font-size: 1.05rem; }
    .faq-block { margin: 48px 0 38px 0; }
    .faq-block-title { color: #fdaf2e; font-size: 1.25rem; margin-bottom: 18px; letter-spacing: 0.5px; }
    .faq-list { display: flex; flex-direction: column; gap: 15px; }
    .faq-item { padding: 0 0 0 0; }
    .faq-question { color: #8bff82; background: linear-gradient(90deg,#142933 60%,#1fd16b20 100%); font-weight: 700; font-size: 1.06rem; display: block; border-left: 5px solid #1fd16b; padding: 11px 14px 7px 16px; border-radius: 6px 6px 0 0; }
    .faq-answer { color: #24ffbd; background: linear-gradient(90deg,#1e0d33 60%,#08f7d460 100%); font-size: 1.02rem; font-weight: 400; padding: 9px 14px 12px 16px; border-radius: 0 0 6px 6px; border-left: 5px solid #08f7d4; }
    .template_invisible { display: none; }
    footer { background: #120a2f; padding: 40px 0 0 0; color: #eee; width: 100%; }
    .footer-container { max-width: var(--main-width); margin: 0 auto; padding: 0 20px 10px 20px; display: flex; flex-direction: column; align-items: center; }
    .footer-menu { display: flex; gap: 32px; margin-bottom: 24px; }
    .footer-menu a { color: #ffd152; text-decoration: none; font-weight: 500; font-size: 1.08rem; padding: 5px 3px; border-radius: 3px; transition: background 0.25s, color 0.25s; }
    .footer-menu a:hover, .footer-menu a:focus { background: var(--main-color); color: #19111e; }
    .footer-copyright { margin: 0 auto; color: #fff6df; text-align: center; font-size: 1.01rem; padding: 8px 0 22px 0; letter-spacing: 0.3px; }
@media (max-width: 900px) { .footer-container { padding: 0 10px 10px 10px; } .footer-menu { gap: 20px; } }
@media (max-width: 700px) { .footer-menu { flex-direction: column; align-items: flex-start; gap: 0; } .footer-menu a { margin-bottom: 15px; } }
    :root { --menu-color: #000000; --menu-text: #FFFFFF; --hover-color: var(--main-color); --hover-text: #000000; }
    [data-theme="light"] { --menu-color: #FFFFFF; --menu-text: #000000; --hover-color: var(--main-color); --hover-text: #FFFFFF; }
    a { color: inherit; text-decoration: underline; }
    .container { max-width: var(--main-width); margin: 0 auto; padding: 0 20px; }
    header { padding: 0; background-color: var(--menu-color); position: relative; }
    .desktop-menu { display: flex; list-style: none; margin: 0; padding: 0; }
    .desktop-menu > li { position: relative; margin: 0px; }
    .desktop-menu > li > a { color: var(--menu-text); text-decoration: none; font-size: 1rem; padding: 10px 15px; display: flex; align-items: center; transition: color 0.1s; }
    .desktop-menu > li > a:hover { color: var(--hover-color); }
    .desktop-menu > li.has-submenu > a::after { content: '▼'; font-size: 0.5rem; margin-top: 2px; margin-left: 5px; }
    .submenu { position: absolute; top: 100%; left: 0; background-color: var(--menu-color); min-width: 200px; list-style: none; opacity: 0; visibility: hidden; transition: all 0.1s; z-index: 1000; border-radius: 5px; overflow: hidden; }
    .desktop-menu > li:hover .submenu { opacity: 1; visibility: visible; }
    .submenu { margin: 0px; padding: 0px !important; }
    .submenu li { margin: 0px; padding: 0px !important; }
    .submenu li a { color: var(--menu-text); text-decoration: none; display: block; width: 100% !important; padding: 12px 15px; margin: 0px !important; transition: background 0.1s; }
    .submenu li a:hover { color: var(--hover-text); background-color: var(--hover-color); }
    .burger-menu { order: 3; display: none; background: none; border: none; color: #ffffff; font-size: 1.6rem; cursor: pointer; }
    .mobile-menu-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 24px; cursor: pointer; display: none; }
    .header-container { display: flex; flex-wrap: wrap; align-items: center; }
    nav { order: 2; display: block; width: auto; margin-left: auto; margin-top: 12px; margin-bottom: 12px; }
    .logo { order: 1; font-size: 1.8rem; font-weight: bold; color: var(--hover-color); text-decoration: none; margin-right: auto; }
    .logo img { margin: 0px; }
    .header-right { order: 3; display: inline-block; margin-left: 20px; padding: 12px 0; }
    .language-switcher { }
    .language-switcher:empty { display: none; }
    .language-switcher { display: flex; gap: 15px; }
    .language-switcher a { color: #fff; text-decoration: none; font-size: 14px; }
@media (max-width: 768px) {
    .logo { order: 1; font-size: 1.4rem; }
    .burger-menu { display: block; margin-left: auto; }
    .header-right { display: block; width: 100%; text-align: center; }
    .language-switcher { display: inline-flex; margin: 10px auto 0px auto; }
}
@media (max-width: 768px) {
    nav { position: fixed; top: 0; left: 0; width: 80%; height: 100vh; background: #1a1a1a; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; padding: 60px 20px 20px; box-sizing: border-box; }
    nav.active { transform: translateX(0); }
    .desktop-menu { flex-direction: column; margin: 0px; }
    .has-submenu { position: relative; width: 100%; font-size: 0.9rem; margin: 0px; padding-right: 30px; }
    .has-submenu > a { display: flex; }
    .desktop-menu > li.has-submenu > a::after { position: absolute; right: 0px; top: 20px; transform: translateY(-50%); font-size: 0.8rem; margin-left: 0; transition: transform 0.3s; padding: 10px; }
    .desktop-menu > li.has-submenu > a.submenu-active::after { padding: 10px; transform: translateY(-50%) rotate(180deg); }
    .submenu { display: none; position: static; opacity: 1; visibility: visible; background-color: transparent; padding-left: 15px; }
    .submenu.active { display: block; margin-left: 20px; margin-bottom: 0px;}
    .submenu li a { color: var(--menu-text); background-color: transparent; text-decoration: none; display: block; padding: 5px 0px; transition: background 0.1s; }
    .submenu li a:hover { color: var(--hover-color); background-color: transparent; }
    .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; }
    .nav-overlay.active { display: block; }
    .mobile-menu-close { display: block; }
}


@media (max-width: 1919px) { :root { --main-width: 1200px; } [style*="max-width: 1200px"] { max-width: 1200px !important; } }
@media (min-width: 1530px) and (max-width: 1920px) { :root { --main-width: 90%; } [style*="max-width: 1200px"], .hero-container, .hero-section .hero-container, .hero-section .hero-container[style*="max-width: 1200px"], .hero-container[style*="max-width: 1200px"], [style*="max-width: 1200px"].hero-container { max-width: 90% !important; width: 90% !important; } }
@media (min-width: 1921px) { :root { --main-width: 80%; } [style*="max-width: 1200px"], .hero-container, .hero-section .hero-container, .hero-section .hero-container[style*="max-width: 1200px"], .hero-container[style*="max-width: 1200px"], [style*="max-width: 1200px"].hero-container { max-width: 80% !important; width: 80% !important; } }
    .main-content { margin-top: 20px; }
    .sidebar { margin-top: 20px; }
    .main-content > p, .main-content > ul > li, .main-content > ol > li { font-size: 1.15rem; letter-spacing: 0.5px; }
    .main-content > img, .main-content > p > img { max-width: 100%; border-radius: 10px; }
    .toc-section { padding-top: 0px !important; }.language-selector { position: relative; display: inline-block; font-family: system-ui, -apple-system, sans-serif; font-size: 16px; }
    .language-selector-button { display: flex; align-items: center; padding: 8px 12px; background-color: #1E1E1E; border: 1px solid #444444; border-radius: 6px; cursor: pointer; }
    .language-selector-button:hover { background-color: #333333; }
    .language-flag { width: 24px; height: 16px; margin-right: 10px; background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0; }
    .language-code { font-weight: bold; width: 30px; color: #FFFFFF; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
    .language-dropdown { position: absolute; top: 100%; left: 0; min-width: 200px; max-width: 300px; max-height: 300px; overflow-y: auto; background-color: #1E1E1E; border: 1px solid #444444; border-radius: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 1000; display: none; margin-top: 5px; }
    .language-option { display: flex; align-items: center; padding: 12px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; color: inherit; }
    .language-option:hover { background-color: #333333; }
    .language-name { margin-left: 8px; color: #CCCCCC; overflow: hidden; text-overflow: ellipsis; }
    .language-dropdown::-webkit-scrollbar { width: 6px; }
    .language-dropdown::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; }
    .language-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; transition: background 0.3s ease; }
    .language-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
    .language-dropdown { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05); }

/* Fix layout: force single column in hero */
.hero-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hero-title { width: 100%; text-align: center; }

.hero-image-container,
.hero-uploaded-image {
  width: 100% !important;
  height: auto !important;
}