/* public/css/pages/posts.css - Posts page specific styles */

/* CSS Variables for Posts Page */
:root {
    --primary-color: #1B4E3B;
    --secondary-color: #2D5A47;
    --success-color: #28a745;
    --success-light: #d4edda;
    --accent-color: #3EB489;
    --light-green: #7CD2B3;
    --text-dark: #333333;
    --text-light: #6c757d;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-success: linear-gradient(135deg, var(--success-color), #20c997);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-top: -1px; /* Overlap with navbar */
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 auto;
    text-align: center;
    max-width: 600px;
}

.page-stats {
    text-align: right;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.stat-item i {
    color: #7CD2B3 !important;
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Search Box - Posts Page Specific */
.search-container {
    margin-bottom: 2rem;
}

.posts-search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.posts-search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--text-dark);
}

.posts-search-input::placeholder {
    color: #6c757d;
}

.posts-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(62, 180, 137, 0.1);
}

.posts-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
    z-index: 2;
}

.posts-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #267055, #3EB489);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.posts-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(38, 112, 85, 0.3);
}

.posts-search-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 8px rgba(38, 112, 85, 0.4);
}

.posts-search-btn i {
    font-size: 0.9rem;
    position: static;
    transform: none;
    color: white;
}

/* Filters */
.filters-container {
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    min-width: 80px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #267055;
    border-color: #267055;
    color: white;
}

.filter-btn i {
    font-size: 0.8rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Tags */
.tags-container {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    background: rgba(62, 180, 137, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.tag-link.active,
.tag-link.active-tag {
    background: var(--success-color);
    color: white;
    position: relative;
}

.tag-clear-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    margin-left: 0.25rem;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Active tag display (untuk tag yang sedang aktif tanpa konflik dengan JS) */
.active-tag-display {
    display: inline-flex;
    align-items: center;
    background: var(--success-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.active-tag-display:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.active-tag-display .tag-clear-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    margin-left: 0.25rem;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.active-tag-display .tag-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.active-tag i {
    cursor: pointer;
    margin-left: 0.25rem;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.active-tag i:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   POSTS CONTENT
   ======================================== */
.posts-content {
    padding: 3rem 0;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    color: #267055;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #267055;
}

.results-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.active-filter {
    background: #267055;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-filter .remove-filter {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.active-filter .remove-filter:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

/* Featured Carousel */
.featured-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.featured-post-card {
    background: white;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding-left: 2rem;
}

.featured-content .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.3;
}

.featured-content .post-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.featured-content .post-title a:hover {
    color: #267055;
}

.featured-content .post-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-content .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(38, 112, 85, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.featured-carousel .carousel-control-prev {
    left: 20px;
}

.featured-carousel .carousel-control-next {
    right: 20px;
}

.featured-carousel .carousel-control-prev:hover,
.featured-carousel .carousel-control-next:hover {
    opacity: 1;
    background: #267055;
}

/* ========================================
   POST CARDS
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge.type-news {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge.type-announcement {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.badge.type-agenda {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.badge.category-badge {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.badge.featured-badge {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 78, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.read-link {
    background: white;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.read-link:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta i {
    color: #267055;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #267055;
}

.post-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more-btn {
    background: linear-gradient(135deg, #267055, #3EB489);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(38, 112, 85, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.empty-state .btn-primary {
    background: var(--gradient-success);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    position: sticky;
    top: 2rem;
    background: transparent;
}

.sidebar-widget {
    background: white !important;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.widget-title {
    color: #267055;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #267055;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: #ffffff;
}

.widget-content {
    color: var(--text-dark);
    background: transparent;
}

/* Category List */
.category-list,
.type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.type-list li {
    margin-bottom: 0.5rem;
}

.category-list a,
.type-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
}

.category-list a:hover,
.type-list a:hover {
    color: #267055;
}

.type-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-list i {
    color: #267055;
    width: 16px;
    text-align: center;
}

.count {
    background: rgba(38, 112, 85, 0.15);
    color: #267055;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: rgba(38, 112, 85, 0.15);
    color: #267055;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #267055;
    color: white;
}

/* Recent Posts */
.recent-posts,
.related-posts-sidebar,
.popular-posts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item,
.related-post-item,
.popular-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
}

.recent-post-item:last-child,
.related-post-item:last-child,
.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image,
.sidebar .related-post-image,
.popular-post-image {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img,
.sidebar .related-post-image img,
.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-image .badge,
.sidebar .related-post-image .badge,
.popular-post-image .badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.6rem;
}

.recent-post-content,
.sidebar .related-post-content,
.popular-post-content {
    flex: 1;
}

.recent-post-content h6,
.sidebar .related-post-content h6,
.popular-post-content h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.recent-post-content h6 a,
.sidebar .related-post-content h6 a,
.popular-post-content h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover,
.sidebar .related-post-content h6 a:hover,
.popular-post-content h6 a:hover {
    color: #267055;
}

.recent-post-meta,
.sidebar .related-post-meta,
.popular-post-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.recent-post-meta span,
.sidebar .related-post-meta span,
.popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ========================================
   POST DETAIL STYLES
   ======================================== */
.post-detail-section {
    padding: 2rem 0;
}

.post-detail {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.post-header .post-badges {
    position: static;
    margin-bottom: 1rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 1rem 0;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.post-header .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.post-excerpt {
    background: rgba(62, 180, 137, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.post-excerpt p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content h5 { font-size: 1.1rem; }
.post-content h6 { font-size: 1rem; }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
}

/* Post Footer */
.post-footer {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
}

.post-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-group h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-group h6 i {
    color: var(--accent-color);
}

.info-group p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Share Section */
.share-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
}

.share-section h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: #6c757d; }
.share-btn.copy { background: var(--success-color); }

/* Related Posts */
.related-posts {
    margin-top: 3rem;
}

.related-posts .section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-card .related-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.related-post-card .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card .related-post-image .badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 12px;
    z-index: 2;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-card .related-post-content {
    padding: 1.5rem;
}

.related-post-card .related-post-content h6 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.related-post-card .related-post-content h6 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-card .related-post-content h6 a:hover {
    color: var(--accent-color);
}

.related-post-card .related-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.related-post-card .related-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-post-card .related-post-meta i {
    color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.nav-post {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    height: 100%;
}

.nav-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.prev-post {
    justify-content: flex-start;
}

.next-post {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.nav-post-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-post-content {
    flex: 1;
}

.nav-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.nav-post-content h6 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.nav-post-content h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-post:hover .nav-post-content h6 a {
    color: var(--primary-color);
}

/* Sidebar Widgets for Detail Page */
.post-info-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.info-item span {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Table of Contents */
.toc-widget {
    position: sticky;
    top: 2rem;
}

.toc-nav {
    max-height: 300px;
    overflow-y: auto;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    padding: 0.3rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--primary-color);
    border-left-color: var(--accent-color);
    background: rgba(62, 180, 137, 0.1);
}

.toc-nav .toc-h2 { padding-left: 1rem; }
.toc-nav .toc-h3 { padding-left: 1.5rem; }
.toc-nav .toc-h4 { padding-left: 2rem; }
.toc-nav .toc-h5 { padding-left: 2.5rem; }
.toc-nav .toc-h6 { padding-left: 3rem; }

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border: 2px solid #e9ecef;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    border-color: #267055;
    color: #267055;
    background: rgba(38, 112, 85, 0.1);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: #267055;
    border-color: #267055;
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .page-header {
        text-align: center;
    }
    
    .page-stats {
        text-align: center;
        margin-top: 1rem;
    }
    
    .featured-post-card {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-content {
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .post-detail {
        padding: 2rem;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-label {
        min-width: auto;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-header .post-meta {
        gap: 1rem;
    }
    
    .meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .post-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .nav-post {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .next-post {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filter-card {
        padding: 1.5rem;
    }
    
    .post-detail {
        padding: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.75rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .featured-carousel .carousel-control-prev,
    .featured-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .featured-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .featured-carousel .carousel-control-next {
        right: 10px;
    }
}

/* ========================================
   SIDEBAR STYLES - Complete Implementation
   ======================================== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white !important;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.widget-title {
    background: #267055 !important;
    color: white !important;
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-title i {
    font-size: 1rem;
    opacity: 0.9;
}

.widget-content {
    padding: 1.5rem;
    background: white !important;
}

/* Leadership Timeline */
.leadership-timeline {
    position: relative;
}

.leadership-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.timeline-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: white;
    border: 3px solid #267055;
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.current::before {
    background: #267055;
    animation: pulse-timeline 2s infinite;
}

@keyframes pulse-timeline {
    0% { box-shadow: 0 0 0 0 rgba(38, 112, 85, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(38, 112, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(38, 112, 85, 0); }
}

.timeline-date {
    font-size: 0.85rem;
    color: #267055;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Milestone List */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fffe;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.milestone-item:hover {
    background: rgba(38, 112, 85, 0.1);
    transform: translateX(5px);
}

.milestone-item.highlight {
    background: rgba(38, 112, 85, 0.1);
    border: 1px solid #267055;
}

.milestone-year {
    background: #267055;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.milestone-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fffe;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-link:hover {
    background: #267055;
    color: white;
    transform: translateX(5px);
    text-decoration: none;
    border-color: #267055;
}

.quick-link i:first-child {
    color: #267055;
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

.quick-link:hover i:first-child {
    color: white;
}

.quick-link span {
    flex: 1;
    font-weight: 500;
}

.quick-link i:last-child {
    opacity: 0.6;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-link:hover i:last-child {
    opacity: 1;
    transform: translateX(3px);
}

/* Core Values Styles */
.core-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fffe;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(38, 112, 85, 0.1);
    transform: translateX(5px);
}

.value-item i {
    font-size: 2rem;
    color: #267055;
    width: 3rem;
    text-align: center;
    flex-shrink: 0;
}

.value-item h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Achievement Stats */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item-small {
    background: #f8fffe;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #267055;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #267055;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* Navigation Links */
.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.nav-link-item:hover {
    background: #f8fffe;
    color: #267055;
    transform: translateX(5px);
    text-decoration: none;
}

.nav-link-item i {
    color: #267055;
    font-size: 0.9rem;
}

/* Important Notes */
.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8fffe;
}

.note-item i {
    color: #267055;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.note-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* Contact Info */
.contact-info h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.contact-info i {
    color: #267055;
    width: 16px;
}

/* Sidebar Animation */
.sidebar-widget {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease forwards;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.4s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */

.toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    z-index: 99999 !important;
    max-width: 320px !important;
    min-width: 280px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.toast.toast-success {
    border-left: 4px solid #10b981 !important;
}

.toast.toast-error {
    border-left: 4px solid #dc2626 !important;
}

.toast.toast-warning {
    border-left: 4px solid #f59e0b !important;
}

.toast-content {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.toast-content i {
    flex-shrink: 0 !important;
    font-size: 1.2rem !important;
}

.toast-content i.fa-check-circle {
    color: #10b981 !important;
}

.toast-content i.fa-exclamation-circle {
    color: #dc2626 !important;
}

.toast-content i.fa-info-circle {
    color: #3b82f6 !important;
}

.toast-content span {
    flex: 1 !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.toast-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    font-size: 0.9rem !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: color 0.2s !important;
}

.toast-close:hover {
    color: #666 !important;
    background: rgba(0,0,0,0.05) !important;
}

/* Ensure toast appears above all other elements */
.toast {
    pointer-events: auto !important;
}

/* Animation keyframes for toast */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
    }
}

.toast.animate-in {
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.animate-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
