/* 연구자료 현황판 CSS */
:root {
    --kaf-navy:    #1A2B4A;
    --kaf-blue:    #1E4080;
    --kaf-gold:    #C8973A;
    --kaf-gold-light: #E5B96A;
    --bg-page:     #F4F6F9;
    --bg-white:    #FFFFFF;
    --bg-section:  #EEF1F6;
    --text-dark:   #1A2B4A;
    --text-mid:    #4A5568;
    --text-light:  #718096;
    --text-xlight: #A0AEC0;
    --border:      #DDE3EC;
    --border-dark: #C5CDD9;
    --shadow-sm:   0 1px 4px rgba(26,43,74,0.08);
    --shadow-md:   0 4px 16px rgba(26,43,74,0.10);
}

/* Dashboard Section (연구자료 현황판) */
.dashboard {
    background-color: #f0f5f2;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    background-image: url("/images/reportStatus/rpt_banner_01.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: contain;
}
.dashboard h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.dashboard p {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
    word-break: keep-all;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.dashboard .stats-grid {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.dashboard .stat-box {
    flex: 1;
    background: #fff;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.dashboard .stat-box .number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #2b9938;
    margin-bottom: 5px;
}
.dashboard .stat-box .label {
    font-size: 12px;
    color: #555;
}

/* Section Header */
.sh { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--kaf-blue); }
.sh.dashboard-sh { margin-bottom: 0; }
.sh.dashboard-sh + .two-panel { margin-top: -15px; }
.sh-left h2 { font-size: 16.5px; font-weight: 700; color: var(--kaf-blue); font-family: 'Noto Serif KR', serif; }
.sh-left h2.featured {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--kaf-blue);
    -webkit-text-fill-color: var(--kaf-blue);
}

/* Publication Grid */
.dashboard-pub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.dashboard-pub-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 7px;
    padding: 1.2rem; cursor: pointer; transition: all .22s; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .65rem;
    text-decoration: none;
}
.dashboard-pub-card:hover { border-color: var(--kaf-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dashboard-pc-top { display: flex; align-items: center; justify-content: space-between; }

/* Badges */
.dashboard-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 4px; }
.dashboard-b-weekly   { background: #FFF3CD; color: #7A5700; }
.dashboard-b-briefing { background: #DBEAFE; color: #1A4080; }
.dashboard-b-guide    { background: #FFE4E1; color: #9B2918; }
.dashboard-b-stories  { background: #D1FAE5; color: #166534; }
.dashboard-b-dialogue { background: #FEE2CC; color: #8B4200; }
.dashboard-b-corr     { background: #CCFBF1; color: #0D5B4F; }
.dashboard-b-essay    { background: #EDE9FE; color: #5521B5; }
.dashboard-b-other    { background: #F1F5F9; color: #475569; }

.dashboard-pc-count { font-size: 1.3rem; font-weight: 700; color: var(--text-xlight); font-family: 'Noto Serif KR', serif; line-height: 1; }
.dashboard-pc-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dashboard-pc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: .6rem; }
.dashboard-pc-latest { font-size: 11.5px; color: var(--text-light); }
.dashboard-pc-arrow { font-size: 14px; color: var(--text-xlight); transition: all .2s; }
.dashboard-pub-card:hover .dashboard-pc-arrow { color: var(--kaf-blue); transform: translateX(3px); }

/* Two Panel Layout */
.dashboard-two-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.25rem; align-items: start; }
.dashboard-panel-box { background: var(--bg-white); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow-sm); overflow: hidden; }
.dashboard-panel-head { padding: 0.8rem 1.2rem; background: var(--kaf-navy); display: flex; align-items: center; justify-content: space-between; }
.dashboard-panel-head h3 { font-size: 13.5px; font-weight: 700; color: #fff; margin: 0; }
.dashboard-panel-head a  { font-size: 11px; color: rgba(255,255,255,0.6); text-decoration: none; }
.dashboard-panel-head a:hover { color: #fff; }

/* List Item */
.dashboard-li { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; text-decoration: none; }
.dashboard-li:last-child { border-bottom: none; }
.dashboard-li:hover { background: var(--bg-page); }
.dashboard-li-num { font-family: 'Noto Serif KR', serif; font-size: 1.3rem; font-weight: 700; min-width: 26px; text-align: center; line-height: 1; padding-top: 2px; color: var(--text-xlight); }
.dashboard-li-num.n1 { color: var(--kaf-gold); }
.dashboard-li-num.n2 { color: #9CA3AF; }
.dashboard-li-num.n3 { color: #B07030; }
.dashboard-li-body { flex: 1; }
.dashboard-li-title { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; }
.dashboard-li:hover .dashboard-li-title { color: var(--kaf-blue); }
.dashboard-li-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-light); }
.dashboard-new-tag { background: var(--kaf-blue); color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }

/* Toggle Button */
.dashboard-li.hidden { display: none; }
.dashboard-panel-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 0.65rem 1.2rem; border-top: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--kaf-blue);
    cursor: pointer; background: var(--bg-page);
    transition: background 0.15s; user-select: none;
}
.dashboard-panel-toggle:hover { background: var(--bg-section); }
.dashboard-panel-toggle svg { transition: transform 0.25s; }
.dashboard-panel-toggle.open svg { transform: rotate(180deg); }

/* ============================================
   New Design - Publication Grid & Panels
   ============================================ */

/* Publication Grid - 5 Columns */
.pub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.pub-grid.five-col {
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
}

/* Publication Card */
.pub-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px;
    cursor: pointer; transition: all .25s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 2px 8px rgba(26,43,74,0.06);
    display: flex; flex-direction: column; overflow: hidden;
    text-decoration: none;
}
.pub-card:hover {
    box-shadow: 0 10px 32px rgba(26,43,74,0.13);
    transform: translateY(-3px);
}

/* Card Header */
.pc-head {
    padding: 0 16px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
    overflow: hidden;
}
.pc-head-title {
    font-size: 13px; font-weight: 700;
    color: var(--text-dark); line-height: 1.35;
    letter-spacing: -0.2px;
    word-break: keep-all;
    flex: 1; min-width: 0;
}
.pc-head-count {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px; font-weight: 700;
    color: rgba(26,43,74,0.2);
    line-height: 1; flex-shrink: 0; margin-left: 10px;
}

/* Card Header Colors */
.pc-head.weekly   { background: #FFF8E6; }
.pc-head.briefing { background: #EBF3FF; }
.pc-head.guide    { background: #FFF0EE; }
.pc-head.stories  { background: #EDFAF4; }
.pc-head.dialogue { background: #FFF5EB; }
.pc-head.other    { background: #F1F5F9; }

/* Card Thumbnail */
.pc-thumb {
    margin: 0;
    overflow: hidden;
    height: 130px;
    flex-shrink: 0;
}
.pc-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .4s ease;
}
.pub-card:hover .pc-thumb img { transform: scale(1.05); }

/* Card Body */
.pc-body {
    padding: 14px 16px 15px; flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.pc-desc {
    font-size: 12.5px; color: var(--text-mid); line-height: 1.72; flex: 1;
}
.pc-foot {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border); padding-top: .65rem;
}
.pc-latest { font-size: 11.5px; color: var(--text-light); font-weight: 500; }
.pc-arrow-btn {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-section); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-light);
    transition: all .22s; flex-shrink: 0;
}
.pub-card:hover .pc-arrow-btn {
    background: var(--kaf-blue); border-color: var(--kaf-blue);
    color: #fff; transform: translateX(2px);
}

/* Two Panel Layout */
.two-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.25rem; align-items: start; }
.panel-box { background: var(--bg-white); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { padding: 0.8rem 1.2rem; background: var(--kaf-navy); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { font-size: 13.5px; font-weight: 700; color: #fff; margin: 0; }
.panel-head a  { font-size: 11px; color: rgba(255,255,255,0.6); text-decoration: none; }
.panel-head a:hover { color: #fff; }

/* List Item */
.li { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; text-decoration: none; min-height: 72px; box-sizing: border-box; }
.li:last-child { border-bottom: none; }
.li:hover { background: var(--bg-page); }
.li-num { font-family: 'Noto Serif KR', serif; font-size: 1.3rem; font-weight: 700; min-width: 26px; text-align: center; line-height: 1; padding-top: 2px; color: var(--text-xlight); flex-shrink: 0; }
.li-num.n1 { color: var(--kaf-gold); }
.li-num.n2 { color: #9CA3AF; }
.li-num.n3 { color: #B07030; }
.li-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.li-title { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.li:hover .li-title { color: var(--kaf-blue); }
.li-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-light); flex-wrap: wrap; }
.new-tag { background: var(--kaf-blue); color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }

/* Panel Toggle */
.li.hidden { display: none; }
.panel-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 0.65rem 1.2rem; border-top: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--kaf-blue);
    cursor: pointer; background: var(--bg-page);
    transition: background 0.15s; user-select: none;
}
.panel-toggle:hover { background: var(--bg-section); }
.panel-toggle svg { transition: transform 0.25s; }
.panel-toggle.open svg { transform: rotate(180deg); }

/* Badges */
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 4px; }
.b-weekly   { background: #FFF3CD; color: #7A5700; }
.b-briefing { background: #DBEAFE; color: #1A4080; }
.b-guide    { background: #FFE4E1; color: #9B2918; }
.b-stories  { background: #D1FAE5; color: #166534; }
.b-dialogue { background: #FEE2CC; color: #8B4200; }
.b-corr     { background: #CCFBF1; color: #0D5B4F; }
.b-essay    { background: #EDE9FE; color: #5521B5; }
.b-other    { background: #F1F5F9; color: #475569; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
    .dashboard-pub-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-two-panel { grid-template-columns: 1fr; }
    .pub-grid { grid-template-columns: repeat(3, 1fr); }
    .pub-grid.five-col { grid-template-columns: repeat(3, 1fr); }
    .two-panel { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .dashboard-pub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .pub-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-grid.five-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .dashboard-pub-grid { grid-template-columns: 1fr; }
    .dashboard-hero { padding: 1.5rem 1rem; }
    .dashboard-hero-title { font-size: 1.6rem; }
    .dashboard-hero-stats { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .pub-grid, .pub-grid.five-col { grid-template-columns: 1fr; }
}

/* ============================================
   New Dashboard Design - Cards Section
   ============================================ */

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}
.stat-box {
    flex: 1;
    max-width: 150px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.stat-box .number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #2b9938;
    margin-bottom: 5px;
}
.stat-box .label {
    font-size: 13px;
    color: #555;
}

/* 4 Cards Grid Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.guide-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: border-color 0.2s;
    background: #fff;
    position: relative;
    height: 390px;
}
.guide-card:hover {
    border-color: #999;
}
.guide-card.card-green:hover { border-color: #319e42; }
.guide-card.card-blue:hover { border-color: #2c5ba6; }
.guide-card.card-orange:hover { border-color: #c48227; }
.guide-card.card-purple:hover { border-color: #8e3e96; }

/* Card Links Hover - 각 카드 색상에 맞게 */
.guide-card.card-green .single-link:hover,
.guide-card.card-green .dropdown-btn:hover { border-color: #319e42; color: #319e42; }
.guide-card.card-blue .single-link:hover,
.guide-card.card-blue .dropdown-btn:hover { border-color: #2c5ba6; color: #2c5ba6; }
.guide-card.card-orange .single-link:hover,
.guide-card.card-orange .dropdown-btn:hover { border-color: #c48227; color: #c48227; }
.guide-card.card-purple .single-link:hover,
.guide-card.card-purple .dropdown-btn:hover { border-color: #8e3e96; color: #8e3e96; }

/* Dropdown Active 상태도 카드 색상에 맞게 */
.guide-card.card-green .dropdown-wrap.active .dropdown-btn { border-color: #319e42; }
.guide-card.card-blue .dropdown-wrap.active .dropdown-btn { border-color: #2c5ba6; }
.guide-card.card-orange .dropdown-wrap.active .dropdown-btn { border-color: #c48227; }
.guide-card.card-purple .dropdown-wrap.active .dropdown-btn { border-color: #8e3e96; }

.guide-card.card-green .dropdown-menu { border-color: #319e42; }
.guide-card.card-blue .dropdown-menu { border-color: #2c5ba6; }
.guide-card.card-orange .dropdown-menu { border-color: #c48227; }
.guide-card.card-purple .dropdown-menu { border-color: #8e3e96; }
.guide-card-top {
    padding: 20px 15px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.guide-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.guide-card-num {
    font-size: 18px;
    font-weight: 700;
    color: #ccc;
    font-family: 'Noto Serif KR', serif;
}
.guide-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 7px;
    color: #fff;
    font-weight: 600;
}
.bg-green { background-color: #319e42; }
.bg-gray { background-color: #999; }
.bg-blue { background-color: #4c7ce6; }
.bg-orange { background-color: #e6a250; }
.bg-purple { background-color: #b560bd; }

.guide-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: keep-all;
    font-weight: 700;
}
.tc-green { color: #319e42; }
.tc-blue { color: #2c5ba6; }
.tc-orange { color: #c48227; }
.tc-purple { color: #8e3e96; }

.guide-card p {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 20px;
    line-height: 1.6;
}
.guide-card-img-placeholder {
    flex-grow: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.guide-card-img-placeholder img {
    width: 100%;
    height: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Card Links Area */
.guide-card-links {
    padding: 0 15px 15px 15px;
    position: relative;
}
.single-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}
.single-link:hover {
    border-color: #333;
    color: #000;
    font-weight: 600;
}

/* Dropdown Wrapper */
.dropdown-wrap {
    position: relative;
}
.dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}
.dropdown-btn:hover {
    border-color: #333;
    color: #000;
    font-weight: 600;
}
.dropdown-btn .arrow-icon {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}
.text-cut {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.single-link .arrow-icon {
    flex-shrink: 0;
    margin-left: 8px;
    color: #999;
    font-size: 10px;
}
.dropdown-wrap.active .dropdown-btn .arrow-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu (Drop-up style) */
.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 5px;
    background-color: #fff;
    border: 1px solid #e6a250;
    border-radius: 4px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    z-index: 10;
    flex-direction: column;
    overflow: hidden;
}
.dropdown-wrap.active .dropdown-menu {
    display: flex;
    animation: slideUp 0.2s ease-out forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    text-decoration: none;
}
.dropdown-menu a:last-child {
    border-bottom: none;
}
.dropdown-menu a:hover {
    color: #000;
    font-weight: 600;
    background-color: #fcfcfc;
}
.dropdown-menu a .arrow-icon {
    color: #999;
}

/* Popular Section - Card Style */
.popular-section {
    margin-bottom: 40px;
}
.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}
.popular-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.popular-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.popular-title h3::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("/images/reportStatus/circle-star.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.popular-title p {
    font-size: 13px;
    color: #666;
}
.btn-view-all {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-view-all:hover {
    color: #000;
}

/* Popular List - Horizontal Scroll */
.popular-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.popular-list::-webkit-scrollbar {
    display: none;
}
.popular-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 210px;
    scroll-snap-align: start;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 13px;
    background-color: #fff;
    transition: border-color 0.2s;
    text-decoration: none;
}
.popular-item:hover {
    border-color: #999;
}
.popular-item .num {
    font-weight: 700;
    font-size: 16px;
    color: #111;
    margin-bottom: 15px;
}
.popular-item .category {
    font-size: 14px;
    color: #111;
    font-weight: 700;
    margin-bottom: 15px;
    word-break: keep-all;
}
.popular-item .doc-title {
    font-size: 13px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.4;
    flex-grow: 1;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.popular-item .meta {
    font-size: 12px;
    color: #888;
}
.popular-item .meta div {
    margin-bottom: 5px;
}
.popular-item .meta div:last-child {
    margin-bottom: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    font-size: 14px;
    color: #555;
}
.pagination span {
    font-weight: 600;
    color: #000;
}
.pagination a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.pagination a:hover {
    color: var(--kaf-blue);
}

/* Responsive for Cards Grid */
@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .popular-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .cards-grid { grid-template-columns: 1fr; }
    .popular-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .popular-list { grid-template-columns: 1fr; }
    .dashboard-stats-grid { flex-wrap: wrap; }
    .stat-box { max-width: none; flex: 1 1 45%; }
}
