/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.header {
    background-color: #c00;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 4px solid #900;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-menu {
    display: flex;
    gap: 15px;
    font-weight: bold;
    font-size: 14px;
}

.header-menu span {
    cursor: pointer;
}

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

.main-content {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar {
    flex: 1;
}

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

.category {
    color: #c00;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
}

.title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #111;
}

.subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    font-weight: normal;
}

.meta {
    font-size: 13px;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.article-content p {
    font-size: 17px;
    margin-bottom: 20px;
    color: #222;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px auto;
    display: block;
}

.image-caption {
    font-size: 13px;
    color: #777;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: center;
}

.highlight-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    font-weight: bold;
    color: #555;
}

.cta-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    background: #28a745;
    color: #fff;
    text-align: center;
    padding: 18px 20px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: #218838;
    transform: scale(1.02);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #c00;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.trending-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.trending-item h4 {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
}

.comments-section {
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.comments-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: #ccc;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    background: #f1f2f6;
    padding: 12px 15px;
    border-radius: 12px;
    flex: 1;
}

.comment-name {
    font-weight: 600;
    color: #385898;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 14px;
    color: #1c1e21;
}

.comment-meta {
    font-size: 12px;
    color: #90949c;
    margin-top: 5px;
    padding-left: 10px;
}

.comment-meta a {
    color: #385898;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .header-menu {
        display: none;
    }
    .title {
        font-size: 26px;
    }
}
