:root {
    --primary: #000000;
    --secondary: #8B0000;
    --accent: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}


:root {
    --primary: #000000;
    --secondary: #8B0000;
    --accent: #FFD700;
}

/* ... (all your existing CSS remains the same) ... */

/* Products Section */
.products {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-rating i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.product-rating span {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Enhanced product description with better 3-line clamping */
.product-desc {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    
    /* Limit to 3 lines with ellipsis - Cross-browser support */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Fallback for non-webkit browsers */
    max-height: 4.2em; /* 3 lines * 1.4 line-height */
    min-height: 4.2em;
    
    /* Ensure consistent spacing */
    flex-grow: 1;
}

.product-read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.3s;
}

.product-read-more:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.add-to-cart {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--secondary);
}

.view-details {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.view-details:hover {
    color: var(--primary);
}

/* ... (rest of your CSS remains the same) ... */

/* New styles for product type */
.product-type {
    display: inline-block;
    background: var(--accent);
    color: black;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ... (rest of your CSS remains the same) ... */
/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary);
}

.header-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-icons a {
    color: var(--primary);
    transition: color 0.3s;
}

.header-icons a:hover {
    color: var(--secondary);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Search Styles */
.search-container {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
    transition: width 0.3s;
}

.search-input:focus {
    width: 250px;
    outline: none;
    border-color: var(--accent);
}

.search-btn {
    background: var(--secondary);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.3s;
}

.mobile-nav-link:hover {
    background: #f5f5f5;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1601924992341-53d0561a4eb4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: black;
}

.btn-accent:hover {
    background-color: #e6c300;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.feature-icon {
    background-color: var(--primary);
    color: var(--accent);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Products Section */
.products {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-rating i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.product-rating span {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.product-desc {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    /* Limit to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 4.2em; /* 3 lines * 1.4 line-height */
    flex-grow: 1;
}

.product-read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.3s;
}

.product-read-more:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.add-to-cart {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--secondary);
}

.view-details {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.view-details:hover {
    color: var(--primary);
}

/* Call to Action */
.cta {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.2);
}

.testimonial-rating {
    display: flex;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--accent);
}

.testimonial-text {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: 500;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #718096;
    font-size: 0.875rem;
}

/* Newsletter */
.newsletter {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: var(--accent);
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #e6c300;
}

.newsletter small {
    display: block;
    margin-top: 1rem;
    color: #a0aec0;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-about {
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #a0aec0;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 24rem;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-item-quantity button {
    background-color: #e2e8f0;
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 0.5rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-buttons button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn {
    background-color: var(--secondary);
    color: white;
}

.checkout-btn:hover {
    background-color: var(--primary);
}

.empty-cart-btn {
    background-color: #e2e8f0;
    color: #4a5568;
}

.empty-cart-btn:hover {
    background-color: #cbd5e0;
}

/* Forms */
.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Tables */
.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.orders-table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: var(--primary);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-table tr:hover {
    background-color: #f7fafc;
}

.status-pending {
    color: #d69e2e;
    font-weight: 500;
}

.status-completed {
    color: #38a169;
    font-weight: 500;
}

.status-cancelled {
    color: #e53e3e;
    font-weight: 500;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .feature-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 180px;
    }
}

/* New styles for product type */
.product-type {
    display: inline-block;
    background: var(--accent);
    color: black;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ---------------------------
   Blog: LEFT fixed-size thumbnail (400x350), RIGHT details
   --------------------------- */

.blog-posts {
    margin-top: 1.5rem;
}

/* card */
.blog-post {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

/* row ensures left and right align; left is fixed-size box */
.blog-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* LEFT thumbnail container fixed size 400x350 */
.blog-left {
    flex: 0 0 400px;      /* fixed width */
    max-width: 400px;
    width: 400px;
    height: 350px;        /* fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eef2f6;
}

/* inner link becomes a centered flex container so images shrink to fit */
.blog-left .thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* image will shrink (not crop) to fit inside 400x350 */
.blog-left .thumb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain; /* safe fallback */
}

/* placeholder when no image */
.no-thumb .placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(139,0,0,0.03));
    border-radius: 6px;
}

.placeholder-text {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* right column (content) */
.blog-right {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Title and meta */
.blog-title {
    font-size: 1.35rem;
    margin: 0;
    line-height: 1.25;
}

.blog-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

.blog-title a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.blog-meta {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* summary */
.blog-summary {
    background: #f8fafc;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--accent);
    margin: 0.25rem 0;
    border-radius: 6px;
    font-style: italic;
    color: #374151;
}

/* excerpt + read more */
.blog-excerpt {
    margin-top: 0.25rem;
    color: #475569;
    line-height: 1.6;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.blog-excerpt p {
    margin: 0;
    flex: 1 1 65%;
    min-width: 0;
}

.btn-small.read-more {
    display: inline-block;
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(139,0,0,0.12);
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.btn-small.read-more:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive behavior:
   - Reduce thumbnail size on medium screens
   - Stack on small screens (thumbnail becomes full width above details)
*/
@media (max-width: 1100px) {
    .blog-left { flex: 0 0 320px; max-width: 320px; width: 320px; height: 280px; }
    .blog-left .thumb-img { max-width: 100%; max-height: 100%; }
}

@media (max-width: 820px) {
    .blog-row { display: block; }
    .blog-left { width: 100%; max-width: 100%; height: auto; margin-bottom: 0.9rem; }
    .blog-left .thumb-link { padding: 12px 0; }
    .blog-left .thumb-img { width: auto; height: auto; max-width: 90%; max-height: 300px; }
    .blog-excerpt p { flex-basis: 100%; }
    .btn-small.read-more { margin-top: 0.6rem; margin-left: 0; }
}