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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    gap: 35px;
    margin-bottom: 30px;
}

.content-wrapper .matchCard {
    border-radius: 8px;
}

/* Main Article - 75% */
.main-article {
    flex: 0 0 75%;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #666;
    font-size: 16px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-share {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
}

.share-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-twitter {
    background: #000;
}

.social-facebook {
    background: #1877F2;
}

.social-threads {
    background: #000;
}

.social-bluesky {
    background: #0085ff;
}

.social-youtube {
    background: #FF0000;
}

.content-wrapper .social-link {
    background: #666;
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 670px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 30px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.article-content {
    font-size: 19px;
    line-height: 1.8;
    color: #151515;
}

.article-content a.tinymce-related-article {
    color: inherit;
    text-decoration: none;
}

.article-content a.tinymce-related-article:hover {
    color: inherit;
    text-decoration: none;
}

.article-content img {
    border-radius: 8px;
}

.article-content p:not(blockquote > p),
.article-content ul:not(blockquote > ul),
.article-content ol:not(blockquote > ol),
.article-content div:not(.tinymce-related-label):not(.tinymce-related-title):not(.tinymce-related-content) {
    margin-bottom: 20px !important;
}

.article-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

.article-content a:not(.tinymce-related-article) {
    color: #0000FF !important;
}

.article-content blockquote {
    font-size: inherit;
}

/* Sidebar - 25% */
.sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 30px);
    align-self: flex-start;
    row-gap: 10px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-section a:hover {
    text-decoration: none !important;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Search Bar */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #1976d2;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.category-item:hover {
    background: #f0f0f0;
    color: #1976d2;
}

.category-name {
    font-size: 16px;
    font-weight: 500;
}

.category-count {
    font-size: 14px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.category-item:hover .category-count {
    background: #e3f2fd;
    color: #1976d2;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Social Media Follow */
.social-follow {
    display: flex;
    gap: 12px;
    justify-content: left;
    align-items: center;
}

.social-follow-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    color: white;
}

.social-follow-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-follow-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Latest Articles */
.trending-article {
    cursor: pointer;
    transition: background 0.2s;
    padding: 12px;
    margin: 0 -12px;
    border-radius: 6px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
    color: inherit;
}

.trending-article:last-child {
    border-bottom: none;
}

.trending-article:hover {
    background: #f8f9fa;
}

.trending-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.4;
    text-decoration: none;
}

.trending-article:hover .trending-title {
    color: #1976d2;
}

.trending-meta {
    font-size: 13px;
    color: #999;
}

/* Related Articles Section */
.related-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

.related-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-grid img {
    border-radius: 8px;
}

.related-card {
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.related-content {

}

.related-card-title {
    font-size: 23px !important;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.3;
}

.related-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.related-card-meta {
    font-size: 14px;
    color: #999;
}

.related-card-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.related-tag {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.photoCredit {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 12px;
    padding: 6px 8px;
}

.image-description {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* keeps it proportional */
    height: auto;
    display: block;
    margin: 0 auto; /* centers it */
}

.video-container {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 ratio */
    height: 0 !important;
    overflow: hidden !important;
}

.video-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 767px) {
    .article-content {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-article,
    .sidebar {
        flex: 1 1 100%;
    }

    .article-title {
        font-weight: 900;
        font-size: 30px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 1199px) {
    .content-wrapper,
    .related-section {
        padding: 0 10px;
    }
}

/* TinyMCE Related Article Box Styles */
.tinymce-related-article {
    display: flex;
    width: 70%;
    row-gap: 10px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #1976d2;
    padding: 20px;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tinymce-related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tinymce-related-image {
    object-fit: cover;
    object-position: center;
    width: 16%;
}

.tinymce-related-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 10px;
    margin-left: 18px;
}

.tinymce-related-label {
    font-size: 12px;
    color: #1976d2;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tinymce-related-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0 !important;
    line-height: 1.3;
}

.tinymce-related-title a {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.2s;
}

.tinymce-related-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .tinymce-related-article {
        padding: 16px;
        margin: 20px 0;
        width: 100%;
    }

    .tinymce-related-image {
        width: 25%;
    }
    
    .tinymce-related-label {
        font-size: 11px;
    }
    
    .tinymce-related-title {
        font-size: 18px;
    }
    
    .tinymce-related-excerpt {
        font-size: 15px;
    }
}