/* General Styling */
body {
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Header and Navigation */
header {
    background-color: #87CEEB; /* Sky Blue */
    color: white;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 4px solid #4682B4; /* Steel Blue */
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

nav {
    background-color: #4682B4;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #5a9bd3;
}

/* Main Content */
main {
    padding: 2rem 1.5rem;
}

h2 {
    color: #4682B4;
    border-bottom: 2px solid #87CEEB;
    padding-bottom: 10px;
}

h3 {
    color: #555;
}

/* Page-specific Styles */

/* Home Page - Verses */
.verse-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.verse {
    background-color: #f0f8ff; /* AliceBlue */
    border-left: 5px solid #87CEEB;
    padding: 15px;
    margin: 0 0 15px 0;
    border-radius: 0 5px 5px 0;
}
.verse cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #4682B4;
    text-align: right;
}

/* Angel Page - Table */
.table-container {
    overflow-x: auto; /* Makes table scrollable on small screens */
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
th {
    background-color: #87CEEB;
    color: #333;
}
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Product Page - E-book */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 300px 1fr;
    }
}

.product-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-details .price {
    margin: 20px 0;
}

.product-details .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 10px;
}

.product-details .discount-price {
    color: #d9534f;
    font-size: 2rem;
    font-weight: bold;
}

.buy-button {
    display: inline-block;
    background-color: #5cb85c;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #4cae4c;
}

.book-info {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}
.book-info p {
    margin: 5px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #660600;
    color: #ccc;
}