/* cyrillic-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/roboto-regular-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/roboto-regular-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/roboto-regular-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/roboto-regular-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/roboto-bold-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/roboto-bold-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/roboto-bold-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/roboto-bold-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f4f6f9;
    color: #2d3748;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 2.5rem;
    color: #2b6cb0;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #4a5568;
}

/* Main content */
main {
    flex: 1 0 auto;
    padding: 40px 0;
}

.earn-section h2 {
    font-size: 2.2rem;
    color: #2b6cb0;
    text-align: center;
    margin-bottom: 30px;
}

.earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.earn-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.earn-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.earn-card h3 {
    font-size: 1.5rem;
    color: #2b6cb0;
    margin-bottom: 12px;
}

.earn-card p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.start-earning {
    display: inline-block;
    padding: 10px 20px;
    background: #2b6cb0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.start-earning:hover {
    background: #1c5280;
    transform: translateY(-2px);
}

.no-methods {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 14px;
    background: #ffffff;
    color: #2b6cb0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination-btn:hover {
    background: #edf2f7;
    color: #2b6cb0;
}

.pagination-btn.active {
    background: #2b6cb0;
    color: #ffffff;
    border-color: #2b6cb0;
    cursor: default;
}

.pagination-ellipsis {
    color: #4a5568;
    font-size: 0.95rem;
    padding: 8px;
}

/* Method page */
.method-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.method-content h1 {
    font-size: 2rem;
    color: #2b6cb0;
    margin-bottom: 15px;
}

.method-meta {
    margin-bottom: 20px;
}

.method-meta p {
    font-size: 0.85rem;
    color: #718096;
}

.category-link {
    color: #2b6cb0;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

.method-description {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 20px;
    font-style: italic;
}

.method-body {
    font-size: 1rem;
    color: #2d3748;
}

.method-body h1, .method-body h2, .method-body h3 {
    color: #2b6cb0;
    margin: 20px 0 10px;
}

.method-body p {
    margin-bottom: 15px;
}

.method-body ul, .method-body ol {
    margin: 15px 0;
    padding-left: 20px;
}

/* Related methods and Recommended resources */
.related-methods,
.recommended-resources {
    margin-top: 30px;
    padding: 20px;
    background: #edf2f7;
    border-radius: 8px;
}

.related-methods h3,
.recommended-resources h3 {
    font-size: 1.5rem;
    color: #2b6cb0;
    margin-bottom: 15px;
}

.related-methods ul,
.recommended-resources ul {
    list-style: disc;
    padding-left: 20px;
}

.related-methods li,
.recommended-resources li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #2d3748;
}

.related-methods a,
.recommended-resources a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.related-methods a:hover,
.recommended-resources a:hover {
    color: #1c5280;
    text-decoration: underline;
    transform: translateX(2px);
}

.recommended-resources p {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 15px;
}

/* Footer */
footer {
    flex-shrink: 0;
    background: #2b6cb0;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

footer p {
    font-size: 0.85rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .earn-section h2 {
        font-size: 1.8rem;
    }

    .earn-card h3 {
        font-size: 1.4rem;
    }

    .method-content h1 {
        font-size: 1.8rem;
    }

    .related-methods h3,
    .recommended-resources h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 0.95rem;
    }

    .earn-section h2 {
        font-size: 1.5rem;
    }

    .earn-card {
        padding: 15px;
    }

    .earn-card h3 {
        font-size: 1.2rem;
    }

    .method-content {
        padding: 20px;
    }

    .method-content h1 {
        font-size: 1.5rem;
    }

    .related-methods h3,
    .recommended-resources h3 {
        font-size: 1.3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}