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

@font-face {
    font-family: 'Corbel';
    src: url('site-fonts/Corbel-Usua.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Corbel';
    src: url('site-fonts/Corbel-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Corbel';
    src: url('site-fonts/Corbel-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

html {
    height: 100%;
    background-color: #2c001e;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #2c001e 0%, #77216f 100%);
    font-family: 'Corbel', sans-serif;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    touch-action: manipulation;
}

body.lock-scroll {
    overflow: hidden;
    overscroll-behavior: none;
}

header {
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-shrink: 0;
}

.logo-holder {
    display: inline-block;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: -0.5px;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.menu-btn.hidden {
    opacity: 0;
    visibility: hidden;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 25%;
    min-width: 240px;
    height: 100%;
    background-color: #2c001e;
    z-index: 1200;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    padding: 20px;
    padding-top: calc(60px + env(safe-area-inset-top));
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    visibility: hidden;
}

.sidebar.active {
    right: 0;
    visibility: visible;
}

.close-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    left: 20px;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
    color: #ffffff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.menu-item {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-item:hover {
    color: #ffffff;
}

main {
    flex: 1 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateZ(0);
}

.home-section {
    display: block;
    width: 100%;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    padding: 40px 20px;
}

.home-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.news-section {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.projects-section {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.projects-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
}

.projects-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.projects-main {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    text-align: justify;
}

.privacy-section {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.privacy-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
}

.privacy-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.privacy-main {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    text-align: justify;
}

.privacy-main p {
    margin-bottom: 20px;
}

.privacy-main p:last-child {
    margin-bottom: 0;
}

.news-navigation-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-size: 28px;
    font-weight: 400;
    padding: 8px 16px;
}

.nav-btn:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none !important;
}

.nav-btn:not(:disabled):hover {
    color: #ffffff;
    transform: scale(1.1);
}

.nav-btn:not(:disabled):active {
    transform: scale(0.95);
}

.news-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-item {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.news-item.active {
    display: flex;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.news-tag {
    background-color: #e95420;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0;
    letter-spacing: 0.5px;
}

.news-date {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.news-content {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    text-align: justify;
    width: 100%;
}

.download-file-link {
    color: #10b981;
    text-decoration: none;
    border-bottom: 2px solid #10b981;
    padding-bottom: 1px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.download-file-link:hover,
.download-file-link:focus {
    opacity: 0.8;
}

.secure-orange-link {
    color: #e95420;
    text-decoration: none;
    border-bottom: 2px solid #e95420;
    padding-bottom: 1px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.secure-orange-link:hover,
.secure-orange-link:focus {
    opacity: 0.8;
}

footer {
    background-color: #242424;
    z-index: 1000;
    width: 100%;
    flex-shrink: 0;
}

.copyright-line {
    width: 100%;
    height: 1px;
    background-color: #333333;
}

.footer-content {
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-link {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.privacy-link:hover {
    color: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button, a, button:focus, a:focus, button:active, a:active {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 480px) {
    main {
        padding: 20px 15px;
    }
    .footer-content {
        font-size: 12px;
        padding: 15px 15px;
        padding-bottom: calc(15px + env(safe-area-inset-top));
    }
    .news-card {
        padding: 24px;
    }
    .privacy-card {
        padding: 24px;
    }
    .nav-btn {
        font-size: 24px;
        padding: 6px 12px;
    }
    .home-title {
        font-size: 20px;
    }
}