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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #1B1464, #0080E2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.navbar-menu li a:hover {
    opacity: 0.8;
}

/* Main Content */
header {
    background: linear-gradient(135deg, #1B1464, #0080E2);
    color: white;
    padding: 2rem;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Article & Content Post Styles */
article {
    max-width: 800px;
    margin: 0 auto;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1B1464;
}

article .description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

article .meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

article .featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

article .content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

article .content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #1B1464;
}

article .content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
    color: #333;
}

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

article .content blockquote {
    border-left: 4px solid #0080E2;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
    font-style: italic;
}

article .content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

article .content pre {
    background: #1B1464;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

article .content pre code {
    background: none;
    padding: 0;
}

article .tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* Footer Styles */
.footer {
    background: #1B1464;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-container p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links li a:hover {
    opacity: 1;
}

.footer-container a {
    color: #0080E2;
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

footer {
    background: #f5f5f5;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #1B1464;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-info {
    background: linear-gradient(135deg, #1B1464, #0080E2);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-form {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
}

.contact-form h2 {
    color: #1B1464;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0080E2;
    box-shadow: 0 0 0 3px rgba(0, 128, 226, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #1B1464, #0080E2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 20, 100, 0.3);
}

/* General list styles for about page */
main ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

main ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

main h2 {
    color: #1B1464;
    margin: 2rem 0 1rem;
}

/* Legal Pages (Privacy, Terms) */
.legal-page {
    max-width: 800px;
}

.legal-page .last-updated {
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.legal-page section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

.legal-page section ul {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-page section ul li {
    margin-bottom: 0.5rem;
    color: #444;
}

/* Sitemap Page */
.sitemap-section {
    margin-bottom: 2rem;
}

.sitemap-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0080E2;
}

.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 0.75rem;
}

.sitemap-list li a {
    color: #1B1464;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.sitemap-list li a:hover {
    color: #0080E2;
    text-decoration: underline;
}

/* Posts Grid Styles (for {{ posts:... }} listings) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-card-image-link {
    display: block;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #1B1464, #0080E2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-title a {
    color: #1B1464;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: #0080E2;
}

.post-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-card-author {
    font-weight: 500;
}

/* Carousel Styles */
.carousel-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-header h2 {
    font-size: 2.5rem;
    color: #1B1464;
    margin-bottom: 0.5rem;
}

.carousel-header p {
    color: #666;
    font-size: 1.1rem;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.carousel-track .post-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 300px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: #1B1464;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.carousel-btn:hover {
    background: #0080E2;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: #0080E2;
}

@media (max-width: 768px) {
    .carousel-track .post-card {
        flex: 0 0 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}