/* ==========================================================================
   HES UIN K.H. ABDURRAHMAN WAHID - CUSTOM STYLES
   Modern Joomla 6 + Shaper Newedge
   ========================================================================== */

/* Main Navigation Home Icon */
.sp-megamenu-parent > li > a .fa-home {
    font-size: 18px;
    vertical-align: middle;
}

/* Category Blog Heading (BERITA) */
.blog .category-title-header {
    margin-bottom: 24px;
    border-bottom: 2px solid #eef0f3;
}

.blog .category-title-header .category-heading {
    margin: 0;
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1f2937;
    display: inline-block;
    border-bottom: 2px solid #d32f2f;
    margin-bottom: -2px;
}

.blog .subheading-category {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1f2937;
    display: inline-block;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Category Blog: Horizontal Articles (matching media_1793859172278_ae063323) */
.blog .items-row {
    margin-left: 0;
    margin-right: 0;
}

.blog .items-row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.blog-item-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f3;
    width: 100%;
}

.blog-item-thumb {
    flex: 0 0 250px;
    width: 250px;
    position: relative;
}

.blog-item-thumb .thumb-link {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-item-thumb img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-item-thumb:hover img {
    transform: scale(1.03);
}

.blog-item-thumb .media-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 11px;
}

.blog-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.blog-item-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-item-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-item-title a:hover {
    color: #d32f2f;
}

.blog-item-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-item-meta .meta-category a {
    color: #d32f2f;
    font-weight: 600;
    text-decoration: none;
}

.blog-item-meta .meta-category a:hover {
    text-decoration: underline;
}

.blog-item-meta .meta-separator {
    color: #d1d5db;
}

.blog-item-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 14px 0;
}

.blog-item-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.blog-social-share {
    display: flex;
    gap: 6px;
}

.blog-social-share a {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    font-size: 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-social-share a:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

/* Pagination */
.pagination-wrapper {
    margin: 24px 0 36px 0;
    text-align: center;
}

.pagination-wrapper .pagination {
    display: inline-flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-wrapper .pagination > li > a,
.pagination-wrapper .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-wrapper .pagination > li.active > span,
.pagination-wrapper .pagination > li.active > a,
.pagination-wrapper .pagination > .active > a,
.pagination-wrapper .pagination > .active > span {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
    font-weight: 600;
}

.pagination-wrapper .pagination > li > a:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Pengumuman Module (cat-list-add-two) */
.blog-bottom-modules {
    margin-top: 24px;
    padding-top: 10px;
}

.blog-bottom-modules .sp-module-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1f2937;
    position: relative;
    display: inline-block;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.blog-bottom-modules .jm-category-module .jmm-row {
    display: flex;
    gap: 16px;
}

.blog-bottom-modules .jm-category-module .jmm-item {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-bottom-modules .jm-category-module .mod-article-image img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.blog-bottom-modules .jm-category-module .jmm-text {
    padding: 12px 14px;
    flex: 1;
}

.blog-bottom-modules .jm-category-module .jmm-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-bottom-modules .jm-category-module .jmm-title:hover {
    color: #d32f2f;
}

/* Right Sidebar Modules (#sp-right) */
#sp-right .sp-module {
    margin-bottom: 30px;
}

#sp-right .sp-module .sp-module-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1f2937;
    position: relative;
    display: block;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

#sp-right .sp-module .sp-module-title::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background: #d32f2f;
}

/* Module 1: Journal Elhisbah */
#sp-right .journal-cover img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    width: 100%;
    max-width: 250px;
}

#sp-right .journal-cover:hover img {
    transform: translateY(-2px);
}

/* Module 2: GALERI PRESTASI */
#sp-right .mod-galeri-prestasi .jmm-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#sp-right .mod-galeri-prestasi .mod-article-image {
    position: relative;
}

#sp-right .mod-galeri-prestasi .mod-article-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

#sp-right .mod-galeri-prestasi .mod-article-image::after {
    content: '\f030';
    font-family: 'FontAwesome';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 2px;
}

#sp-right .mod-galeri-prestasi .jmm-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    padding: 26px 12px 10px 12px;
}

#sp-right .mod-galeri-prestasi .jmm-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    display: block;
}

#sp-right .mod-galeri-prestasi .jmm-title:hover {
    color: #fca5a5;
}

/* Module 3: Berita Popular */
#sp-right .mod-berita-popular ul.mod-articles-items,
#sp-right .mod-berita-popular ul.mod-list,
#sp-right .latestnews {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sp-right .mod-berita-popular ul.mod-articles-items li,
#sp-right .mod-berita-popular ul.mod-list li,
#sp-right .latestnews > div {
    position: relative;
    padding-left: 14px;
    margin-bottom: 12px;
    line-height: 1.45;
}

#sp-right .mod-berita-popular ul.mod-articles-items li::before,
#sp-right .mod-berita-popular ul.mod-list li::before,
#sp-right .latestnews > div::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -1px;
    color: #d32f2f;
    font-size: 16px;
}

#sp-right .mod-berita-popular .mod-articles-link,
#sp-right .mod-berita-popular a,
#sp-right .latestnews a {
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    display: block;
}

#sp-right .mod-berita-popular a:hover,
#sp-right .latestnews a:hover {
    color: #d32f2f;
}

/* Header search controls */
#sp-header .sp-top-right .newedge-top-search .icon-top-wrapper,
#sp-header .sp-top-right .newedge-top-search .icon-remove-wrapper {
    cursor: pointer;
}

#sp-header .sp-top-right .newedge-top-search .searchwrapper {
    height: 65px !important;
    z-index: 1000;
}

#sp-header .sp-top-right .newedge-top-search .searchwrapper input[type="text"],
#sp-header .sp-top-right .newedge-top-search .searchwrapper input[type="search"] {
    box-sizing: border-box;
    padding-right: 45px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .blog-item-horizontal {
        flex-direction: column;
    }
    .blog-item-thumb {
        flex: none;
        width: 100%;
    }
    .blog-bottom-modules .jm-category-module .jmm-row {
        flex-direction: column;
    }
}


