/* Root Variables */
:root {
    --primary-color: #decd11;
    --secondary-color: #173e43;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-color) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a5a5f 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Post Cards */
.post-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.post-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 0.75rem;
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.post-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-stats span {
    margin-right: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.post-stats i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.btn-read-more {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-read-more:hover {
    background-color: #6bc807;
    color: var(--white);
    transform: scale(1.05);
}

/* Post Detail */
.post-detail {
    background-color: var(--white);
}

.post-header {
    margin-bottom: 2rem;
}

.post-category-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
font-weight: 600;
display: inline-block;
margin-bottom: 1rem;
}
.post-title-detail {
font-size: 2.5rem;
font-weight: 800;
color: var(--text-color);
margin-bottom: 1.5rem;
line-height: 1.3;
}
.post-meta-detail {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
}
.author-avatar-detail {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
margin-right: 1rem;
}
.author-name-detail {
font-weight: 700;
font-size: 1.1rem;
color: var(--text-color);
}
.post-date-detail {
color: #6c757d;
font-size: 0.95rem;
}
.post-stats-detail {
padding: 1rem;
background-color: var(--light-bg);
border-radius: 8px;
margin-bottom: 1.5rem;
}
.post-stats-detail span {
margin-right: 1.5rem;
color: #6c757d;
font-size: 0.95rem;
}
.post-stats-detail i {
margin-right: 0.5rem;
color: var(--primary-color);
}
.post-featured-image {
border-radius: 12px;
overflow: hidden;
margin-bottom: 2rem;
}
.post-featured-image img {
width: 100%;
height: auto;
display: block;
}
.post-actions {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}
.btn-action {
background-color: var(--white);
border: 2px solid var(--border-color);
padding: 0.75rem 1.5rem;
border-radius: 25px;
font-weight: 600;
color: var(--text-color);
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.btn-action:hover {
border-color: var(--primary-color);
color: var(--primary-color);
}
.btn-action.btn-like.liked,
.btn-action.btn-bookmark.bookmarked {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: var(--white);
}
.btn-action i {
font-size: 1.1rem;
}
.post-body-detail {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text-color);
margin-bottom: 2rem;
}
.post-body-detail p {
margin-bottom: 1.5rem;
}
.post-tags {
margin-bottom: 2rem;
}
.tag-badge {
display: inline-block;
background-color: var(--light-bg);
color: var(--primary-color);
padding: 0.5rem 1rem;
border-radius: 25px;
margin-right: 0.5rem;
margin-bottom: 0.5rem;
font-weight: 600;
border: 1px solid var(--border-color);
}
/* Comments Section */
.comments-section {
padding-top: 3rem;
border-top: 2px solid var(--border-color);
}
.comments-title {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 2rem;
color: var(--text-color);
}
.comments-title i {
color: var(--primary-color);
margin-right: 0.5rem;
}
.comment-form-wrapper {
background-color: var(--light-bg);
padding: 1.5rem;
border-radius: 12px;
margin-bottom: 2rem;
}
.comment-textarea {
border: 2px solid var(--border-color);
border-radius: 8px;
padding: 1rem;
font-size: 1rem;
resize: vertical;
transition: border-color 0.3s ease;
}
.comment-textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(125, 217, 8, 0.25);
}
.btn-submit-comment {
background-color: var(--primary-color);
color: var(--white);
border: none;
padding: 0.75rem 1.5rem;
border-radius: 25px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-submit-comment:hover {
background-color: #6bc807;
transform: scale(1.05);
}
.btn-submit-comment i {
margin-right: 0.5rem;
}
.comment-item {
display: flex;
margin-bottom: 1.5rem;
background-color: var(--white);
padding: 1.5rem;
border-radius: 12px;
border: 1px solid var(--border-color);
}
.reply-item {
margin-left: 3rem;
margin-top: 1rem;
}
.comment-avatar {
width: 45px;
height: 45px;
border-radius: 50%;
object-fit: cover;
margin-right: 1rem;
flex-shrink: 0;
}
.comment-content {
flex: 1;
}
.comment-header {
margin-bottom: 0.5rem;
}
.comment-author {
font-weight: 700;
color: var(--text-color);
margin-right: 0.75rem;
}
.comment-date {
color: #6c757d;
font-size: 0.9rem;
}
.comment-text {
color: var(--text-color);
line-height: 1.6;
margin-bottom: 0.75rem;
}
.btn-reply {
background: none;
border: none;
color: var(--primary-color);
font-weight: 600;
cursor: pointer;
padding: 0;
transition: opacity 0.3s ease;
}
.btn-reply:hover {
opacity: 0.8;
}
.btn-reply i {
margin-right: 0.25rem;
}
.comment-replies {
margin-top: 1rem;
}
/* Authentication Pages */
.auth-wrapper {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--secondary-color) 0%, #2a5a5f 100%);
padding: 2rem 0;
}
.auth-card {
background: var(--white);
border-radius: 16px;
padding: 2.5rem;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.auth-logo {
font-size: 2rem;
font-weight: 800;
color: var(--secondary-color);
text-decoration: none;
display: inline-block;
margin-bottom: 1rem;
}
.auth-logo i {
color: var(--primary-color);
}
.auth-title {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-color);
margin-bottom: 0.5rem;
}
.input-icon {
display: flex;
align-items: center;
justify-content: center;
background-color: var(--light-bg);
border: 1px solid var(--border-color);
border-right: none;
padding: 0 1rem;
border-radius: 8px 0 0 8px;
}
.input-icon i {
color: var(--primary-color);
}
.input-group .form-control {
border-left: none;
border-radius: 0 8px 8px 0;
}
.form-control {
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 0.75rem 1rem;
transition: border-color 0.3s ease;
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(125, 217, 8, 0.25);
}
.btn-auth {
background-color: var(--primary-color);
color: var(--white);
border: none;
padding: 0.875rem 1.5rem;
border-radius: 8px;
font-weight: 600;
font-size: 1rem;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-auth:hover {
background-color: #6bc807;
transform: translateY(-2px);
}
.auth-link {
color: var(--primary-color);
font-weight: 600;
text-decoration: none;
}
.auth-link:hover {
text-decoration: underline;
}
/* Admin Styles */
.admin-wrapper {
min-height: 100vh;
}
.sidebar {
background-color: var(--secondary-color);
min-height: calc(100vh - 72px);
padding-top: 1rem;
}
.sidebar .nav-link {
color: rgba(255, 255, 255, 0.8);
padding: 0.875rem 1.5rem;
margin: 0.25rem 0;
border-radius: 8px;
transition: all 0.3s ease;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
background-color: rgba(125, 217, 8, 0.2);
color: var(--primary-color);
}
.sidebar .nav-link i {
margin-right: 0.75rem;
width: 20px;
}
.stat-card {
background: var(--white);
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
}
.stat-icon {
width: 60px;
height: 60px;
background-color: var(--primary-color);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 1.5rem;
}
.stat-icon i {
font-size: 1.75rem;
color: var(--white);
}
.stat-content h3 {
font-size: 2rem;
font-weight: 700;
color: var(--text-color);
margin: 0;
}
.stat-content p {
color: #6c757d;
margin: 0;
font-size: 0.95rem;
}
.admin-card {
background: var(--white);
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: none;
}
.admin-card .card-header {
background-color: var(--light-bg);
border-bottom: 2px solid var(--border-color);
padding: 1.25rem;
border-radius: 12px 12px 0 0;
}
.admin-card .card-header h5 {
color: var(--text-color);
font-weight: 700;
margin: 0;
}
.admin-card .card-body {
padding: 1.5rem;
}
.table {
margin: 0;
}
.table th {
background-color: var(--light-bg);
color: var(--text-color);
font-weight: 700;
border-bottom: 2px solid var(--border-color);
padding: 1rem;
}
.table td {
padding: 1rem;
vertical-align: middle;
}
.badge-published {
background-color: var(--success);
}
.badge-draft {
background-color: var(--warning);
}
.badge-archived {
background-color: var(--danger);
}
.badge-approved {
background-color: var(--success);
}
.badge-pending {
background-color: var(--warning);
}
.badge-spam {
background-color: var(--danger);
}
/* Pagination */
.pagination {
margin-top: 2rem;
}
.page-link {
color: var(--primary-color);
border: 1px solid var(--border-color);
padding: 0.5rem 1rem;
margin: 0 0.25rem;
border-radius: 8px;
transition: all 0.3s ease;
}
.page-link:hover {
background-color: var(--primary-color);
color: var(--white);
border-color: var(--primary-color);
}
.page-item.active .page-link {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
/* Footer */
.footer {
background-color: var(--secondary-color);
color: var(--white);
padding: 2rem 0;
margin-top: 4rem;
}
.footer p {
margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
.hero-section {
padding: 2rem 0;
}

.hero-section h1 {
    font-size: 2rem;
}

.post-title-detail {
    font-size: 1.75rem;
}

.post-image {
    height: 200px;
}

.sidebar {
    min-height: auto;
    margin-bottom: 2rem;
}

.reply-item {
    margin-left: 1rem;
}

.post-actions {
    flex-wrap: wrap;
}



}
/* Alerts */
.alert {
border-radius: 8px;
padding: 1rem 1.5rem;
margin-bottom: 1.5rem;
border: none;
}
.alert i {
margin-right: 0.5rem;
}
.alert-success {
background-color: #d4edda;
color: #155724;
}
.alert-danger {
background-color: #f8d7da;
color: #721c24;
}
.alert-info {
background-color: #d1ecf1;
color: #0c5460;
}
/* Buttons */
.btn {
border-radius: 8px;
padding: 0.5rem 1.25rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-primary:hover {
background-color: #6bc807;
border-color: #6bc807;
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
}
.btn-secondary:hover {
background-color: #0f2d31;
border-color: #0f2d31;
}
.btn-danger {
background-color: var(--danger);
border-color: var(--danger);
}
.btn-danger:hover {
background-color: #c82333;
border-color: #bd2130;
}
/* Loading Animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: var(--white);
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Utilities */
.text-primary {
color: var(--primary-color) !important;
}
.bg-primary {
background-color: var(--primary-color) !important;
}
.border-primary {
border-color: var(--primary-color) !important;
}




/* Profile Styles */
.profile-section {
    min-height: calc(100vh - 200px);
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a5a5f 100%);
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.profile-avatar-wrapper {
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-username {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.profile-bio {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-top: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background: var(--light-bg);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

.profile-edit-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: none;
}

.profile-edit-card .card-header {
    background-color: var(--light-bg);
    border-bottom:2px solid var(--border-color);
padding: 1.25rem;
border-radius: 16px 16px 0 0;
}
.profile-edit-card .card-header h5 {
margin: 0;
font-weight: 700;
color: var(--text-color);
}
.profile-tabs {
border: none;
margin-bottom: 0;
}
.profile-tabs .nav-link {
border: none;
color: #6c757d;
font-weight: 600;
padding: 1rem 1.5rem;
background: var(--white);
transition: all 0.3s ease;
}
.profile-tabs .nav-link:hover {
color: var(--primary-color);
}
.profile-tabs .nav-link.active {
color: var(--primary-color);
background: var(--white);
border-bottom: 3px solid var(--primary-color);
}
.profile-tab-content {
background: var(--white);
padding: 2rem;
border-radius: 0 0 16px 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* Hero Section with Background */
.hero-section {
position: relative;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 350px;
display: flex;
align-items: center;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(23, 62, 67, 0.9) 0%, rgba(42, 90, 95, 0.85) 100%);
}
.hero-section .container {
position: relative;
z-index: 1;
}
/* Advertisement Styles */
.ad-container {
background-color: var(--light-bg);
padding: 1.5rem 0;
margin: 1rem 0;
text-align: center;
}
.ad-container.header-ad {
margin-top: 0;
border-bottom: 1px solid var(--border-color);
}
.ad-container.footer-ad {
margin-bottom: 0;
border-top: 1px solid var(--border-color);
}
.ad-image {
max-width: 100%;
height: auto;
border-radius: 8px;
transition: transform 0.3s ease;
}
.ad-image:hover {
transform: scale(1.02);
}
.between-posts-ad {
background-color: var(--light-bg);
padding: 1.5rem;
border-radius: 12px;
text-align: center;
border: 1px solid var(--border-color);
}
/* Sidebar Widgets */
.sidebar-widget {
background: var(--white);
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.widget-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--text-color);
padding-bottom: 0.75rem;
border-bottom: 2px solid var(--primary-color);
}
.category-list {
list-style: none;
padding: 0;
margin: 0;
}
.category-list li {
margin-bottom: 0.75rem;
}
.category-list li a {
color: var(--text-color);
text-decoration: none;
display: block;
padding: 0.5rem 0;
transition: all 0.3s ease;
border-bottom: 1px solid var(--border-color);
}
.category-list li:last-child a {
border-bottom: none;
}
.category-list li a:hover {
color: var(--primary-color);
padding-left: 0.5rem;
}
.tag-cloud {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.ad-widget {
background: var(--light-bg);
border: 2px dashed var(--border-color);
}
/* Image Gallery in Post */
.post-image-gallery {
margin: 2rem 0;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.gallery-item {
position: relative;
overflow: hidden;
border-radius: 8px;
cursor: pointer;
transition: transform 0.3s ease;
}
.gallery-item:hover {
transform: scale(1.05);
}
.gallery-item img {
width: 100%;
height: 200px;
object-fit: cover;
display: block;
}
/* Modal for Image Gallery */
.image-modal {
display: none;
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.95);
}
.image-modal-content {
position: relative;
margin: auto;
display: block;
max-width: 90%;
max-height: 90%;
margin-top: 2%;
}
.modal-close {
position: absolute;
top: 20px;
right: 40px;
color: var(--white);
font-size: 40px;
font-weight: bold;
cursor: pointer;
z-index: 10000;
}
.modal-close:hover {
color: var(--primary-color);
}
/* Select2 Custom Styling */
.select2-container--default .select2-selection--multiple {
border: 1px solid var(--border-color);
border-radius: 8px;
min-height: 45px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: var(--primary-color);
border: none;
color: var(--white);
padding: 5px 10px;
border-radius: 20px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
color: var(--white);
margin-right: 5px;
}
/* Image Upload Preview */
#imagePreviewContainer .position-relative {
margin-bottom: 1rem;
}
#imagePreviewContainer .form-check {
background-color: var(--light-bg);
padding: 0.5rem;
border-radius: 0 0 4px 4px;
}
#imagePreviewContainer .form-check-input:checked {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
/* Admin Settings Page */
.settings-card {
background: var(--white);
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
margin-bottom: 2rem;
}
.settings-card .card-header {
background-color: var(--light-bg);
border-bottom: 2px solid var(--border-color);
padding: 1.25rem;
border-radius: 12px 12px 0 0;
font-weight: 700;
}
.settings-preview {
max-width: 300px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.hero-section {
min-height: 250px;
}


.profile-avatar {
    width: 100px;
    height: 100px;
}

.profile-name {
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.5rem;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.gallery-item img {
    height: 150px;
}



}
/* Loading Spinner */
.spinner-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding: 3rem;
}
.spinner-border {
width: 3rem;
height: 3rem;
border-width: 0.3rem;
border-color: var(--primary-color);
border-right-color: transparent;
}
/* Toast Notifications */
.toast-container {
position: fixed;
top: 80px;
right: 20px;
z-index: 9999;
}
.toast {
background: var(--white);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
margin-bottom: 1rem;
}
.toast-success {
border-left: 4px solid var(--success);
}
.toast-error {
border-left: 4px solid var(--danger);
}
.toast-info {
border-left: 4px solid var(--primary-color);
}
/* File upload styling */
.custom-file-upload {
display: inline-block;
padding: 0.75rem 1.5rem;
cursor: pointer;
background-color: var(--primary-color);
color: var(--white);
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
}
.custom-file-upload:hover {
background-color: #6bc807;
transform: translateY(-2px);
}
/* Empty States */
.empty-state {
text-align: center;
padding: 4rem 2rem;
}
.empty-state i {
font-size: 4rem;
color: var(--border-color);
margin-bottom: 1.5rem;
}
.empty-state h4 {
color: #6c757d;
margin-bottom: 1rem;
}
.empty-state p {
color: #6c757d;
}
/* Skeleton Loading */
.skeleton {
animation: skeleton-loading 1s linear infinite alternate;
}
@keyframes skeleton-loading {
0% {
background-color: hsl(200, 20%, 80%);
}
100% {
background-color: hsl(200, 20%, 95%);
}
}
.skeleton-text {
width: 100%;
height: 0.7rem;
margin-bottom: 0.5rem;
border-radius: 0.25rem;
}
.skeleton-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
}
/* Print Styles */
@media print {
.navbar,
.sidebar,
.footer,
.btn,
.ad-container,
.post-actions,
.comments-section {
display: none !important;
}


.post-detail {
    margin: 0;
    padding: 0;
}


}












/* Active category link */
.category-list li a.active-category {
    color: var(--primary-color);
    font-weight: 700;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

/* Active tag */
.tag-badge.active-tag {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Category hero header */
.category-hero {
    min-height: 300px;
}

.category-hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}





/* Rich Text Content Styles */
.post-body-detail {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.post-body-detail h1,
.post-body-detail h2,
.post-body-detail h3,
.post-body-detail h4,
.post-body-detail h5,
.post-body-detail h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.post-body-detail h1 { font-size: 2rem; }
.post-body-detail h2 { font-size: 1.75rem; }
.post-body-detail h3 { font-size: 1.5rem; }
.post-body-detail h4 { font-size: 1.25rem; }
.post-body-detail h5 { font-size: 1.1rem; }
.post-body-detail h6 { font-size: 1rem; }

.post-body-detail p {
    margin-bottom: 1.5rem;
}

.post-body-detail strong,
.post-body-detail b {
    font-weight: 700;
    color: var(--text-color);
}

.post-body-detail em,
.post-body-detail i {
    font-style: italic;
}

.post-body-detail u {
    text-decoration: underline;
}

.post-body-detail a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body-detail a:hover {
    color: #6bc807;
}

.post-body-detail ul,
.post-body-detail ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body-detail ul li,
.post-body-detail ol li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.post-body-detail ul {
    list-style-type: disc;
}

.post-body-detail ol {
    list-style-type: decimal;
}

.post-body-detail blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--light-bg);
    font-style: italic;
    color: #6c757d;
}

.post-body-detail code {
    background-color: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
    font-size: 0.9em;
}

.post-body-detail pre {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-body-detail pre code {
    background-color: transparent;
    padding: 0;
    color: var(--text-color);
}

.post-body-detail table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.post-body-detail table th,
.post-body-detail table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-body-detail table th {
    background-color: var(--light-bg);
    font-weight: 700;
}

.post-body-detail table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.post-body-detail hr {
    margin: 2rem 0;
    border: 0;
    border-top: 2px solid var(--border-color);
}

/* Text alignment */
.post-body-detail .text-left {
    text-align: left;
}

.post-body-detail .text-center {
    text-align: center;
}

.post-body-detail .text-right {
    text-align: right;
}

.post-body-detail .text-justify {
    text-align: justify;
}

/* Subscript and Superscript */
.post-body-detail sub,
.post-body-detail sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.post-body-detail sup {
    top: -0.5em;
}

.post-body-detail sub {
    bottom: -0.25em;
}

/* Strike through */
.post-body-detail s,
.post-body-detail strike,
.post-body-detail del {
    text-decoration: line-through;
}

/* Font colors from CKEditor */
.post-body-detail span[style*="color"] {
    /* Preserve inline color styles from CKEditor */
}

.post-body-detail span[style*="background-color"] {
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}





/* Page Header */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--primary-color);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--white);
}

/* About Page Styles */
.about-section {
    background-color: var(--white);
}

.about-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-content h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content h3 {
    color: var(--text-color);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 0.5rem;
}
.about-content p {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text-color);
margin-bottom: 1.5rem;
}
.about-content ul,
.about-content ol {
font-size: 1.1rem;
line-height: 1.8;
margin-bottom: 1.5rem;
}
.about-content li {
margin-bottom: 0.75rem;
}


/* Feature Boxes */
.feature-box {
background: var(--white);
padding: 2rem 1.5rem;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
height: 100%;
}
.feature-box:hover {
transform: translateY(-10px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.feature-icon {
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.feature-box h4 {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-color);
margin-bottom: 0.75rem;
}
.feature-box p {
color: #6c757d;
margin: 0;
}
/* CTA Box */
.cta-box {
background: linear-gradient(135deg, var(--secondary-color) 0%, #2a5a5f 100%);
padding: 3rem 2rem;
border-radius: 16px;
color: var(--white);
}
.cta-box h3 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
}
.cta-box .lead {
font-size: 1.15rem;
margin-bottom: 2rem;
opacity: 0.95;
}
.cta-box .btn {
padding: 1rem 2.5rem;
font-size: 1.1rem;
}
/* Contact Page Styles */
.contact-section {
background-color: var(--light-bg);
}
.contact-form-wrapper {
background: var(--white);
padding: 2.5rem;
border-radius: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.contact-form-wrapper h2 {
color: var(--secondary-color);
font-weight: 700;
}
.contact-info-wrapper {
background: var(--white);
padding: 2.5rem;
border-radius: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
height: 100%;
}
.contact-info-wrapper h3 {
color: var(--secondary-color);
font-weight: 700;
}
.contact-info-item {
display: flex;
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--border-color);
}
.contact-info-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.contact-icon {
width: 50px;
height: 50px;
background-color: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 1.5rem;
flex-shrink: 0;
}
.contact-icon i {
font-size: 1.25rem;
color: var(--white);
}
.contact-details h5 {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-color);
margin-bottom: 0.5rem;
}
.contact-details p {
margin: 0;
color: #6c757d;
}
.contact-details a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease;
}
.contact-details a:hover {
color: #6bc807;
}
/* Social Links */
.social-links h5 {
color: var(--text-color);
font-weight: 700;
margin-bottom: 1rem;
}
.social-icons {
display: flex;
gap: 1rem;
}
.social-icon {
width: 45px;
height: 45px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--white);
text-decoration: none;
transition: all 0.3s ease;
}
.social-icon:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.social-icon i {
font-size: 1.1rem;
}
.social-icon.facebook {
background-color: #3b5998;
}
.social-icon.twitter {
background-color: #1da1f2;
}
.social-icon.instagram {
background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icon.linkedin {
background-color: #0077b5;
}
/* FAQ Accordion */
.accordion-item {
border: 1px solid var(--border-color);
margin-bottom: 1rem;
border-radius: 8px;
overflow: hidden;
}
.accordion-button {
background-color: var(--white);
color: var(--text-color);
font-weight: 600;
padding: 1.25rem 1.5rem;
}
.accordion-button:not(.collapsed) {
background-color: var(--primary-color);
color: var(--white);
box-shadow: none;
}
.accordion-button:focus {
box-shadow: none;
border-color: var(--primary-color);
}
.accordion-button::after {
filter: brightness(0) invert(1);
}
.accordion-button:not(.collapsed)::after {
filter: brightness(1) invert(0);
}
.accordion-body {
padding: 1.5rem;
color: var(--text-color);
line-height: 1.7;
}
/* Footer Links */
.footer-links {
font-size: 0.95rem;
}
.footer-links a {
color: var(--white);
text-decoration: none;
opacity: 0.8;
transition: opacity 0.3s ease;
padding: 0 0.5rem;
}
.footer-links a:hover {
opacity: 1;
color: var(--primary-color);
}
/* Responsive */
@media (max-width: 768px) {
.page-header {
min-height: 200px;
}



.page-header h1 {
    font-size: 2rem;
}

.contact-form-wrapper,
.contact-info-wrapper {
    padding: 1.5rem;
}

.about-content {
    padding: 1.5rem;
}

.cta-box {
    padding: 2rem 1.5rem;
}

.cta-box h3 {
    font-size: 1.5rem;
}

.feature-box {
    margin-bottom: 1.5rem;
}

.social-icons {
    justify-content: center;
}

}




/* Enhanced Footer Styles */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7;
}



/* Sidebar Badge */
.sidebar .nav-link .badge {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}