/* Blog Post Page Styles */

/* Back to Blog Link */
.back-to-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1C1C1C;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-blog-link:hover {
    color: #d4a612;
}

/* Hero Section */
.blog-hero-section {
    position: relative;
    height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-hero-section {
        height: 450px;
    }
}

.blog-hero-background {
    position: absolute;
    inset: 0;
}

.blog-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.blog-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
}

.blog-hero-content-inner {
    text-align: center;
    color: white;
    padding: 0 20px;
    width: 100%;
    max-width: 800px;
}

.blog-hero-title {
    color: #FFF;
    text-align: center;
    font-family: "Proxima Nova";
    font-size: 50px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 48px;
    }
}

.blog-hero-description {
    color: #E8E8E8;
    text-align: center;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .blog-hero-description {
        font-size: 18px;
    }
}

/* Blog Post Content */
.blog-content-section {
    padding: 24px;
    background: white;
}

@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: #1C1C1C;
    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: #666;
    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: #444;
    line-height: 1.6;
    font-size: 16px;
}

.post-content p {
    margin-bottom: 8px;
}

.post-content h1 {
    font-size: 28px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 14px;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 12px;
}

.post-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.post-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.post-content img {
    margin-bottom: 8px;
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 强制图片根据父容器的 text-align 对齐 */
.post-content p img,
.post-content div img {
    display: inline;
}

/* 当父容器设置了 text-align 时，图片作为块级元素居中 */
.post-content p[style*="text-align: center"],
.post-content div[style*="text-align: center"],
.post-content span[style*="text-align: center"] {
    text-align: center !important;
}

.post-content p[style*="text-align: center"] img,
.post-content div[style*="text-align: center"] img,
.post-content span[style*="text-align: center"] img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.post-content p[style*="text-align: right"],
.post-content div[style*="text-align: right"],
.post-content span[style*="text-align: right"] {
    text-align: right !important;
}

.post-content p[style*="text-align: right"] img,
.post-content div[style*="text-align: right"] img,
.post-content span[style*="text-align: right"] img {
    display: inline !important;
    float: none !important;
}

.post-content p[style*="text-align: left"],
.post-content div[style*="text-align: left"],
.post-content span[style*="text-align: left"] {
    text-align: left !important;
}

.post-content p[style*="text-align: left"] img,
.post-content div[style*="text-align: left"] img,
.post-content span[style*="text-align: left"] img {
    display: inline !important;
    float: none !important;
}

/* WangEditor 特殊图片容器 */
.post-content .w-e-text-container img,
.post-content .w-e-content img {
    max-width: 100%;
    height: auto;
}

/* WangEditor 段落样式 */
.post-content .paragraph {
    margin-bottom: 1em;
}

.post-content .paragraph img {
    max-width: 100%;
}

/* WangEditor 对齐类 */
.post-content .text-align-center {
    text-align: center !important;
}

.post-content .text-align-center img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.post-content .text-align-right {
    text-align: right !important;
}

.post-content .text-align-right img {
    display: inline !important;
}

.post-content .text-align-left {
    text-align: left !important;
}

.post-content .text-align-left img {
    display: inline !important;
}

.post-content img.align-left,
.post-content img.w-e-image-left {
    float: left;
    margin-right: 16px;
    margin-bottom: 16px;
}

.post-content img.align-right,
.post-content img.w-e-image-right {
    float: right;
    margin-left: 16px;
    margin-bottom: 16px;
}

.post-content img.align-center,
.post-content img.w-e-image-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

/* WangEditor 图片容器对齐 */
.post-content div[style*="text-align: center"] img,
.post-content p[style*="text-align: center"] img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content div[style*="text-align: right"] img,
.post-content p[style*="text-align: right"] img {
    float: right;
    margin-left: 16px;
}

.post-content div[style*="text-align: left"] img,
.post-content p[style*="text-align: left"] img {
    float: left;
    margin-right: 16px;
}

/* WangEditor 图片包裹容器 */
.post-content .w-e-image-container {
    margin-bottom: 16px;
}

.post-content .w-e-image-container img {
    margin-bottom: 0;
}

/* WangEditor 内联样式对齐 - 图片直接设置 float */
.post-content img[style*="float: left"],
.post-content img[style*="float:left"] {
    float: left;
    margin-right: 16px;
    margin-bottom: 16px;
}

.post-content img[style*="float: right"],
.post-content img[style*="float:right"] {
    float: right;
    margin-left: 16px;
    margin-bottom: 16px;
}

.post-content img[style*="margin-left: auto"],
.post-content img[style*="margin-right: auto"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

/* WangEditor 多图并排布局 */
.post-content .w-e-image-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-content .w-e-image-wrapper img {
    flex: 1;
    min-width: 150px;
    max-width: calc(50% - 4px);
}

/* WangEditor 图片对齐 - 支持容器div的text-align样式 */
.post-content div.w-e-image-container[style*="text-align: center"],
.post-content p.w-e-image-container[style*="text-align: center"] {
    text-align: center;
}

.post-content div.w-e-image-container[style*="text-align: right"],
.post-content p.w-e-image-container[style*="text-align: right"] {
    text-align: right;
}

.post-content div.w-e-image-container[style*="text-align: left"],
.post-content p.w-e-image-container[style*="text-align: left"] {
    text-align: left;
}

/* 支持图片居中的通用样式 */
.post-content div[align="center"] img,
.post-content p[align="center"] img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content div[align="right"] img,
.post-content p[align="right"] img {
    float: right;
    margin-left: 16px;
}

.post-content div[align="left"] img,
.post-content p[align="left"] img {
    float: left;
    margin-right: 16px;
}

/* 清除浮动 */
.post-content .clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.post-content br {
    clear: both;
}

/* 最强效的图片对齐样式 - 检查父容器的 text-align */
.post-content :not(pre) > img {
    max-width: 100%;
    height: auto;
}

.post-content :where(p, div, span):not(.post-content) > img {
    max-width: 100%;
}

/* 通过父容器 text-align 控制图片对齐 - 最通用的规则 */
.post-content *[style*="text-align: center"] img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.post-content *[style*="text-align: right"] img {
    float: right !important;
    margin-left: 16px !important;
    margin-right: 0 !important;
}

.post-content *[style*="text-align: left"] img {
    float: left !important;
    margin-right: 16px !important;
    margin-left: 0 !important;
}

/* 通用的图片容器对齐 */
.post-content .image-center,
.post-content .img-center {
    text-align: center;
}

.post-content .image-center img,
.post-content .img-center img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content .image-right,
.post-content .img-right {
    text-align: right;
}

.post-content .image-right img,
.post-content .img-right img {
    float: right;
    margin-left: 16px;
}

.post-content .image-left,
.post-content .img-left {
    text-align: left;
}

.post-content .image-left img,
.post-content .img-left img {
    float: left;
    margin-right: 16px;
}

.post-content .image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-content .image-grid img {
    flex: 1;
    min-width: 200px;
    max-width: calc(50% - 4px);
}

.post-content .image-grid.col-3 img {
    max-width: calc(33.33% - 5.33px);
}

.post-content .image-grid.col-4 img {
    max-width: calc(25% - 6px);
}

.post-content ul {
    list-style-type: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-content ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.post-content ul ul,
.post-content ol ol {
    margin-top: 8px;
    margin-bottom: 0;
}

.post-content ul ul {
    list-style-type: circle;
}

.post-content ul ul ul {
    list-style-type: square;
}

.post-content strong {
    color: #1C1C1C;
}

.post-content a {
    color: #BE930B;
}

/* Table Styles */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.post-content table th {
    background: #f9fafb;
    color: #1C1C1C;
    font-weight: 600;
    font-size: 14px;
}

.post-content table td {
    color: #444;
    font-size: 14px;
}

.post-content table tr:last-child td {
    border-bottom: none;
}

.post-content table tr:hover td {
    background: #f9fafb;
}

.post-content table caption {
    padding: 8px;
    color: #666;
    font-size: 14px;
    text-align: left;
}

/* Comments Section */
.comments-section {
    margin-top: 48px;
}

.comments-title {
    font-size: 24px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 24px;
}

/* Comment Form */
.comment-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    padding: 32px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.comment-form-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.comment-form-title {
    font-size: 24px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.comment-form-title svg {
    margin-right: 12px;
    color: #BE930B;
}

.comment-form-loading {
    padding: 48px;
    text-align: center;
}

.comment-form-loading .spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    border: 2px solid #BE930B;
    border-top: 2px solid transparent;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.comment-form-logged-in {
    display: none;
}

.comment-form-not-logged-in {
    display: none;
    padding: 32px;
    text-align: center;
}

.comment-form-not-logged-in svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #e5e7eb;
}

.comment-form-not-logged-in p {
    color: #666;
    margin-bottom: 16px;
    font-size: 18px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: none;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(190, 147, 11, 0.5);
    border-color: #BE930B;
}

/* Button Styles */
.btn-primary {
    background-color: #e6b000;
    transition: all 0.3s ease;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: #cc9d00;
    transform: translateY(-2px);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    padding: 24px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.comment-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #BE930B, #d4a817);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar span {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #1C1C1C;
    font-size: 18px;
    margin-bottom: 8px;
}

.comment-date {
    color: #666;
    font-size: 14px;
}

.comment-pending {
    color: #eab308;
    font-size: 12px;
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 9999px;
}

.comment-content {
    color: #666;
    line-height: 1.5;
}

/* Comment Images */
.comment-images {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.comment-image {
    border-radius: 8px;
    overflow: hidden;
}

.comment-image img {
    width: 100%;
    height: auto;
    max-height: 196px;
    object-fit: contain;
}

/* Comment Videos */
.comment-videos {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-video {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.comment-video iframe {
    width: 100%;
    height: 315px;
    border: 0;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 48px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
}

.no-comments svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #e5e7eb;
}

.no-comments p {
    color: #666;
    font-size: 18px;
}

/* Previous/Next Navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.post-navigation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.blog-nav-link {
    flex: 1;
    min-width: 140px;
    background: white;
    border: 1px solid #e5e7eb;
    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: #666;
    margin-bottom: 4px;
}

.blog-nav-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #1C1C1C;
    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: #1C1C1C;
    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: #1C1C1C;
    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: #666;
    font-size: 14px;
    margin-top: 4px;
}

/* Tags */
.tags-section {
    margin-top: 20px;
}

.tags-title {
    font-size: 20px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 8px 16px;
    background: #f3f4f6;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
}

.tag-link:hover {
    background: #BE930B;
    color: white;
}

/* 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;
    }
}
