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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.left-column {
    flex: 2;
    width: 100%;
    animation: slideInLeft 0.5s ease-out;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    overflow: hidden; /* Remove scrollbars, hide overflow */
    height: auto; /* Allow column to grow with content */
}

.right-column {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInRight 0.5s ease-out;
}

.content {
    width: 100%;
    overflow-wrap: break-word; /* Prevent horizontal overflow */
}

.content img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Limit image height */
    min-height: 200px; /* Prevent overly small images */
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.content img:hover {
    transform: scale(1.05);
}

.date {
    color: #bbb;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #fff;
    overflow-wrap: break-word; /* Handle long titles */
    word-break: break-word;
}

.content p {
    margin-bottom: 15px;
    text-align: justify;
    color: #fff;
}

.ad, .twitter-widget {
    width: 100%;
    max-width: 300px;
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.ad:hover, .twitter-widget:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.twitter-widget {
    background-color: #1DA1F2;
    color: white;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-column, .right-column {
        width: 100%;
    }

    .ad, .twitter-widget {
        width: 100%;
        max-width: 300px;
    }

    .content img {
        max-height: 300px;
        min-height: 150px; /* Adjusted for mobile */
    }

    .title {
        font-size: 1.5em; /* Smaller title on mobile */
    }
}