@font-face {
    font-family: 'CustomFont';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-weight: normal;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'CustomFont', Arial, Helvetica, sans-serif;
    background-color: #0E2E36;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #0E2E36;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.desktop-nav a:hover {
    color: #29E37C;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hamburger span:nth-child(1) {
    top: 20%;
}

.hamburger span:nth-child(2) {
    top: 50%;
}

.hamburger span:nth-child(3) {
    top: 80%;
}

.hamburger.active span {
    opacity: 0;
}

.hamburger.active::before,
.hamburger.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transform: translateY(-50%);
}

.hamburger.active::before {
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background-color: #0E2E36;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem 1.5rem 2rem;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav > a:not(.btn) {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.mobile-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
    overflow: visible;
}

.mobile-buttons .btn {
    flex: 1;
    width: 50%;
    text-align: center;
    position: relative;
    overflow: visible;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-login {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #29E37C;
}

.btn-login:hover {
    background-color: #29E37C;
    color: #0E2E36;
}

.btn-register {
    background-color: #29E37C;
    color: #0E2E36;
    font-weight: bold;
}

.btn-register:hover {
    background-color: #D4F40B;
    color: #0E2E36;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 227, 124, 0.4);
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    padding: 3rem 0;
}

.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.content-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h1 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: #29E37C;
}

.content-section h2 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #29E37C;
}

.content-section h3 {
    color: #D4F40B;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.content-section h4 {
    color: #D4F40B;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section a:not(.btn) {
    color: #29E37C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #D4F40B;
    text-decoration: underline;
}

.content-section img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Content Toggle Button */
.content-toggle-btn {
    display: block;
    margin: 1.5rem auto;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: #4A90E2;
    border: 2px solid #4A90E2;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-toggle-btn:hover {
    color: #5BA3F5;
    border-color: #5BA3F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.content-toggle-btn.active {
    color: #6BB6FF;
    border-color: #6BB6FF;
}

/* Table of Contents */
.table-of-contents {
    display: none;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-of-contents.active {
    display: block;
}

.table-of-contents .toc-title {
    color: #D4F40B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.2rem;
    padding-left: 0;
    list-style: none;
    list-style-type: none;
    display: flex;
    align-items: center;
}

.toc-list li::before {
    content: counter(toc-counter) " ";
    color: #29E37C;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.toc-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline;
    word-wrap: break-word;
    flex: 1;
}

.toc-list a:hover {
    color: #B8D4F0;
    text-decoration: none;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section ul li {
    list-style-type: disc;
}

.content-section ol li {
    list-style-type: decimal;
}

/* Reviews Container */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.review-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(41, 227, 124, 0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    color: #D4F40B;
    font-weight: bold;
    font-size: 1rem;
}

.review-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.review-text {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    text-align: left;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.faq-question.active {
    background-color: rgba(41, 227, 124, 0.15);
    color: #D4F40B;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #29E37C;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: #D4F40B;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
}

.content-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-direction: row;
}

.content-buttons .btn {
    padding: 0.75rem 1.8rem;
    background-color: #29E37C;
    color: #0E2E36;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold !important;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.content-buttons .btn-login {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #29E37C;
}

.content-buttons .btn-login:hover {
    background-color: #29E37C;
    color: #0E2E36;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 227, 124, 0.4);
}

.content-buttons .btn-register:hover {
    background-color: #D4F40B;
    color: #0E2E36;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 227, 124, 0.4);
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}

table tr:first-child {
    background-color: #29E37C;
    color: #ffffff;
    font-weight: bold;
}

table tr:not(:first-child) {
    background-color: rgba(255, 255, 255, 0.05);
}

table tr:not(:first-child):nth-child(even) {
    background-color: rgba(255, 255, 255, 0.08);
}

table tr:hover:not(:first-child) {
    background-color: rgba(41, 227, 124, 0.2);
}

table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table tr:first-child td {
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

table tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    background-color: #0A2328;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #29E37C;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1055px) {
    header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-img {
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    .desktop-nav,
    .desktop-buttons {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    main {
        padding: 2rem 0;
    }

    .main-container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

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

    .content-section h3 {
        font-size: 1.2rem;
    }

    .content-section h4 {
        font-size: 1.1rem;
    }

    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 1rem;
    }

    .content-buttons {
        flex-direction: row;
        gap: 1rem;
        margin: 2rem 0;
        width: 100%;
    }

    .toc-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem 1rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .review-card {
        padding: 1.2rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .faq-answer.active {
        padding: 1.2rem;
    }

    .table-wrapper {
        margin: 1.5rem -1.5rem;
        padding: 0 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    table td {
        padding: 0.8rem 0.6rem;
    }

    table tr:first-child td {
        padding: 1rem 0.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem;
    }

    .logo-img {
        height: 30px;
    }

    .mobile-nav {
        padding: 0.8rem 1rem 1.2rem 1rem;
        gap: 0.4rem;
    }

    .mobile-nav a {
        font-size: 1rem;
        padding: 0.4rem 0;
    }

    .mobile-buttons {
        gap: 0.8rem;
        padding-bottom: 1rem;
    }

    .mobile-buttons .btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    main {
        padding: 1.5rem 0;
    }

    .main-container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 1.2rem;
    }

    .content-section h1 {
        font-size: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }

    .content-section h4 {
        font-size: 0.95rem;
    }

    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 0.95rem;
    }

    .content-buttons {
        flex-direction: row;
        gap: 0.8rem;
        margin: 1.5rem 0;
        width: 100%;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .table-of-contents {
        padding: 1rem;
    }

    .table-of-contents .toc-title {
        font-size: 1.1rem;
    }

    .toc-list a {
        font-size: 0.9rem;
    }

    .reviews-container {
        gap: 1rem;
    }

    .review-card {
        padding: 1rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .review-author {
        font-size: 0.95rem;
    }

    .review-date {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .faq-answer.active {
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .table-wrapper {
        margin: 1.5rem -1.2rem;
        padding: 0 1.2rem;
    }

    table {
        font-size: 0.85rem;
        min-width: 500px;
    }

    table td {
        padding: 0.7rem 0.5rem;
    }

    table tr:first-child td {
        padding: 0.9rem 0.5rem;
        font-size: 0.95rem;
    }
}

