/* ================================
   Base Styles
================================ */

body {
    font-family: sans-serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e9e9e9;
    color: #000000;
}

a {
    color: #ff0000;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
}

/* ================================
   Header & Navigation
================================ */

header {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
}

.site-name {
    font-size: 2em;
    color: #ffffff;
    text-decoration: none;
}

nav {
    margin-top: 10px;
}

.menu {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #ff0000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    display: inline-block;
    font-size: 1.2em;
    color: #ffffff;
    text-decoration: none;
}

.menu a:hover {
    text-decoration: underline;
}

/* ================================
   Pagination
================================ */

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f1f1f1;
    color: #000000;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination-link.active,
.pagination-link:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* ================================
   Footer
================================ */

footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.footer-menu li {
    display: inline;
    margin: 0 15px;
}

.footer-menu a {
    font-size: 0.9em;
    color: #ffffff;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* ================================
   Post Page Styles
================================ */

.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.single-post {
    font-size: 20px;
    margin-bottom: 20px;
}

.single-post h1 {
    font-size: 2rem;
    margin: 0;
    padding: 0;
}

.post-categories {
    font-size: 0.9rem;
    color: #000000;
    display: inline;
}

.post-categories a {
    color: #000000;
    text-decoration: none;
    margin-right: 10px;
    font-weight: bold;
}

.post-categories a:hover {
    text-decoration: underline;
}

.custom-caption {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    margin: 1em auto;
}

.caption-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    margin-top: 6px;
}

/* ================================
   Homepage Styles
================================ */

.home-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-banner {
    background: linear-gradient(135deg, #7f5af0, #2cb67d);
    color: white;
    padding: 0 20px;
    text-align: center;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    padding: 0 10px 40px;
}

.post-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    max-height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.post-title a {
    color: #000000;
    text-decoration: none;
}

.post-meta {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 10px;
    display: inline;
}

.post-meta-categories {
    margin-bottom: 10px;
}

/* ================================
   Responsive Styles
================================ */

@media (max-width: 768px) {
    body {
        line-height: 1.4;
    }

    a {
        font-size: 0.9em;
    }

    .site-name {
        font-size: 1em;
    }

    .menu {
        justify-content: flex-start;
    }

    .menu a {
        font-size: 1em;
    }

    .footer-menu li {
        margin: 5px 0;
    }

    .footer-menu a {
        font-size: 0.8em;
    }
}

/* Make table scrollable horizontally */
table {
  overflow-x: scroll;
  white-space: nowrap;
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Table Header */
table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}

/* Table Cells */
table th,
table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

/* Table Row Colors */
table tbody tr {
  border-bottom: 1px solid #ddd;
}


