/* General Blog Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #121212;
    color: #e2e8f0;
    line-height: 1.7;
}

a {
    color: #a7c5eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

.blog-container, .legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.blog-header {
    background: #1a202c;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-header a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #a7c5eb;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
}
.logo-link:hover {
    text-decoration: none;
    color: #a7c5eb;
}
.logo-svg {
    height: 2rem;
    width: 2rem;
}


.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2d3748;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    color: #a7c5eb;
}

.article-meta {
    font-size: 0.9rem;
    color: #a0aec0;
}

.article-banner-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content, .legal-content {
    font-size: 1.1rem;
}

.article-content h2, .legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #a7c5eb;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 0.5rem;
}

.article-content h3, .legal-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #a7c5eb;
}

.article-content p, 
.article-content ul, 
.article-content ol,
.legal-content p, 
.legal-content ul, 
.legal-content ol {
    margin-bottom: 1rem;
}

.article-content ul, 
.article-content ol,
.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid #a7c5eb;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #cbd5e1;
    background: rgba(45, 55, 72, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.blog-footer, .legal-footer {
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
    background-color: rgba(26, 32, 44, 0.9);
    border-top: 1px solid #2d3748;
}
.blog-footer a, .legal-footer a {
    margin: 0 0.5rem;
}

/* Template Specific: Guide */
.guide-template .step {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.guide-template .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: #a7c5eb;
    line-height: 1;
}

.guide-template .step-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Template Specific: Announcement */
.announcement-template .blog-header a {
    font-size: 1.1rem;
    font-weight: 500;
}
.announcement-template .announcement-banner {
    position: relative;
    text-align: center;
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.announcement-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.7);
    z-index: 2;
}

.announcement-banner .article-header {
    position: relative;
    z-index: 3;
    border-bottom: 0;
    margin-bottom: 0;
}

.announcement-banner .article-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Blog Index Page Styles */
.blog-index .header-content {
    padding: 3rem 1.5rem;
    border-bottom: 1px solid #2d3748;
    text-align: center;
}
.blog-index .blog-header {
    display: block;
    padding: 0;
}
.blog-index .header-content .home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.blog-index .header-content .home-link .logo-svg {
    height: 3rem;
    width: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
@media (min-width: 768px) {
    .blog-index .header-content .home-link .logo-svg {
        height: 4rem;
        width: 4rem;
    }
}
.blog-index .header-content h1 {
    font-size: 2.5rem;
    color: #a7c5eb;
    margin-bottom: 0.5rem;
}
.blog-index .header-content p {
    font-size: 1.1rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0.5rem auto 0;
}
.blog-index .post-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.post-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.post-item {
    background: rgba(45, 55, 72, 0.5);
    border-radius: 12px;
    border: 1px solid #2d3748;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #a7c5eb;
}

.post-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-item-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.post-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #a7c5eb;
    margin: 0 0 0.5rem 0;
}

.post-item-meta {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 0.75rem;
}

.post-item-excerpt {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Featured Post Styles */
.featured-post-wrapper {
    margin-bottom: 3rem;
}
.post-item-featured {
    background: linear-gradient(145deg, rgba(45, 55, 72, 0.7), rgba(26, 32, 44, 0.7));
}
.post-item-featured a {
    flex-direction: column;
}
@media (min-width: 768px) {
    .post-item-featured a {
        flex-direction: row;
        align-items: center;
    }
}
.post-item-featured .post-item-image {
    height: auto;
    width: 100%;
    border-bottom: 1px solid #2d3748;
}
@media (min-width: 768px) {
    .post-item-featured .post-item-image {
        width: 40%;
        height: auto;
        border-right: 1px solid #2d3748;
        border-bottom: none;
    }
}
.post-item-featured .post-item-content {
    position: relative;
    padding: 2rem;
}
.post-item-featured .post-item-title {
    font-size: 1.8rem;
}
.post-item-featured-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: #a7c5eb;
    color: #1a202c;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.latest-posts-title {
    font-size: 1.8rem;
    color: #a0aec0;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}


/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
}

.post-navigation a {
    display: block;
    padding: 0.75rem 1.25rem;
    border: 1px solid #2d3748;
    border-radius: 8px;
    max-width: 45%;
}
.post-navigation a:hover {
    background-color: rgba(45, 55, 72, 0.5);
}
.post-navigation .nav-label {
    font-size: 0.8rem;
    color: #a0aec0;
    display: block;
}
.post-navigation .nav-title {
    font-weight: 500;
    display: block;
}
.post-navigation .next {
    text-align: right;
}
.post-navigation .prev {
    text-align: left;
}

.post-navigation .prev-placeholder, .post-navigation .next-placeholder {
    display: block;
    width: 45%;
}

/* Legal Pages */
.legal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.legal-header h1 {
    font-size: 1.5rem;
    color: #a7c5eb;
}
.lang-switcher a {
    cursor: pointer;
    margin: 0 0.5rem;
    color: #a0aec0;
    transition: color 0.2s ease;
}
.lang-switcher a:hover, .lang-switcher a.active {
    color: #a7c5eb;
    text-decoration: underline;
}
.legal-content h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #a7c5eb;
}
.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}
.legal-content ul ul {
    list-style: circle;
}

/* Contact Form */
#contact-form-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.7s ease-in-out;
}
#contact-form-container.visible {
    max-height: 1000px; /* Large enough to not clip content */
    opacity: 1;
    margin-top: 2rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid #2d3748;
    border-radius: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group-full {
    grid-column: 1 / -1;
}
.contact-form label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0aec0;
}
.form-input, .form-textarea {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #a7c5eb;
    box-shadow: 0 0 0 2px rgba(167, 197, 235, 0.3);
}
.form-textarea {
    resize: vertical;
}
.form-submit {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}
.form-button {
    background-color: #a7c5eb;
    color: #1a202c;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.form-button:hover {
    background-color: #cbd5e1;
}
.footer-link {
    cursor: pointer;
}

/* YouTube Embed Styles */
.video-container {
    position: relative;
    padding-bottom: 177.77%; /* 9:16 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 320px; /* Max width for the shorts player */
    background: #000;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
