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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #0d1b2a;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #0d1b2a;
    color: #ffffff;
    padding: 1rem 0;
    border-bottom: 4px solid #1b4965;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #e0e7ee;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #62b6cb;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #ffffff;
    flex: 1 0 auto;
    width: 100%;
}

footer {
    background: #0d1b2a;
    color: #b8c5d6;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 4px solid #1b4965;
}

footer a {
    color: #62b6cb;
}

footer a:hover {
    color: #7ec8e3;
}

h1, h2, h3 {
    color: #0d1b2a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    border-bottom: 2px solid #1b4965;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    color: #1b4965;
    border-bottom: 1px solid #e0e7ee;
    padding-bottom: 0.5rem;
}

.product article,
.page article {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e7ee;
}

.product-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e7ee;
}

.categories, .tags {
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 0.5rem;
}

.categories a,
.tags a {
    color: #1b4965;
    font-weight: 500;
}

.categories a:hover,
.tags a:hover {
    color: #62b6cb;
}

.product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #e0e7ee;
}

.product-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.product-content h3 {
    font-size: 1.2rem;
    color: #1b4965;
    margin-top: 1.5rem;
}

.product-content ul,
.product-content ol {
    margin: 1rem 0 1rem 2rem;
}

.product-content li {
    margin-bottom: 0.5rem;
}

.product-content p {
    margin-bottom: 1rem;
}

.product-content code {
    background: #f0f4f8;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e7ee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.15);
    border-color: #1b4965;
}

.product-card a {
    text-decoration: none;
}

.product-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.product-card p {
    color: #4a5568;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e7ee;
}

.pagination a {
    color: #1b4965;
    font-weight: 500;
}

.pagination a:hover {
    color: #62b6cb;
}

.product-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e7ee;
}

.product-thumbnail {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e0e7ee;
}

.product-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.associated-image {
    margin-bottom: 1.5rem;
}

.associated-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e0e7ee;
}

.gallery {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #1b4965;
}

.gallery h2 {
    font-size: 1.3rem;
    color: #0d1b2a;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e7ee;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

.hero {
    margin: -2rem -1rem 3rem -1rem;
}

.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #1b4965;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.button:hover {
    background: #62b6cb;
    color: #ffffff;
}

/* Downloads page styles */


.product-grid.download {
    margin-top: 1rem;
    padding-top: 1rem;
}

.download-info {
    text-align: center;
}

.download-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #3e0f6e 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    margin: 1rem auto 0;
}

.download-button:hover {
    opacity: 0.8;
}

.download-button .file-name {
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* News page styles */

.news-page h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.news-intro {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: #ffffff;
    border: 1px solid #e0e7ee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.15);
    border-color: #1b4965;
}

.news-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
}

.news-thumbnail {
    flex: 0 0 280px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 1.5rem 2rem;
    flex: 1;
}

.news-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
    color: #0d1b2a;
}

.news-content h2:hover {
    color: #1b4965;
}

.news-meta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: #f0f4f8;
    color: #1b4965;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-summary {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: #62b6cb;
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .news-item a {
        flex-direction: column;
    }

    .news-thumbnail {
        flex: 0 0 200px;
    }

    .news-content {
        padding: 1.25rem;
    }

    .news-content h2 {
        font-size: 1.2rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* News article page styles */

.news-article .article-header {
    margin-bottom: 2rem;
}

.news-article .article-header h1 {
    font-size: 2.2rem;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.news-article .article-meta {
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-article .article-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.news-article .article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article .article-content {
    max-width: 800px;
    line-height: 1.8;
}

.news-article .article-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.news-article .article-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.news-article .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.news-article .article-content th,
.news-article .article-content td {
    border: 1px solid #e0e7ee;
    padding: 0.75rem 1rem;
    text-align: left;
}

.news-article .article-content th {
    background: #f0f4f8;
    font-weight: 600;
    color: #0d1b2a;
}

.news-article .article-content tr:nth-child(even) {
    background: #f9fafb;
}

.news-article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e7ee;
    font-size: 0.9rem;
    color: #718096;
}

.back-to-news {
    margin-top: 2rem;
    text-align: left;
}

.back-to-news a {
    color: #1b4965;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-news a:hover {
    color: #62b6cb;
}
