/* --- Wrapper --- */
.octcat-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* --- Search --- */
.octcat-search {
    text-align: center;
    margin-bottom: 40px;
}

.octcat-search input[type="text"] {
    padding: 10px 15px;
    width: 600px;
    max-width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.octcat-search button {
    padding: 10px 20px;
    border: none;
    background: #0073e6;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.octcat-search button:hover {
    background: #005bb5;
}

/* --- Main Content --- */
.octcat-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.octcat-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.octcat-post-card {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.octcat-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.octcat-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.octcat-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.octcat-post-title {
    line-height: 16px;
    margin-bottom: 20px;
}

.octcat-post-title a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.octcat-post-title a:hover {
    color: #0073e6;
}

.octcat-post-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.octcat-read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.octcat-read-more-btn:hover {
    background: #005bb5;
}

/* --- Load More Button --- */
#octcat-load-more-btn {
    display: block;
    margin: 40px auto 0;
    padding: 12px 30px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

#octcat-load-more-btn:hover {
    background: #005bb5;
}

/* --- Sidebar --- */
.octcat-sidebar {
    flex: 1 1 25%;
    min-width: 200px;
}

.octcat-sidebar h3 {
    margin-bottom: 15px;
}

.octcat-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.octcat-sidebar ul li {
    margin-bottom: 10px;
}

.octcat-sidebar ul li a {
    color: #0073e6;
    text-decoration: none;
}

.octcat-sidebar ul li a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media(max-width:1024px) {
    .octcat-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .octcat-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .octcat-wrapper {
        flex-direction: column;
    }
}
