:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --success-bg: #d4edda;
    --success-color: #155724;
    --success-border: #c3e6cb;
    --error-bg: #f8d7da;
    --error-color: #721c24;
    --error-border: #f5c6cb;
    --info-bg: #d1ecf1;
    --info-color: #0c5460;
    --info-border: #bee5eb;
    --header-bg: #2c3e50;
    --footer-bg: #f8f9fa;
    --body-bg: #f9f9f9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--body-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
p+p {
    margin-top: 16px;
}
p+h2, p+h3 {
    margin-top: 16px;
}
em {
    font-style: italic;
    font-weight: 600;
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

a:visited {
    color: #9b59b6;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.75em;
    margin: 1.2em 0 0.6em 0;
}

h3 {
    font-size: 1.5em;
    margin: 1em 0 0.5em 0;
}

h4 {
    font-size: 1.25em;
    margin: 0.8em 0 0.4em 0;
}

h5, h6 {
    font-size: 1.1em;
    margin: 0.6em 0 0.3em 0;
}

/* First heading should have less top margin */
h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}

/* Proper spacing between headings and lists */
h2 + ul, h2 + ol, h3 + ul, h3 + ol {
    margin-top: 0.5em;
}

/* Proper spacing between paragraphs and headings */
p + h2 {
    margin-top: 1.5em;
}

p + h3 {
    margin-top: 1.3em;
}

/* List styling */
ul, ol {
    margin: 1em 0;
    padding-left: 2em;
}

li {
    margin: 0.4em 0;
}

ul ul, ol ul, ul ol, ol ol {
    margin: 0.5em 0;
}

/* Code and pre blocks */
code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

pre {
    background-color: #f4f4f4;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1em 0;
    border-left: 4px solid var(--primary-color);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Blockquote styling */
blockquote {
    margin: 1em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--primary-color);
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

blockquote p:first-child {
    margin-top: 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Strong/bold text */
strong, b {
    font-weight: 600;
    color: #2c3e50;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2em 0;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img.inline-left {
    float: left;
    margin: 0 1.5em 1em 0;
}

img.inline-right {
    float: right;
    margin: 0 0 1em 1.5em;
}
img.border {
    border: 1px solid #2c3e50;
    border-radius: 5px;
    overflow: hidden;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* News and pagination styles */
.news-item {
    margin-bottom: 3em;
    padding-bottom: 2em;
}

.news-item:not(:last-child) {
    border-bottom: 2px solid #e0e0e0;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3em 0 2em 0;
    padding: 1.5em;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.pagination-info {
    font-weight: 500;
    color: #555;
}

.pagination .button {
    margin: 0;
}

.news-back-link {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 2px solid #e0e0e0;
}

/* Container layout */
.container {
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Header styles */
.header {
    background-color: var(--header-bg);
    color: white;
    padding: 24px 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    color: white;
}

/* Content area */
.content {
    padding: 30px;
    text-align: center;
}
.align-left {
    text-align: left;
}
/* Message types */
.message {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 6px;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

.success {
    background-color: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

.error {
    background-color: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-border);
}

.info {
    background-color: var(--info-bg);
    color: var(--info-color);
    border: 1px solid var(--info-border);
}

/* Button styles - fixing the cursor and border issues */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button:hover,
.button:visited {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
}

.button:active {
    transform: translateY(0);
}

/* Additional helper text */
.small-text {
    font-size: 14px;
    color: #777;
    margin-top: -16px;
    margin-bottom: 20px;
}

/* Footer styles */
.footer {
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
    padding: 16px;
    background-color: var(--footer-bg);
    border-top: 1px solid #ecf0f1;
}

.footer p {
    margin: 6px 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul {
    padding-left: 20px;
    margin: 16px 0;
}
.muted {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}
video {
    max-width: 100%;
}
/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }

    .content {
        padding: 20px;
    }

    body {
        padding: 0;
    }
}

/* Animation for the message box - subtle fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: fadeIn 0.5s ease-out;
}
