/* public/assets/css/page.css */

/* Page Header */
.page-header {
    /* Menggunakan gradient ungu yang sama dengan hero section di landing page */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: cover;
    /* Padding atas ditambah untuk mengakomodasi navbar, margin-top dihapus */
    padding: 190px 0 60px;
    color: white;
}

.page-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-input {
    height: 55px;
    border-radius: 50px;
    padding-left: 25px;
    padding-right: 60px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 45px;
    border: none;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background: #522f8e; /* Darker shade of primary */
}

/* Pagination */
.pagination .page-item .page-link {
    color: var(--bs-primary);
    border-radius: 50%;
    margin: 0 5px;
    border: 1px solid #dee2e6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Announcement Detail */
.announcement-detail .meta {
    color: #6c757d;
}

.announcement-detail .meta .date {
    margin-right: 15px;
}

.announcement-detail .content-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.announcement-detail .content-body h1,
.announcement-detail .content-body h2,
.announcement-detail .content-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

/* Sidebar */
.sidebar .sidebar-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-primary);
    display: inline-block;
}

.sidebar .recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .recent-posts li {
    margin-bottom: 15px;
}

.sidebar .recent-posts li a {
    text-decoration: none;
    color: #343a40;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    transition: color 0.3s;
}

.sidebar .recent-posts li a:hover {
    color: var(--bs-primary);
}

.sidebar .recent-posts li small {
    color: #6c757d;
    font-size: 0.85rem;
}
