/*
Theme Name: TDPel Media Premium Full-Width
Author: Gemini AI
Version: 2.1
*/

/* 1. RESET & REFINED BASE */
body { 
    font-family: 'Inter', -apple-system, system-ui, sans-serif; 
    margin: 0; color: #334155; background: #fdfdfd; 
    line-height: 1.6; -webkit-font-smoothing: antialiased; 
}
.container { max-width: 1440px; margin: 0 auto; padding: 0 30px; }
a { color: inherit; text-decoration: none; transition: 0.2s ease; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* 2. REFINED HEADER */
header { 
    background: #fff; border-bottom: 1px solid #f1f5f9; 
    position: sticky; top: 0; z-index: 1000; padding: 12px 0; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.03); 
}
nav { display: flex; justify-content: space-between; align-items: center; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
nav a { color: #475569; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
nav a:hover { color: #007cba; }

/* 3. ARCHIVE & CATEGORY DESIGN (Finer Cards) */
.home-grid, .archive-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 25px; margin-top: 25px; 
}
.card { 
    background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; 
    overflow: hidden; transition: 0.3s; 
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-color: #007cba; }
.card img { border-radius: 0; height: 200px; object-fit: cover; }
.card-content { padding: 15px; }
.card-content h2, .card-content h3 { 
    font-size: 1.1rem; margin: 0; line-height: 1.3; font-weight: 800; color: #1e293b; 
}

/* 4. FULL-WIDTH ARTICLE PAGE FIX */
.article-container { 
    display: grid; grid-template-columns: 1fr 350px; /* Sidebar stays on right */
    gap: 40px; margin: 30px auto; 
}
.single-post { max-width: 100%; width: 100%; } /* Removed max-width box */

.breadcrumb { font-size: 0.75rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.article-title { 
    font-size: 2.2rem; /* Reduced from 2.8rem */
    line-height: 1.2; margin-bottom: 20px; color: #0f172a; font-weight: 900; 
}
.post-content { 
    font-size: 1.1rem; /* Reduced for better readability */
    color: #334155; line-height: 1.8; 
}
.featured-image img { width: 100%; border-radius: 12px; margin-bottom: 25px; }

/* 5. SIDEBAR WIDGETS */
.widget { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #f1f5f9; margin-bottom: 25px; }
.widget-title { 
    font-size: 0.95rem; font-weight: 800; text-transform: uppercase; 
    border-bottom: 2px solid #007cba; display: inline-block; margin-bottom: 15px; 
}

/* 6. PREMIUM FOOTER */
footer { background: #0f172a; color: #f8fafc; padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-column h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px; }
.footer-column p, .footer-column li { font-size: 0.85rem; color: #94a3b8; }
.footer-column a:hover { color: #fff; text-decoration: underline; }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tools-grid a { background: rgba(255,255,255,0.05); padding: 6px 10px; border-radius: 6px; font-size: 0.75rem; color: #cbd5e1; }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px; color: #64748b; font-size: 0.8rem; }

/* 7. RESPONSIVE */
@media (max-width: 1024px) {
    .article-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .article-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    nav ul { display: none; }
}

/* Pagination */
.pagination { margin: 40px 0; display: flex; justify-content: center; gap: 5px; }
.pagination .page-numbers { padding: 8px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; font-weight: 600; font-size: 0.9rem; }
.pagination .current { background: #007cba; color: #fff; border-color: #007cba; }

.hero-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 124, 186, 0.3);
}

.hero-card:hover img {
    opacity: 0.9 !important;
    transition: 0.5s ease;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #007cba;
    margin-bottom: 20px;
    display: block;
    border-left: 3px solid #007cba;
    padding-left: 10px;
}