:root {
    --primary-color: #3b82f6;
    --secondary-color: #e0e7ff;
    --text-color: #1f2937;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Main content */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.gallery p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.website-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.website-card:hover {
    transform: translateY(-5px);
}

.website-card a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.website-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-title {
    padding: 1rem;
}

.card-title h3 {
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-link {
    cursor: default;
}

/* Detail page */
.detail-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.detail-container h1 {
    font-size: 2rem;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

.detail-content {
    margin-top: 1.5rem;
}

.visit-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 9999px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.visit-btn:hover {
    background-color: #2563eb;
}

/* Similar section */
.similar-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.similar-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.not-found {
    text-align: center;
    padding: 5rem 0;
}

/* Styling for page_info content */
.detail-content ul,
.detail-content ol {
    list-style: none; /* Loại bỏ dấu chấm mặc định */
    padding: 0;
    margin: 1rem 0;
}

.detail-content ul li,
.detail-content ol li {
    background-color: var(--secondary-color); /* Màu nền nhẹ cho mỗi dòng */
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.detail-content ul li:hover,
.detail-content ol li:hover {
    background-color: #d2e4ff; /* Màu nền khi rê chuột */
}

/* Thêm biểu tượng trước mỗi dòng */
.detail-content ul li::before {
    content: "✔️"; /* Biểu tượng dấu tick */
    margin-right: 0.75rem;
}