:root {
    --primary-color: #00D9A3; /* QuizEgy green */
    --secondary-color: #28A0FF; /* Blue accent */
    --background-dark: #0F0F23; /* Darker background like QuizEgy */
    --card-background: #1A1A2E; /* Card background */
    --text-primary: #FFFFFF;
    --text-secondary: #B4B4C8;
    --success-color: #00D9A3;
    --error-color: #FF5C5C;
    --border-radius: 8px; /* More modern, less rounded */
    --header-bg: linear-gradient(135deg, #0F0F23, #1A1A2E); /* Dark gradient like QuizEgy */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 5px;
    background: linear-gradient(135deg, var(--background-dark) 0%, #0F0F23 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px;
}

.site-header {
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--background-dark) 0%, #0F0F23 100%);
    padding: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.site-branding {
    text-align: center;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Rubik', sans-serif;
}

.site-title-link {
    text-decoration: none;
}

.site-subtitle {
    margin: 5px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.9;
    font-family: 'Rubik', sans-serif;
}

nav {
    text-align: center;
    margin-top: 5px;
    padding: 5px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    display: inline-block;
    margin: 5px;
    padding: 5px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    font-size: 14px;
}

nav a:hover {
    background-color: var(--secondary-color);
    color: white;
}

nav a.active {
    background-color: rgba(108, 92, 231, 0.555);
    color: white;
    font-weight: 600;
}

p {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 1px 0;
    color: var(--text-primary);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    width: 100%;
    margin: 0 auto;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.canvas-column {
    flex: 1.2;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.controls-column {
    flex: 0.8;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#canvas {
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--card-background);
    max-width: 100%;
    height: auto;
}

.site-footer {
    background-color: var(--card-background);
    padding: 5px;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    margin-top: 5px;
}

.site-footer p {
    margin: 5px;
    color: var(--text-secondary);
    font-size: 14px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1px;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: 'Rubik', sans-serif;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

#fileInput {
    margin-bottom: 1px;
    padding: 5px;
    background-color: var(--card-background);
    color: var(--text-primary);
    border: 2px dashed var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

#fileInput:hover {
    border-color: var(--primary-color);
    background-color: rgba(40, 160, 255, 0.1);
}

#controls {
    background-color: var(--card-background);
    padding: 5px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-bottom: 5px;
    width: 100%;
    max-width: 500px;
}

.control-group {
    margin-bottom: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
    appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Button Styles - QuizEgy inspired */
button {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    margin-top: 5px;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#saveBtn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    width: 100%;
    max-width: 350px;
    font-size: 15px;
    margin: 5px auto 0;
    display: block;
}

#saveBtn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.btn-secondary {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    margin-top: 5px;
    font-size: 16px;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Button Group - Two Column Layout */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-clear,
.btn-save {
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    color: white;
}

.btn-clear {
    background: var(--error-color);
}

.btn-clear:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-save {
    background: var(--success-color);
}

.btn-save:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#clearBtn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 5px auto 0;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

#clearBtn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.controls-section {
    width: 100%;
    background-color: var(--card-background);
    padding: 5px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.slider-group {
    margin-bottom: 15px;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider-container input[type="range"]::-moz-range-thumb {
    appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.value-display {
    min-width: 35px;
    text-align: center;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
}

/* Frame Selection Container - Full Width Top Section */
.frame-selection-container {
    width: 100%;
    margin-bottom: 25px;
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.frame-selection {
    width: 100%;
    text-align: center;
}

.frame-selection h3 {
    margin: 5px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

.frame-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.frame-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: var(--card-background);
}

.frame-icon:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.frame-icon.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 160, 255, 0.3);
}

.frame-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-dark);
}

.frame-preview.no-frame {
    background-color: var(--card-background);
    border: 1px dashed var(--secondary-color);
}

.frame-preview.no-frame span {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

.frame-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-info {
    text-align: center;
    margin: 5px;
    padding: 5px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
}

.quality-info p {
    margin: 5px;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
}

.quality-info strong {
    color: var(--primary-color);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    main {
        padding: 5px;
    }

    .app-container {
        max-width: 100%;
        gap: 15px;
    }

    .app-layout {
        flex-direction: column;
        gap: 15px;
    }

    .controls-column,
    .canvas-column {
        flex: none;
        width: 100%;
    }

    #canvas {
        max-width: 280px;
    }

    .btn-secondary {
        max-width: none;
    }

    .controls-section {
        padding: 5px;
    }

    .frame-icon {
        width: 70px;
        height: 70px;
    }
    
    .button-group {
        gap: 8px;
        margin-top: 10px;
    }
    
    .btn-clear,
    .btn-save {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .frame-selection-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .frame-icons {
        gap: 10px;
    }
}

/* Tablet optimizations */
@media (max-width: 768px) and (min-width: 481px) {
    .app-layout {
        gap: 15px;
    }

    .canvas-column {
        flex: 0 0 55%;
    }

    .controls-column {
        flex: 0 0 40%;
    }

    .frame-icon {
        width: 75px;
        height: 75px;
    }
}

/* Hero Section Styles */
.hero-section {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

.feature-icon {
    font-size: 24px;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5px 5px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-features {
        gap: 25px;
        flex-direction: column;
    }

    .hero-cta {
        font-size: 16px;
    }
}

/* Category Grid Styles */
.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

.categories-header {
    text-align: center;
    margin-bottom: 1px;
}

.categories-header h1 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
}

.categories-header p {
    font-size: 16px;
    color: var(--text-secondary);
    font-family: 'Rubik', sans-serif;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 1px;
}

.category-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--background-dark);
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-thumbnail img {
    transform: scale(1.05);
}

.category-info {
    padding: 5px;
}

.category-info h3 {
    margin: 5px;
    color: var(--text-primary);
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
}

.category-info p {
    display: none;
}

/* Category Page Styles */
.category-header {
    margin: 0 auto;
    padding: 5px;
    text-align: center;
}

.category-header .back-link {
    display: none;
    margin-bottom: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

.category-header .back-link:hover {
    color: var(--secondary-color);
}

.category-header h1 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 1px;
    font-family: 'Rubik', sans-serif;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
}

/* Category Content Styles */
.category-content-wrapper {
    width: 100%;
    margin-top: 1px;
}

.category-content {
    margin: 0 auto;
    background: var(--card-background);
    padding: 5px;
    border-radius: 12px;
    line-height: 1.8;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-content h1,
.category-content h2,
.category-content h3,
.category-content h4 {
    color: var(--primary-color);
}

.category-content h1 {
    font-size: 2em;
}

.category-content h2 {
    font-size: 1.6em;
}

.category-content h3 {
    font-size: 1.3em;
}

.category-content p {
    margin-bottom: 1em;
}

.category-content ul,
.category-content ol {
    margin-left: 25px;
    margin-bottom: 1em;
}

.category-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.category-content a:hover {
    color: var(--secondary-color);
}

.category-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.category-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.category-content table td,
.category-content table th {
    border: 1px solid var(--border-color);
    padding: 8px;
}

.category-content table th {
    background: var(--background-dark);
    font-weight: 600;
}

/* Mobile responsiveness for categories */
@media (max-width: 768px) {
    .categories-grid {
        padding: 5px;
    }

    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-content-wrapper {
        padding: 40px 15px 30px;
    }

    .category-content {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .category-content h1 {
        font-size: 1.6em;
    }

    .category-content h2 {
        font-size: 1.4em;
    }

    .category-content h3 {
        font-size: 1.2em;
    }

    .category-thumbnail {
        height: 150px;
    }

    .category-info {
        padding: 15px;
    }

    .category-info h3 {
        font-size: 15px;
    }

    /* Header responsive styles */
    .site-title {
        font-size: 18px;
    }

    .site-subtitle {
        font-size: 14px;
    }

    .nav-menu {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-content-wrapper {
        padding: 30px 10px 20px;
    }

    .category-content {
        padding: 20px 15px;
    }

    .category-content h1 {
        font-size: 1.4em;
    }

    .category-content h2 {
        font-size: 1.3em;
    }

    .category-content h3 {
        font-size: 1.1em;
    }

    .category-content table {
        font-size: 14px;
    }

    .category-content table td,
    .category-content table th {
        padding: 6px;
    }
}

/* Footer Styles - QuizEgy inspired */
.site-footer {
    background: var(--header-bg);
    border-top: 1px solid rgba(0, 217, 163, 0.1);
    padding: 5px;
    margin-top: auto; /* Push footer to bottom */
    color: var(--text-secondary);
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.version-info {
    opacity: 0.6;
    font-size: 12px;
    font-family: 'Rubik', sans-serif;
}

.site-footer p {
    margin: 5px;
    opacity: 0.8;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--card-background);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

.pagination-link.prev,
.pagination-link.next {
    font-weight: 500;
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 8px 4px;
    font-size: 14px;
}

/* About Page Styles */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.about-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.about-container h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 217, 163, 0.2);
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.step-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.mission-section {
    background: rgba(0, 217, 163, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

.mission-section h2 {
    margin-top: 0;
}

.mission-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 30px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.1);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form-actions {
    margin-top: 30px;
}

.contact-form-actions .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.contact-alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-alert-success {
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.contact-alert-error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff5252;
}

/* Mobile pagination */
@media (max-width: 480px) {
    .pagination {
        gap: 5px;
        margin-top: 30px;
        padding: 15px 0;
    }

    .pagination-link {
        padding: 6px 8px;
        font-size: 13px;
        min-width: 35px;
    }

    .pagination-link.prev,
    .pagination-link.next {
        padding: 6px 6px;
    }

    /* About page mobile styles */
    .about-page {
        padding: 10px;
    }

    .about-container {
        padding: 20px;
    }

    .about-container h1 {
        font-size: 1.8rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .step-item {
        padding: 15px;
    }

    .mission-section {
        padding: 20px;
    }
}