/* ===========================================
   TMI OFFICIAL STYLES
   All styling for TMI Official posts and content
   Separated for easy maintenance and updates
   =========================================== */

/* ===========================================
   SHIMMER ANIMATION (shared)
   =========================================== */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* ===========================================
   TMI OFFICIAL SECTION - Home Page
   =========================================== */

.tmi-official-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.4);
}

.tmi-official-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.tmi-section-header {
    margin-bottom: 28px;
    text-align: center;
}

.tmi-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tmi-section-title .tmi-icon {
    color: #fbbf24;
    font-size: 1.5rem;
}

.tmi-section-title h2 {
    color: #f8fafc;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.tmi-section-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.tmi-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.tmi-posts-grid .post.card.tmi-official {
    margin: 0;
}

/* ===========================================
   TMI OFFICIAL CARD - Post Cards
   =========================================== */

.post.card.tmi-official {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #1e293b 100%) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.post.card.tmi-official::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.post.card.tmi-official::after {
    content: '★ OFFICIAL';
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 32px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.post.card.tmi-official .post-header h3 a {
    color: #f8fafc !important;
}

.post.card.tmi-official .post-header h3 a:hover {
    color: #fbbf24 !important;
}

.post.card.tmi-official .post-excerpt {
    color: #cbd5e1 !important;
}

/* Post meta styles */
.post.card.tmi-official .author,
.post.card.tmi-official .post-meta .author {
    color: #fbbf24 !important;
    font-weight: 700;
    text-shadow: none !important;
}

.post.card.tmi-official .date,
.post.card.tmi-official .meta-dot,
.post.card.tmi-official .post-meta .date {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Post stats */
.post.card.tmi-official .post-stats span {
    color: #94a3b8 !important;
}

.post.card.tmi-official .post-stats svg {
    stroke: #94a3b8 !important;
}

/* Post footer styles */
.post.card.tmi-official .post-footer {
    color: #94a3b8 !important;
}

.post.card.tmi-official .post-footer .read-more {
    color: #fbbf24 !important;
}

.post.card.tmi-official .post-footer .read-more:hover {
    color: #f59e0b !important;
}

.post.card.tmi-official .post-footer .stat-item {
    color: #94a3b8 !important;
}

.post.card.tmi-official .post-footer .stat-item svg {
    stroke: #94a3b8 !important;
}

/* Hover state */
.post.card.tmi-official:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 6px 28px rgba(251, 191, 36, 0.35) !important;
    transform: translateY(-2px);
}

/* Ensure TMI official overrides ALL like-based ranks (any data-likes value) */
.post.card.tmi-official[data-likes] {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #1e293b 100%) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25) !important;
}

.post.card.tmi-official[data-likes]:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 6px 28px rgba(251, 191, 36, 0.35) !important;
}

.post.card.tmi-official[data-likes] .post-header h3 a {
    color: #f8fafc !important;
}

.post.card.tmi-official[data-likes] .post-excerpt {
    color: #cbd5e1 !important;
}

.post.card.tmi-official[data-likes] .author,
.post.card.tmi-official[data-likes] .post-meta .author {
    color: #fbbf24 !important;
    text-shadow: none !important;
}

.post.card.tmi-official[data-likes] .date,
.post.card.tmi-official[data-likes] .post-meta .date {
    color: #94a3b8 !important;
}

.post.card.tmi-official[data-likes] .post-footer {
    color: #94a3b8 !important;
}

.post.card.tmi-official[data-likes] .post-footer .read-more {
    color: #fbbf24 !important;
}

.post.card.tmi-official[data-likes] .post-footer .read-more:hover {
    color: #f59e0b !important;
}

.post.card.tmi-official[data-likes] .post-footer .stat-item {
    color: #94a3b8 !important;
}

.post.card.tmi-official[data-likes] .post-footer .stat-item svg {
    stroke: #94a3b8 !important;
}

/* ===========================================
   TMI OFFICIAL BADGE
   =========================================== */

.badge-official {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.badge-official::before {
    content: '★';
    font-size: 0.65rem;
}

.badge-official::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badge-shine 3s infinite;
}

/* Dark card variant */
.post.card.tmi-official .badge-official {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

/* ===========================================
   TMI OFFICIAL POST PAGE STYLING
   =========================================== */

.article-wrapper.tmi-official-post {
    position: relative;
}

.article-wrapper.tmi-official-post .article-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-bottom: 3px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.article-wrapper.tmi-official-post .article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.article-wrapper.tmi-official-post .article-hero::after {
    content: '★ OFFICIAL TMI POST';
    position: absolute;
    top: 20px;
    right: -45px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 50px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.article-wrapper.tmi-official-post .article-title {
    color: #f8fafc;
}

.article-wrapper.tmi-official-post .author-avatar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 700;
}

.article-wrapper.tmi-official-post .author-name {
    color: #fbbf24;
    font-weight: 600;
}

.article-wrapper.tmi-official-post .article-date {
    color: #94a3b8;
}

.article-wrapper.tmi-official-post .stat-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.article-wrapper.tmi-official-post .stat-badge svg {
    stroke: #94a3b8;
}

.article-wrapper.tmi-official-post .btn-icon {
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.2);
}

.article-wrapper.tmi-official-post .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

/* ===========================================
   TMI OFFICIAL - Article Content (Dark Theme)
   =========================================== */

.article-wrapper.tmi-official-post .article-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    position: relative;
}

.article-wrapper.tmi-official-post .article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.article-wrapper.tmi-official-post .article-content .post-message {
    font-size: 1.15rem;
    line-height: 2;
    color: #e2e8f0 !important;
}

.article-wrapper.tmi-official-post .article-content .post-message h1 {
    color: #f8fafc !important;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f59e0b;
}

.article-wrapper.tmi-official-post .article-content .post-message h1:first-child {
    margin-top: 0;
}

.article-wrapper.tmi-official-post .article-content .post-message h2 {
    color: #f8fafc !important;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f59e0b;
}

.article-wrapper.tmi-official-post .article-content .post-message h2:first-child {
    margin-top: 0;
}

.article-wrapper.tmi-official-post .article-content .post-message h3 {
    color: #fbbf24 !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-wrapper.tmi-official-post .article-content .post-message p {
    margin-bottom: 28px;
    text-align: justify;
    color: #cbd5e1 !important;
}

/* Bold text styling - gold for TMI posts */
.article-wrapper.tmi-official-post .article-content .post-message strong {
    color: #fbbf24 !important;
    font-weight: 700;
}

/* Bold text with $ (tickers/money) - add gold background */
.article-wrapper.tmi-official-post .article-content .post-message strong.ticker {
    color: #0f172a !important;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-wrapper.tmi-official-post .article-content .post-message ul,
.article-wrapper.tmi-official-post .article-content .post-message ol {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 24px 24px 24px 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 28px 0;
}

.article-wrapper.tmi-official-post .article-content .post-message li {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #cbd5e1 !important;
}

.article-wrapper.tmi-official-post .article-content .post-message li::marker {
    color: #fbbf24 !important;
    font-weight: 700;
}

.article-wrapper.tmi-official-post .article-content .post-message blockquote {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid #f59e0b;
    color: #e2e8f0 !important;
    padding: 24px 32px;
    border-radius: 0 12px 12px 0;
}

.article-wrapper.tmi-official-post .article-content .post-message a {
    color: #fbbf24 !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.article-wrapper.tmi-official-post .article-content .post-message a:hover {
    color: #f59e0b !important;
    border-bottom-color: #fbbf24;
}

.article-wrapper.tmi-official-post .article-content .post-message hr {
    border: none;
    height: 2px;
    background: #f59e0b;
    margin: 48px 0;
}

.article-wrapper.tmi-official-post .article-content .post-message pre {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #f59e0b;
}

.article-wrapper.tmi-official-post .article-content .post-message code {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fbbf24 !important;
}

/* ===========================================
   TMI OFFICIAL - Replies Section (Dark Theme)
   =========================================== */

.article-wrapper.tmi-official-post+.article-replies,
.tmi-official-post~.article-replies {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 3px solid #f59e0b;
    position: relative;
}

.tmi-official-post~.article-replies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #f59e0b, transparent 50%);
}

.tmi-official-post~.article-replies h2 {
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tmi-official-post~.article-replies h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 2px;
}

.tmi-official-post~.article-replies .reply-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e1;
    transition: all 0.2s ease;
}

.tmi-official-post~.article-replies .reply-item:hover {
    border-left-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tmi-official-post~.article-replies .reply-header .author {
    font-weight: 600;
    color: #1e293b;
}

.tmi-official-post~.article-replies .reply-message {
    color: #475569;
    line-height: 1.7;
}

.tmi-official-post~.article-replies .reply-form {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.tmi-official-post~.article-replies .reply-form:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.tmi-official-post~.article-replies .reply-form textarea {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tmi-official-post~.article-replies .reply-form textarea:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.tmi-official-post~.article-replies .reply-form .btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #0f172a;
    font-weight: 600;
}

.tmi-official-post~.article-replies .reply-form .btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===========================================
   TMI OFFICIAL - Replies Section (Direct Class - Dark)
   =========================================== */

.article-replies.tmi-official-replies {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    border-top: 3px solid #f59e0b;
    position: relative;
    padding: 32px;
}

.article-replies.tmi-official-replies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.article-replies.tmi-official-replies h2 {
    color: #f8fafc !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-replies.tmi-official-replies h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 2px;
}

.article-replies.tmi-official-replies .replies-list {
    margin-top: 24px;
}

.article-replies.tmi-official-replies .reply-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 3px solid #475569 !important;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.article-replies.tmi-official-replies .reply-item:hover {
    border-left-color: #f59e0b !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.article-replies.tmi-official-replies .reply-header strong {
    color: #fbbf24 !important;
    font-weight: 600;
}

.article-replies.tmi-official-replies .reply-header small {
    color: #94a3b8 !important;
}

.article-replies.tmi-official-replies .reply-message {
    color: #cbd5e1 !important;
    line-height: 1.7;
}

.article-replies.tmi-official-replies .vip {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
}

.article-replies.tmi-official-replies form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.article-replies.tmi-official-replies form textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    color: #f8fafc !important;
    transition: all 0.2s ease;
}

.article-replies.tmi-official-replies form textarea::placeholder {
    color: #64748b;
}

.article-replies.tmi-official-replies form textarea:focus {
    border-color: #f59e0b !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    background: rgba(255, 255, 255, 0.08) !important;
}

.article-replies.tmi-official-replies form .btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700;
    padding: 12px 24px;
}

.article-replies.tmi-official-replies form .btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* ===========================================
   TMI OFFICIAL REPLY STYLING
   =========================================== */

.reply-item.tmi-official-reply {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    border: 2px solid #f59e0b !important;
    border-left: 4px solid #f59e0b !important;
    position: relative;
    overflow: hidden;
}

.reply-item.tmi-official-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.reply-item.tmi-official-reply::after {
    content: '★ TMI';
    position: absolute;
    top: 8px;
    right: -20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 28px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.reply-item.tmi-official-reply .reply-header strong {
    color: #fbbf24 !important;
    font-weight: 700;
}

.reply-item.tmi-official-reply .reply-header small {
    color: #94a3b8 !important;
}

.reply-item.tmi-official-reply .reply-message {
    color: #e2e8f0 !important;
    font-size: 1.05rem;
    line-height: 1.8;
}

.reply-item.tmi-official-reply:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-2px);
}

/* TMI reply in dark themed replies section */
.tmi-official-replies .reply-item.tmi-official-reply {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%) !important;
    border: 2px solid #f59e0b !important;
}

/* ===========================================
   TMI OFFICIAL - Reply Form Complete Override
   =========================================== */

.tmi-official-replies .reply-form-container {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-top: 24px !important;
}

.tmi-official-replies .reply-form-container h3 {
    color: #fbbf24 !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

.tmi-official-replies .reply-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.tmi-official-replies .reply-form label {
    display: block !important;
}

.tmi-official-replies .reply-form .form-control,
.tmi-official-replies .reply-form textarea,
.tmi-official-replies textarea.form-control {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #f8fafc !important;
    padding: 14px !important;
    width: 100% !important;
    min-height: 120px !important;
    resize: vertical !important;
    font-size: 1rem !important;
}

.tmi-official-replies .reply-form .form-control::placeholder,
.tmi-official-replies .reply-form textarea::placeholder {
    color: #64748b !important;
}

.tmi-official-replies .reply-form .form-control:focus,
.tmi-official-replies .reply-form textarea:focus {
    border-color: #f59e0b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
    background: rgba(30, 41, 59, 1) !important;
}

.tmi-official-replies .reply-form .align-right {
    margin-top: 16px !important;
}

.tmi-official-replies .reply-form button,
.tmi-official-replies .reply-form .btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
}

.tmi-official-replies .reply-form button:hover,
.tmi-official-replies .reply-form .btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.tmi-official-replies .login-prompt {
    color: #94a3b8 !important;
}

.tmi-official-replies .login-prompt a {
    color: #fbbf24 !important;
}

/* TMI Reply section - no bottom gap */
.tmi-official-replies {
    margin-bottom: 0 !important;
    padding-bottom: 40px !important;
}

.article-container:has(.tmi-official-replies) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.article-wrapper.tmi-official-post+.tmi-official-replies {
    margin-bottom: 0 !important;
}

/* ===========================================
   MOBILE RESPONSIVE - TMI OFFICIAL
   =========================================== */

/* ===========================================
   RESPONSIVE - TABLET (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {

    /* TMI Official Section */
    .tmi-official-section {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .tmi-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tmi-section-title h2 {
        font-size: 1.35rem;
    }

    .tmi-section-title .tmi-icon {
        font-size: 1.25rem;
    }

    .tmi-section-subtitle {
        font-size: 0.875rem;
    }

    /* TMI Official Card on tablet/mobile */
    .post.card.tmi-official {
        box-shadow: 0 3px 15px rgba(245, 158, 11, 0.2) !important;
    }

    .post.card.tmi-official::after {
        font-size: 0.6rem;
        padding: 3px 28px;
        top: 10px;
        right: -30px;
    }

    .post.card.tmi-official .post-header h3 a {
        font-size: 1.1rem !important;
    }

    .post.card.tmi-official .post-excerpt {
        font-size: 0.9rem !important;
        -webkit-line-clamp: 2;
    }

    .post.card.tmi-official .post-footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .post.card.tmi-official .post-footer .read-more {
        font-size: 0.85rem !important;
    }

    .post.card.tmi-official .post-footer .stat-item {
        font-size: 0.8rem !important;
    }

    /* TMI Official badge */
    .badge-official {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }

    /* TMI Official Article page badge */
    .article-wrapper.tmi-official-post .article-hero::after {
        font-size: 0.6rem;
        padding: 4px 40px;
        top: 15px;
        right: -50px;
    }

    /* TMI Official content */
    .article-wrapper.tmi-official-post .article-content .post-message {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-wrapper.tmi-official-post .article-content .post-message h1 {
        font-size: 1.5rem;
        margin-top: 32px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message h2 {
        font-size: 1.3rem;
        margin-top: 28px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message h3 {
        font-size: 1.15rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message p {
        margin-bottom: 20px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message ul,
    .article-wrapper.tmi-official-post .article-content .post-message ol {
        padding: 16px 16px 16px 36px;
        margin: 20px 0;
    }

    .article-wrapper.tmi-official-post .article-content .post-message li {
        margin-bottom: 12px;
        line-height: 1.7;
    }

    .article-wrapper.tmi-official-post .article-content .post-message blockquote {
        padding: 16px 20px;
        margin: 20px 0;
        font-size: 1rem;
    }

    .article-wrapper.tmi-official-post .article-content .post-message pre {
        padding: 16px;
        margin: 20px 0;
        font-size: 0.85rem;
    }

    .article-wrapper.tmi-official-post .article-content .post-message hr {
        margin: 32px 0;
    }

    /* TMI Ticker on mobile */
    .article-wrapper.tmi-official-post .article-content .post-message strong.ticker {
        padding: 2px 6px;
        font-size: 0.95em;
    }

    /* TMI Replies */
    .article-replies.tmi-official-replies,
    .tmi-official-post~.article-replies {
        padding: 24px 16px;
    }

    .tmi-official-replies .reply-form .form-control,
    .tmi-official-replies .reply-form textarea,
    .tmi-official-replies textarea.form-control {
        min-height: 100px !important;
        font-size: 16px !important;
        /* Prevents iOS zoom */
    }

    .tmi-official-replies .reply-form button,
    .tmi-official-replies .reply-form .btn {
        width: 100%;
        padding: 14px 24px !important;
    }

    .tmi-official-replies .replies-header h2,
    .tmi-official-replies .comments-title {
        font-size: 1.25rem !important;
    }

    .tmi-official-replies .reply-item,
    .tmi-official-replies .comment {
        padding: 16px !important;
    }
}

/* ===========================================
   RESPONSIVE - MOBILE (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {

    /* TMI Official Section - extra small */
    .tmi-official-section {
        padding: 16px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .tmi-posts-grid {
        gap: 16px;
    }

    .tmi-section-title h2 {
        font-size: 1.2rem;
    }

    .tmi-section-title .tmi-icon {
        font-size: 1.1rem;
    }

    .tmi-section-header {
        margin-bottom: 20px;
    }

    /* TMI Official Card - extra small */
    .post.card.tmi-official {
        border-width: 1.5px !important;
    }

    .post.card.tmi-official::before {
        height: 2px;
    }

    .post.card.tmi-official::after {
        font-size: 0.55rem;
        padding: 2px 25px;
        top: 8px;
        right: -32px;
    }

    .post.card.tmi-official .post-header h3 a {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .post.card.tmi-official .post-excerpt {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 2;
    }

    .post.card.tmi-official .post-meta {
        font-size: 0.75rem !important;
    }

    .post.card.tmi-official .author,
    .post.card.tmi-official .post-meta .author {
        font-size: 0.8rem !important;
    }

    .post.card.tmi-official .date,
    .post.card.tmi-official .post-meta .date {
        font-size: 0.75rem !important;
    }

    .post.card.tmi-official .post-footer {
        padding-top: 12px !important;
    }

    .post.card.tmi-official .post-footer .read-more {
        font-size: 0.8rem !important;
    }

    .post.card.tmi-official .post-footer .stat-item {
        font-size: 0.75rem !important;
    }

    .post.card.tmi-official .post-footer .stat-item svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* TMI Official badge - extra small */
    .badge-official {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
    }

    /* TMI Official Article page - extra small */
    .article-wrapper.tmi-official-post .article-hero::after {
        font-size: 0.5rem;
        padding: 3px 32px;
        top: 10px;
        right: -55px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .article-wrapper.tmi-official-post .article-content .post-message h1 {
        font-size: 1.35rem;
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message h2 {
        font-size: 1.2rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message h3 {
        font-size: 1.05rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .article-wrapper.tmi-official-post .article-content .post-message blockquote {
        padding: 12px 16px;
        margin: 16px 0;
        font-size: 0.95rem;
    }

    .article-wrapper.tmi-official-post .article-content .post-message pre {
        padding: 12px;
        font-size: 0.8rem;
        margin: 16px 0;
    }

    .article-wrapper.tmi-official-post .article-content .post-message ul,
    .article-wrapper.tmi-official-post .article-content .post-message ol {
        padding: 14px 14px 14px 32px;
        margin: 16px 0;
    }

    .article-wrapper.tmi-official-post .article-content .post-message li {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    /* TMI Ticker - extra small */
    .article-wrapper.tmi-official-post .article-content .post-message strong.ticker {
        padding: 1px 5px;
        font-size: 0.9em;
    }

    /* TMI Replies - extra small */
    .article-replies.tmi-official-replies,
    .tmi-official-post~.article-replies {
        padding: 20px 12px;
    }

    .tmi-official-replies .replies-header h2,
    .tmi-official-replies .comments-title {
        font-size: 1.1rem !important;
    }

    .tmi-official-replies .reply-item,
    .tmi-official-replies .comment {
        padding: 12px !important;
    }

    .tmi-official-replies .reply-author,
    .tmi-official-replies .comment-author {
        font-size: 0.85rem !important;
    }

    .tmi-official-replies .reply-date,
    .tmi-official-replies .comment-date {
        font-size: 0.7rem !important;
    }

    .tmi-official-replies .reply-content,
    .tmi-official-replies .comment-content {
        font-size: 0.9rem !important;
    }
}