a {
    text-decoration: none;
}

/* Custom styles to complement Bootstrap */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Adjustments for TinyMCE within Bootstrap */
.tox-tinymce {
    border-radius: .375rem !important; /* Match Bootstrap's border-radius */
}

/* Product List Styles */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}
.product-item h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}
.product-item h2 a {
    text-decoration: none;
    color: #333;
}
.product-item h2 a:hover {
    color: #007bff;
}
.product-item p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.product-item .view-detail {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}
.product-item .view-detail:hover {
    background-color: #0056b3;
}

/* Product Detail Styles */
.product-detail-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}
.product-detail-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}
.product-detail-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-description {
    margin-top: 20px;
    line-height: 1.6;
}
.product-description h3 {
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
.back-button:hover {
    background-color: #5a6268;
}

/* News List Styles */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}
.news-item h2 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}
.news-item h2 a {
    text-decoration: none;
    color: #333;
}
.news-item h2 a:hover {
    color: #007bff;
}
.news-item p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.news-item .news-date {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 10px;
}
.news-item .read-more {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}
.news-item .read-more:hover {
    background-color: #0056b3;
}

/* News Detail Styles */
.news-detail-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}
.news-detail-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}
.news-meta {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 20px;
}
.news-detail-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-content {
    margin-top: 20px;
    line-height: 1.8;
}