/* Blog Post Content */
.blog-content-section {
    padding: 24px;
    background: #1C1C1C;
}

/* Back to Blog Link */
.back-to-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-blog-link:hover {
    color: #d4a612;
}

@media (min-width: 768px) {
    .blog-content-section {
        padding: 40px 60px;
    }
}

.blog-content-container {
    max-width: 1440px;
    margin: 0 auto;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .blog-content-grid {
        grid-template-columns: 8fr 4fr;
    }
}

/* Main Content */
.blog-main-content {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .blog-main-content {
        grid-column: 1 / 2;
    }
}

/* Post Header */
.post-header {
    margin-bottom: 32px;
}

.post-title {
    font-size: 32px;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 16px;
    word-break: break-word;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 40px;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(244, 244, 244, 0.70);
    font-size: 16px;
    margin-bottom: 24px;
}

/* Main Image */
.post-image {
    margin-bottom: 32px;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Post Content */
.post-content {
    color: rgba(244, 244, 244, 0.90);
    line-height: 1.6;
    font-size: 16px;
}

.post-content p {
    margin-bottom: 8px;
}

.post-content h2 {
    font-size: 20px;
    color: #FFF;
    margin-bottom: 20px;
}

.post-content img {
    margin-bottom: 8px;
    border-radius: 6px;
}

.post-content a {
    color: #BE930B;
}

.post-content strong {
    color: #FFF;
}

/* Table Styles */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: #2A2A2A;
    border-radius: 8px;
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #3A3A3A;
}

.post-content table th {
    background: #3A3A3A;
    color: #FFF;
    font-weight: 600;
    font-size: 14px;
}

.post-content table td {
    color: rgba(244, 244, 244, 0.90);
    font-size: 14px;
}

.post-content table tr:last-child td {
    border-bottom: none;
}

.post-content table tr:hover td {
    background: #333;
}

.post-content table caption {
    padding: 8px;
    color: rgba(244, 244, 244, 0.70);
    font-size: 14px;
    text-align: left;
}

/* Previous/Next Navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #3A3A3A;
}

.post-navigation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.blog-nav-link {
    flex: 1;
    min-width: 140px;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-nav-link:hover {
    border-color: #BE930B;
}

.blog-nav-link-previous {
    justify-content: flex-start;
}

.blog-nav-link-next {
    justify-content: flex-end;
}

.blog-nav-link-content {
    flex: 1;
    min-width: 0;
}

.blog-nav-link-next .blog-nav-link-content {
    text-align: right;
}

.blog-nav-link-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(244, 244, 244, 0.70);
    margin-bottom: 4px;
}

.blog-nav-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-nav-link-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.blog-nav-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar */
.blog-sidebar {
    grid-column: 1 / -1;
    position: static;
    top: auto;
    align-self: auto;
}

@media (min-width: 1024px) {
    .blog-sidebar {
        grid-column: 2 / 3;
        position: sticky;
        top: 64px;
        align-self: start;
    }
}

/* Recent Articles */
.recent-articles-title {
    font-size: 20px;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 16px;
}

.recent-articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recent-article-item {
    display: flex;
    gap: 16px;
}

.recent-article-image {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.recent-article-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.recent-article-content {
    flex: 1;
    min-width: 0;
}

.recent-article-title {
    font-size: 16px;
    font-weight: 500;
    color: #FFF;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-article-title:hover {
    color: #BE930B;
}

.recent-article-date {
    color: rgba(244, 244, 244, 0.70);
    font-size: 14px;
    margin-top: 4px;
}

/* Tags */
.tags-section {
    margin-top: 20px;
}

.tags-title {
    font-size: 20px;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 8px 16px;
    background: #2A2A2A;
    color: rgba(244, 244, 244, 0.90);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid #3A3A3A;
}

.tag-link:hover {
    background: #BE930B;
    color: white;
    border-color: #BE930B;
}

/* Message Alert Styles */
.message-container {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.message {
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: messageFadeIn 0.3s ease-out;
    width: auto;
    max-width: 90%;
}

.message.error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.message.success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.message.info {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #409eff;
}

.message.warning {
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
}

.message-content {
    flex: 1;
    font-size: 14px;
}

.message-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
    pointer-events: auto;
}

.message-close:hover {
    opacity: 1;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-container {
    position: relative;
    width: calc(100% - 32px);
    max-width: 768px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .video-container {
        width: calc(100% - 120px);
    }
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Image Preview Modal */
.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.image-preview-modal.active {
    display: flex;
}

.image-preview-container {
    position: relative;
    max-width: 4xl;
    max-height: 90vh;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    section {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .max-w-[1440px] {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    /* Ensure hero section covers full width */
    section.relative.h-300px.mdh-400px.overflow-hidden {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Ensure footer covers full width */
    footer {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Ensure header covers full width */
    .bg-white.shadow-sm.sticky.top-0.z-50 {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Ensure notification bar covers full width */
    .bg-BE930B.py-12px {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
