@charset "utf-8";

/* ==========================================================================
   CCSS PIC Board Skin - Customized Modern Styling (Matching CCSC Board Skin)
   ========================================================================== */

/* GNUBoard Accessibility / Hidden Utility */
.sound_only, .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Category Filter Tabs (#bo_cate) */
#bo_cate #bo_cate_ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: 1px solid transparent;
    text-decoration: none;
}

#bo_cate #bo_cate_ul li a:hover {
    background-color: hsl(var(--muted) / 0.8);
    color: hsl(var(--foreground));
}

#bo_cate #bo_cate_ul li #bo_cate_on,
#bo_cate #bo_cate_ul li a#bo_cate_on,
#bo_cate_on {
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    box-shadow: var(--shadow-sm);
}

/* Checkbox Customization (.chk_box) */
.selec_chk {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

.chk_box label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    user-select: none;
}

.chk_box label span {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.chk_box input[type="checkbox"]:checked + label span {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dropdown Menu (.more_opt) */
.more_opt {
    display: none;
}

/* Modal Popup (.bo_sch_wrap) */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.bo_sch_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

/* Card Thumbnail Link & Image Full Width Guarantee (Flush to Card Borders) */
.aspect-\[4\/3\],
.aspect-\[4\/3\] a,
.aspect-\[4\/3\] a img,
.aspect-\[4\/3\] img,
#bo_gall .aspect-\[4\/3\],
#bo_gall .aspect-\[4\/3\] a,
#bo_gall .aspect-\[4\/3\] img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* SmartEditor / Image Responsive Override */
#bo_v_atc img, #bo_v_img img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 1rem;
}

#bo_v_atc iframe, #bo_v_atc video {
    max-width: 100% !important;
    border-radius: 1rem;
}

/* Pagination Customization (.pg_wrap) */
.pg_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
}

.pg_wrap .pg {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pg_wrap a.pg_page,
.pg_wrap span.pg_current,
.pg_wrap strong.pg_current,
.pg_wrap .pg_current,
.pg_wrap a.pg_start,
.pg_wrap a.pg_prev,
.pg_wrap a.pg_next,
.pg_wrap a.pg_end,
.pg_page,
.pg_current {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background-color: transparent;
    color: hsl(var(--muted-foreground));
}

.pg_wrap a.pg_page:hover,
.pg_wrap a.pg_start:hover,
.pg_wrap a.pg_prev:hover,
.pg_wrap a.pg_next:hover,
.pg_wrap a.pg_end:hover,
.pg_page:hover {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: none;
}

.pg_wrap span.pg_current,
.pg_wrap strong.pg_current,
.pg_wrap .pg_current,
.pg_current {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    box-shadow: var(--shadow-sm);
}

.pg_start, .pg_prev, .pg_next, .pg_end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: transparent;
    color: hsl(var(--muted-foreground));
    border: none;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.pg_start:hover, .pg_prev:hover, .pg_next:hover, .pg_end:hover {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: none;
}

/* Line Clamp fallbacks */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}