:root { 
    --primary: #2563eb; 
    --dark: #0f172a; 
    --light-bg: #f1f5f9; 
    --white: #ffffff; 
    --border: #e2e8f0; 
    --success: #16a34a; 
    --cta: #ea580c; 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--light-bg); 
    color: #334155; 
    line-height: 1.8; 
    padding-bottom: 80px; 
}

header { 
    background: var(--white); 
    border-bottom: 1px solid var(--border); 
    padding: 16px 0; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    font-size: 1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand span { 
    color: var(--primary); 
}

.hero { 
    background: var(--white); 
    padding: 50px 0 30px; 
    border-bottom: 1px solid var(--border); 
    text-align: center; 
}

.badge { 
    display: inline-block; 
    background: #dbeafe; 
    color: #1e40af; 
    font-size: 0.8rem; 
    font-weight: 700; 
    padding: 6px 14px; 
    border-radius: 99px; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    letter-spacing: 0.5px; 
}

h1 { 
    font-size: 2.4rem; 
    color: var(--dark); 
    line-height: 1.2; 
    margin-bottom: 15px; 
    letter-spacing: -1px; 
    font-weight: 800; 
}

.featured-image { 
    width: 100%; 
    height: auto; 
    border-radius: 12px; 
    margin-top: 25px; 
    border: 1px solid var(--border); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.layout-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.content-box { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px -4px rgba(0,0,0,0.1);
}

.blog-card-image {
    width: 100%;
    height: auto; /* Allow image to define its own height */
    aspect-ratio: 16 / 9; /* Maintain a consistent aspect ratio */
    object-fit: contain; /* Show the full image without cropping */
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--border);
    background-color: #f8fafc; /* Add a light background for letterboxing */
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin: 0;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.pagination a {
    color: var(--primary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: #dbeafe;
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}


/* Typography for AI Content */
.dynamic-content h2 {
    font-size: 1.8rem;
    color: var(--dark); 
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
}

.dynamic-content h3 { 
    font-size: 1.4rem; 
    color: var(--dark); 
    margin-top: 30px; 
    margin-bottom: 15px; 
    font-weight: 600; 
}

.dynamic-content p { 
    margin-bottom: 20px; 
    font-size: 1.05rem; 
    color: #475569; 
}

.dynamic-content ul, .dynamic-content ol { 
    margin-bottom: 30px; 
    padding-left: 20px; 
    background: #f8fafc; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
}

.dynamic-content li { 
    margin-bottom: 12px; 
    position: relative; 
    list-style: none; 
    padding-left: 30px; 
    font-size: 1.05rem; 
}

.dynamic-content li::before { 
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    color: var(--success); 
    position: absolute; 
    left: 0; 
    top: 3px; 
    font-size: 1.1rem; 
}

.sidebar-card { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
    position: sticky; 
    top: 30px; 
    text-align: center; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); 
}

.price-label { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.price-tag { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--dark); 
    margin: 10px 0 20px; 
    line-height: 1; 
}

.btn-buy { 
    display: block; 
    width: 100%; 
    background: var(--cta); 
    color: white; 
    padding: 18px; 
    font-weight: 700; 
    border-radius: 10px; 
    text-decoration: none; 
    transition: 0.2s; 
    font-size: 1.1rem; 
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3); 
}

.btn-buy:hover { 
    background: #c2410c; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.4); 
}

.mobile-footer { 
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: var(--white); 
    padding: 15px 25px; 
    border-top: 1px solid var(--border); 
    z-index: 999; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05); 
}

@media (max-width: 900px) { 
    .layout-grid { 
        grid-template-columns: 1fr; 
    } 
    .sidebar-card { 
        display: none; 
    } 
    .mobile-footer { 
        display: flex; 
    } 
    h1 { 
        font-size: 1.8rem; 
    }
    .content-box { 
        padding: 25px; 
    }
}

footer {
   background: var(--dark);
   color: var(--white);
   padding: 40px 0;
   margin-top: 60px;
}

footer .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.footer-links a {
   color: var(--white);
   text-decoration: none;
   margin-left: 20px;
   font-size: 0.9rem;
   transition: color 0.2s;
}

.footer-links a:hover {
   color: var(--primary);
}