/*@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');*/

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    line-height: 1.6;
}

.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 1002;
    color: #fff;
}

.nav-menu li, .nav-menu a, .nav-menu span{
    color:#fff;
}

.nav-menu li:hover, .nav-menu a:hover, .nav-menu span:hover{
    color: #8dc6ff;
}
.main-nav-left,
.main-nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav-left a,
.main-nav-right a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
}

.dropdown-toggle {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: block;
}

.dropdown-toggle::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.auth-container {
    display: flex;
    align-items: center;
}

.auth-button {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1004;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.header-logo {
    max-height: 55px;
    width: auto;
    display: block;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    transition: color 0.3s ease;
}

.hamburger:hover {
    background:none;
}

.mobile-menu {
    display: none;
    width: 100%;
    background: #2a5298;
    padding: 0.2rem 0;
    border-top: 1px solid #3a6bb8;
    border-bottom: 1px solid #3a6bb8;
}

.mobile-menu-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-menu-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-menu-scroll a {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.2rem 1rem;
    margin-right: 0.5rem;
    transition: background 0.3s;
}

.mobile-menu-scroll a:hover {
    background: #3a6bb8;
}

.mobile-menu-scroll a.dropdown-toggle,
.mobile-menu-scroll a[href="/user/register"],
.mobile-menu-scroll a[href="/user/login"] {
    background: #a1c4fd;
    color: #1e3c72;
    border-radius: 16px;
}

.mobile-menu-scroll a.dropdown-toggle:hover,
.mobile-menu-scroll a[href="/user/register"]:hover,
.mobile-menu-scroll a[href="/user/login"]:hover {
    background: #d1e8ff;
    border-radius: 16px;
}

.logo-placeholder {
    visibility: hidden;
    width: 30px;
}

.content-wrapper {
    padding-top: 80px;
    min-height: calc(100vh - 80px - 64px);
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page picture img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

h1 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-size: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #1e3c72;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #2a5298;
    outline: none;
}

button {
    padding: 0.75rem;
    font-size: 1rem;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #1e3c72;
}

.viurl-benefits {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #008538;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.viurl-benefits span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.viurl-benefits span::before {
    content: '✓';
    color: #27ae60;
    font-size: 16px;
}

.error {
    color: #e63946;
    text-align: center;
    font-weight: 500;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e9f5ff;
    border-radius: 6px;
    text-align: center;
}

.link-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #2a5298;
    padding: 0.5rem;
    border-radius: 6px;
    background: #fff;
}

.link-row p {
    margin: 0;
}

.link-row button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.link-row button:hover {
    background: #1e3c72;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.copy-notice {
    color: #2a5298;
    font-weight: 500;
    font-size: 0.9rem;
    background: #e9f5ff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.copy-notice.hidden {
    opacity: 0;
    pointer-events: none;
}

.fixed-footer {
    width: 100%;
    background: #1e3c82;
    color: white;
    padding: 0.5rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.footer-content p {
    margin-top: 0px;
    margin-bottom: 0px;
}

.footer-nav a {
    color: #a1c4fd;
    margin: 0 0.75rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

main.long-content {
    margin-bottom: 110px;
}

.countdown-container {
    text-align: center;
}

.countdown-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1e3c72;
    margin-bottom: 1rem;
    margin-top: 0;
}

.countdown-timer {
    font-size: 9rem;
    font-weight: bold;
    color: #2a5298;
    margin: 0;
}

.countdown-url {
    margin: 10px 0;
    font-size: 1.3rem;
    color: #333;
    word-break: break-all;
}

.countdown-url a {
    color: #2a5298;
    text-decoration: none;
}

.countdown-url a:hover {
    text-decoration: underline;
}

.check-safety {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.check-safety a {
    color: #cf0000;
    text-decoration: underline;
}

.check-safety a:hover {
    text-decoration: underline;
}

.register {
    font-size: 1.1rem;
    font-weight: 500;
}

.register a {
    color: #2a5298;
    text-decoration: underline;
}

.search-form {
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container input[type="text"] {
    padding: 8px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-container button {
    padding: 8px 16px;
    background: #2a5298;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-container button:hover {
    background: #1e3c72;
}

.search-container .clear-search {
    color: #ff0000;
    text-decoration: none;
}

.search-container .clear-search:hover {
    text-decoration: underline;
}

.error {
    color: red;
    font-weight: bold;
    margin: 10px 0;
}

.blog-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.blog-categories {
    margin-bottom: 20px;
    text-align: center;
}

.category-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.category-link:hover,
.category-link.active {
    background: #007bff;
    color: #fff;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.category-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.category-post:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-post h2 {
    font-size: 1.5em;
    margin: 0 0 10px;
}

.category-post h2 a {
    color: #333;
    text-decoration: none;
}

.category-post h2 a:hover {
    color: #007bff;
}

.category-post .meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.category-post .excerpt {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.category-post .read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.category-post .read-more:hover {
    background: #0056b3;
}

.category-post-thumbnail {
    margin-bottom: 15px;
}

.category-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.dropdown-menu {
    position: relative;
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 202px;
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
}

.dropdown-menu .submenu {
    left: 0;
}

.submenu:hover {
    display: block;
}

.submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 12px 15px;
    color: #1e3c72;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.submenu a:hover {
    background: #f5f7fa;
    color: #2a5298;
}

.submenu.active {
    display: block;
}

.content-wrapper table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.content-wrapper table th,
.content-wrapper table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.content-wrapper table th {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.content-wrapper table tr:first-child {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #ffffff;
}

.content-wrapper table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content-wrapper table tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.3s ease;
}

.content-wrapper table td:first-child {
    text-align: left;
    font-weight: 500;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 125px;
        min-height: calc(100vh - 80px - 74px);
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1e3c72;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1000;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .nav-menu.active {
        display: flex;
    }

    .main-nav-left,
    .main-nav-right {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
        align-items: flex-start;
    }

    .main-nav-left li,
    .main-nav-right li {
        width: 100%;
    }

    .main-nav-left a,
    .main-nav-right a,
    .dropdown-toggle {
        width: 100%;
        display: block;
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
        color: white;
        font-weight: 500;
        box-sizing: border-box;
    }

    .main-nav-left a:active,
    .main-nav-right a:active,
    .dropdown-toggle:active,
    .auth-button:active {
        padding: 0.6rem 1rem;
        text-align: left;
        outline: none;
    }
    
    .auth-container {
        margin-top: 3rem;
    }

    .auth-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .auth-button {
        width: 100%;
        text-align: center;
        display: block;
        margin: 0 2rem;
        font-size: 1.1rem;
        box-sizing: border-box;
        border-radius: 42px;
        background-color: #8dc6ff;
    }

    .mobile-menu {
        display: block;
        margin-top: 0.5rem;
    }

    .header-logo {
        max-width: 120px;
    }

    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
    }

    .fixed-header {
        padding: 0.5rem 0 0 0;
    }

    .dropdown-menu {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .dropdown-toggle {
        display: block;
        margin: 0;
        text-align: left;
        border-radius: 0;
    }

    .dropdown-toggle::after {
        content: '▾';
        margin-left: 5px;
        font-size: 0.8rem;
    }

    .dropdown-menu .submenu {
        display: none;
        position: static;
        background: #3a6bb8;
        border: none;
        box-shadow: none;
        padding: 0.5rem 1rem;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }

    .dropdown-menu .submenu.active {
        display: block !important;
    }

    .dropdown-menu .submenu li {
        border-bottom: none;
    }

    .dropdown-menu .submenu a {
        color: white;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .dropdown-menu .submenu a:hover {
        background: #4a7bc8;
    }

    .link-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .link-row button {
        padding: 0.5rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .container {
        margin: 0.7rem;
        padding: 0.7rem;
    }

    .countdown-container {
        padding: 2rem;
    }

    .countdown-text {
        font-size: 1.2rem;
    }

    .countdown-timer {
        font-size: 3.5rem;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container input[type="text"] {
        width: 100%;
    }

    .category-posts {
        grid-template-columns: 1fr;
    }

    .category-post {
        padding: 10px;
    }

    .category-post h2 {
        font-size: 1.2em;
    }

    .category-link {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }

    .dropdown-menu:hover .submenu {
        display: block;
    }
}