/* ==========================================================================
   LawRead Shared List Page Stylesheet
   For Category, News, Internship, Notes, and Listing layouts
   ========================================================================== */

/* ── Footer Isolation & Resets ───────────────────────────────── */
#wrapper { background: transparent !important; }
#main, #content { margin-bottom: 0 !important; padding-bottom: 0 !important; }

.container    { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 960px;  margin: 0 auto; padding: 0 20px; }

/* ── Breaking Bar ────────────────────────────────────────────── */
.breaking-bar {
    background: var(--red); color: #fff; font-size: .76rem; font-weight: 700;
    display: flex; align-items: center; overflow: hidden; height: 34px;
}
.breaking-label {
    background: var(--navy-dark); padding: 0 14px; height: 100%;
    display: flex; align-items: center; white-space: nowrap;
    letter-spacing: .08em; text-transform: uppercase; font-size: .7rem;
    gap: 6px; flex-shrink: 0;
}
.breaking-ticker { overflow: hidden; flex: 1; }
.breaking-ticker-inner {
    display: flex; animation: ticker 45s linear infinite;
    white-space: nowrap; gap: 60px; padding-left: 20px;
}
.breaking-ticker-inner a { color: #fff; }
.breaking-ticker-inner a:hover { opacity: .8; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Nav Band ────────────────────────────────────────────────── */
.nav-band { background: var(--navy); border-bottom: 3px solid var(--red); }
.nav-band-links { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-band-links::-webkit-scrollbar { display: none; }
.nav-band-link {
    padding: 10px 16px; color: rgba(255,255,255,.78); font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.1); transition: color .12s, background .12s;
    display: flex; align-items: center; gap: 6px;
}
.nav-band-link:hover, .nav-band-link.active {
    color: #fff; background: rgba(255,255,255,.12);
}

/* ── Breadcrumb & Page Head ──────────────────────────────────── */
.page-head-band {
    background: var(--bg-white); border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.breadcrumb {
    font-size: .78rem; color: var(--text-muted); margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.page-title-main {
    font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900;
    color: var(--navy);
}

/* ── Layout & Columns ────────────────────────────────────────── */
.page-body,
.page-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 30px;
    padding: 24px 0 40px;
    align-items: start;
}
.main-col,
.content-col {
    min-width: 0;
}
.side-col {
    min-width: 0;
    width: 310px;
}

/* ── Post List Items ─────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-list-item {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; display: grid;
    grid-template-columns: 200px 1fr; gap: 16px;
    transition: box-shadow .15s, transform .15s;
}
.post-list-item:hover {
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.pli-img { width: 200px; height: 140px; object-fit: cover; }
.pli-img-placeholder {
    width: 200px; height: 140px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex; align-items: center; justify-content: center;
}
.pli-body {
    padding: 14px 16px 14px 0; display: flex; flex-direction: column;
}
.pli-title {
    font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
    color: var(--navy); line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-list-item:hover .pli-title { color: var(--red); }
.pli-excerpt {
    font-size: .83rem; color: var(--text-mid); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 8px;
}
.pli-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; font-size: .72rem; color: var(--text-muted);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination-wrap {
    margin-top: 24px; display: flex; justify-content: center;
}
.pagination-wrap .pagination {
    display: flex; gap: 6px; list-style: none;
}
.pagination-wrap .page-item .page-link {
    padding: 7px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700;
    color: var(--navy); background: #fff;
}
.pagination-wrap .page-item.active .page-link {
    background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .side-col { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 768px) {
    .post-list-item { grid-template-columns: 140px 1fr; }
    .pli-img, .pli-img-placeholder { width: 140px; height: 120px; }
}
@media (max-width: 540px) {
    .post-list-item { grid-template-columns: 1fr; }
    .pli-img, .pli-img-placeholder { width: 100%; height: 180px; }
    .pli-body { padding: 14px; }
    .side-col { grid-template-columns: 1fr; }
}

/* ── Sidebar Widgets & Quick Links ───────────────────────────── */
aside .widget,
.side-col .widget {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    margin-bottom: 22px;
}
aside .widget-header,
.side-col .widget-header {
    background: var(--navy, #1e2a4a);
    color: #ffffff;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}
aside .widget-body,
.side-col .widget-body {
    padding: 0;
}
.quick-link-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy, #1e2a4a) !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.quick-link-item:last-child {
    border-bottom: none;
}
.quick-link-item:hover {
    background: #f8fafc;
    color: var(--red, #b91c1c) !important;
}
.quick-link-item svg {
    flex-shrink: 0;
    opacity: 0.75;
}
.quick-link-arrow {
    margin-left: auto;
    color: var(--text-muted, #94a3b8);
    font-size: 1rem;
    line-height: 1;
}

/* ── Newsletter Band ─────────────────────────────────────────── */
.newsletter-band {
    background: var(--navy-dark, #111a2f);
    padding: 34px 0;
    margin-top: 40px;
    margin-bottom: 0 !important;
    width: 100%;
}
.newsletter-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
}
.newsletter-text h3 {
    font-family: var(--font-serif, serif);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 4px 0;
}
.newsletter-text p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem;
    margin: 0;
}
.newsletter-form {
    display: flex;
    flex: 1;
    max-width: 440px;
    height: 46px;
    margin: 0;
}
.newsletter-form input {
    flex: 1;
    height: 46px !important;
    padding: 0 16px !important;
    border: none !important;
    font-size: 0.88rem !important;
    border-radius: 6px 0 0 6px !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
}
.newsletter-form button {
    background: var(--red, #b91c1c) !important;
    color: #ffffff !important;
    border: none !important;
    height: 46px !important;
    padding: 0 24px !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 0 6px 6px 0 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}
.newsletter-form button:hover {
    background: #991b1b !important;
}
@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
}
