/* Theme Variables */
:root {
    --primary-color: rgb(1,62,82);
    --secondary-color: #044458ef;
    --accent-color: #33b40c;
    --text-light: #fff;
    --text-dark: #333;
    --gradient-primary: linear-gradient(243deg, rgb(6, 63, 73) 0%, rgba(12,39,91,1) 50%, rgb(0, 13, 15) 86%);
    --box-shadow: 0 4px 8px rgba(238, 236, 236, 0.3);
    --header-height: 60px; /* Define consistent header height */
    --sidebar-width: 280px; /* Added from dashboard.css */
}

/* ===== CRITICAL HEADER STYLES - DO NOT MODIFY ===== */
/* Base Styles with fixed header positioning */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--secondary-color);
    color: var(--text-dark);
    margin: 0;
    padding-top: var(--header-height) !important; /* Consistent space for fixed navbar */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fixed Header & Navigation - applied globally */
.navbar, header, .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background-color: var(--primary-color) !important;
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    box-shadow: var(--box-shadow) !important;
}

/* Improved logo positioning for all pages */
.navbar-brand {
    display: flex;
    align-items: center;
    line-height: 70px;
    padding: 0 !important;
    margin-left: -75px !important; /* Move logo to the left */
    position: relative !important;
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 24px;
}

/*
.navbar-brand img {
    height: 75px !important;
    width: auto !important;
    object-fit: contain !important;
}
*/
/* Critical User Menu Styles - Don't override these */
.user-menu {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
}

.welcome-text {
    color: var(--text-light) !important;
    margin-right: 10px !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
}

.dropdown-toggle {
    color: var(--text-light) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.dropdown-toggle i {
    font-size: 1.2rem !important;
    color: var(--text-light) !important;
}

/* End critical header styles */

.header {
    padding: 0;
    text-align: center;
    line-height: 40px;
}

.navbar {
    background: var(--primary-color);
    padding: 15px 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0 0 0 -30px; /* Added negative left margin to shift buttons */
    padding: 0;
}

.navbar-nav li {
    position: relative;
    margin-left: 35px; /* Reduced from 45px to tighten spacing */
    line-height: 50px;
}

.navbar-nav li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem; /* Slightly reduced font size from 1rem */
    font-weight: 500;
    padding: 10px 5px;
    display: block;
    transition: all 0.3s ease;
}

.navbar-nav li a:hover {
    color: var(--accent-color);
}

.navbar-nav li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-nav li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .dropdown li {
    margin: 0;
    padding: 0;
}

.navbar-nav .dropdown li a {
    padding: 10px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    margin: 2px 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Auth Buttons */
.navbar-nav.ms-auto li a {
    padding: 8px 15px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-nav.ms-auto li a:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Search Section */
.search-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

.search-container input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 16px;
}

.search-container button {
    border-radius: 25px;
    padding: 12px 30px;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 71, 39, 0.2);
}

/* Dashboard specific styles */
.dashboard-content {
    margin-top: var(--header-height) !important; /* Match the header height */
    padding-top: 20px !important;
    display: block !important;
    width: 100% !important;
}

.container.mt-5 {
    margin-top: 2rem !important;
}

/* Fix for dashboard tables and content */
.manage-posts-container {
    margin-top: 20px !important;
    padding: 20px !important;
}

/* Main content box styling */
.main-content-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    border: none;
    overflow: hidden;
}

.main-content-box h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.6rem;
    position: relative;
}

.main-content-box h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.main-content-box h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-left: 12px;
}

.main-content-box h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    border-radius: 4px;
}


 /* Mobile styles for navbar - matching category.css */
@media (max-width: 991px) {
    /* Mobile navbar toggle button styling */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 8px 10px;
        margin-right: 10px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
        outline: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Full background for mobile menu */
    .navbar-collapse {
        background-color: rgba(0, 48, 73, 0.98); /* Solid dark blue background */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 15px;
        margin-top: 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav.ms-auto {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .navbar-nav.ms-auto li {
        margin: 8px 0;
    }
    
    .navbar-nav.ms-auto li a {
        text-align: left;
    }
    
    /* Menu items styling */
    .navbar-nav li > a {
        background-color: rgba(255, 255, 255, 0.1);
        margin: 8px 0;
        padding: 10px 15px !important;
        border-radius: 5px;
        display: block;
        color: #ffffff !important;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .navbar-nav li > a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Dropdown menu styling */
    .navbar-nav li .dropdown {
        background: rgba(0, 30, 60, 0.95);
        border-radius: 5px;
        margin: 8px 0 8px 15px;
        padding: 5px 0;
        display: none;
    }
    
    .navbar-nav li:hover > .dropdown,
    .navbar-nav li:focus-within > .dropdown {
        display: block;
    }
    
    .navbar-nav .dropdown li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .dropdown li:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown li a {
        padding: 8px 20px;
        color: #ffffff !important;
        font-size: 0.95rem;
        background-color: transparent;
        margin: 0;
        border-radius: 0;
    }
    
    .navbar-nav .dropdown li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}


/* Improved stats card styling */
.stats-card {
    background: linear-gradient(145deg, #fafafa, #ffffff);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.stats-card h5 i {
    font-size: 1.2rem;
    margin-right: 8px;
    opacity: 0.8;
}

.stats-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
}

.stats-card h2:after {
    display: none;
}

.stats-card .btn {
    margin-top: 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 8px 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stats-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modern table styling */
.post-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.post-table thead th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 12px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-table tbody tr {
    transition: all 0.2s ease;
}

.post-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.post-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.post-table .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
}

.post-table .btn-sm {
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.post-table .btn-sm i {
    font-size: 0.85rem;
}

/* Layout */
.main-wrapper {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 20px 0;
    gap: 20px;
}

/*left column style */
.left-column {
    width: 70%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.news-content {
    padding: 20px;
}

.category-tag {
    margin-bottom: 10px;
}

.category-tag span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #666;
}

/* Content box style */
.news-title {
    font-size: 1.3em;
    margin: 10px 0;
    font-weight: 500;
    text-align: justify;
    margin-right: 10px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Add ... at the end */
    white-space: normal; /* Allow text to wrap */
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #007bff;
}

.excerpt {
    color: #666;
    font-size: 0.9em;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -moz-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Add ... at the end */
    white-space: normal; /* Allow text to wrap */
}
.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0; /* Allow flex items to shrink */
    display: inline-flexbox;
    font-size: 0.875rem; /* Adjust font size */
}

.author,
.engagement-metrics,
.comment-count,
.view-count,
.share-button {
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    max-width: 100%; /* Ensure items don't exceed container width */
}

.engagement-metrics {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: auto; /* Push engagement metrics to the right */
    white-space: nowrap; /* Prevent wrapping */

}

.comment-count,
.view-count,
.share-button {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* Prevent wrapping */
}

.comment-count img,
.view-count img,
.share-button img {
    vertical-align: middle; /* Align icons with text */
}

.like-button:hover {
    background-color: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.like-button.active {
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
}

.like-button.active i {
    animation: heartBeat 0.3s ease;
}

/* Optional: Responsive behavior */
@media (max-width: 600px) {
    .engagement-metrics {
        flex-wrap: wrap;
    }
}

.comment-count:hover i {
    color: #2ecc71;
}

.view-count:hover i {
    color: #3498db;
}

.share-count:hover i {
    color: #9b59b6;
}


/* News Grid Icons */
.news-grid .interaction-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    filter: invert(0.7);
}

.news-grid .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.news-grid .author {
    display: flex;
    align-items: center;
}

.news-grid .author .interaction-icon {
    margin-right: 6px;
}

.news-grid .engagement-metrics {
    display: flex;
    align-items: center;
}

.news-grid .engagement-metrics > div,
.news-grid .engagement-metrics button {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    margin-left: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.news-grid .engagement-metrics > div:first-child {
    margin-left: 0;
}

.news-grid .engagement-metrics > div:hover,
.news-grid .engagement-metrics button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.news-grid .engagement-metrics > div:hover .interaction-icon,
.news-grid .engagement-metrics button:hover .interaction-icon {
    filter: invert(42%) sepia(100%) saturate(1000%) hue-rotate(314deg) brightness(119%) contrast(119%);
}

.news-grid .like-button.active .interaction-icon {
    filter: invert(42%) sepia(100%) saturate(1000%) hue-rotate(314deg) brightness(119%) contrast(119%);
}

.news-grid .engagement-metrics > div:hover .interaction-icon,
.news-grid .like-button:hover .interaction-icon,
.news-grid .share-button:hover .interaction-icon {
    filter: invert(42%) sepia(100%) saturate(1000%) hue-rotate(314deg) brightness(119%) contrast(119%);
}

.news-grid .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.news-grid .author,
.news-grid .engagement-metrics > div,
.news-grid .like-button,
.news-grid .share-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.news-grid .engagement-metrics {
    display: flex;
    gap: 8px;
}

.news-grid .engagement-metrics > div:hover,
.news-grid .like-button:hover,
.news-grid .share-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Post Engagement */
.post-engagement {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
    align-items: center;
}

.like-button {
    background: none;
    border: none;
    padding: 0;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.like-button:hover {
    color: #ff4b4b;
}

.like-button.active {
    color: #ff4b4b;
}

.like-button i {
    font-size: 1.1rem;
}

.comment-link {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.comment-link:hover {
    color: #007bff;
}

.share-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-engagement i {
    font-size: 1.1rem;
}

.post-engagement span {
    display: inline-flex;
    align-items: center;
}

/* Post Styles */
.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-count i {
    color: var(--primary-color);
}

/* Right Column */
.right-column {
    width: 30%;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: #044458ef(10px);
}

/* Sidebar Sections Common Styles */
.categories-section,
.recently-post,
.populer-post {
    color: var(--text-light);
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-header {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.9;
}

/* Categories Section */
.categories-list {
    height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin: -5px;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.categories-list::-webkit-scrollbar {
    width: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* Post Container Common Styles */
.post-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    transform-origin: left;
    animation: slideIn 0.5s ease forwards;
}

.post-container:last-child {
    margin-bottom: 0;
}

.post-container:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

/* Categories Post Style */
.categories-section .post-container {
    height: 46px;
}

.categories-section .post-container h4 {
    margin: 0;
    height: 100%;
    font-size: 1.3rem;
}

.categories-section .post-container h4 a {
    padding: 0 15px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
}

.categories-section .post-container h4 a span {
    display: flex;
    align-items: center;
}

.categories-section .category-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: 0.7;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.categories-section .post-container:hover .category-icon {
    opacity: 1;
    transform: translateX(2px);
}

.categories-section .badge {
    background: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 28px;
    text-align: center;
}

/* Recently Posted & Popular Posts Style */
.recently-post .post-container,
.populer-post .post-container {
    padding: 15px;
}

.recently-post .post-container h4,
.populer-post .post-container h4 {
    margin: 0;
    font-size: 1.3rem;
}

.recently-post .post-container h4 a,
.populer-post .post-container h4 a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--text-light);
    text-decoration: none;
    gap: 10px;
}

.recently-post .post-title,
.populer-post .post-title {
    font-size: 1.3rem;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.recently-post .views-count,
.populer-post .views-count {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recently-post .view-icon,
.populer-post .view-icon {
    width: 14px;
    height: 14px;
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.recently-post .post-container:hover .view-icon,
.populer-post .post-container:hover .view-icon {
    opacity: 1;
}

.recently-post .post-meta,
.populer-post .post-meta {
    margin-top: 8px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 15px;
}

.recently-post .post-meta span,
.populer-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-wrapper {
        width: 95%;
        padding: 10px;
    }

    .main-content {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .navbar-brand {
        padding-left: 20px;
    }

    .search-container {
        padding: 15px;
    }

    .search-container button {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-engagement {
        justify-content: space-between;
    }

    .navbar-brand {
        padding-left: 10px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-wrapper {
        width: 95%;
    }

    .main-content {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .navbar-brand {
        padding: 0 15px;
    }

    .navbar-nav li {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li a {
        justify-content: center;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link {
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        font-size: 0.75rem;
    }
}

.footer {
    padding: 20px 0;
    margin-top: 20px;
}

.footer h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer ul {
    padding-left: 0;
    margin-bottom: 10px;
}

.footer ul li {
    margin-bottom: 5px;
}

.footer .social-links {
    margin-top: 10px;
}

.footer .social-links a {
    margin-right: 10px;
}

.footer .copyright {
    margin-top: 15px;
    padding-top: 10px;
    font-size: 12px;
}

.no-posts-message {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 10px 0;
}

/* See More Button */
.see-more-container {
    margin-top: 15px;
    text-align: center;
}

.see-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.see-more-button:hover {
    background-color: #0056b3;
    transform: translateX(5px);
    color: #fff;
}

.see-more-button i {
    transition: transform 0.3s ease;
}

.see-more-button:hover i {
    transform: translateX(3px);
}

/* Share Menu Styles */
.share-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
}

.share-menu a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.share-menu a:hover {
    background-color: #f5f5f5;
}

.share-menu i {
    margin-right: 10px;
    width: 20px;
}

.share-facebook i {
    color: #1877f2;
}

.share-twitter i {
    color: #1da1f2;
}

.share-whatsapp i {
    color: #25d366;
}

/* Post Engagement Styles */
.post-engagement {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.post-engagement > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-button,
.share-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    transition: color 0.3s;
}

.like-button:hover,
.like-button.active {
    color: #ff4b4b;
}

.share-button:hover {
    color: #1da1f2;
}

.view-count i {
    color: #666;
}

/* Section Icons */
.section-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.view-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: 0.7;
}

.views-count {
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.post-container a:hover .views-count {
    opacity: 1;
}

.post-title {
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Interaction Icons */
.interaction-icon {
    width: 18px;
    height: 18px;
    filter: invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-right: 4px;
}

.post-interactions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.interaction-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.interaction-item:hover {
    color: white;
}

.interaction-item:hover .interaction-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-icon:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Like Button */
.like-button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-button:hover {
    color: #ff4b4b;
}

.like-button:hover .interaction-icon {
    filter: invert(42%) sepia(100%) saturate(1000%) hue-rotate(314deg) brightness(119%) contrast(119%);
}

.like-button.active .interaction-icon {
    filter: invert(42%) sepia(100%) saturate(1000%) hue-rotate(314deg) brightness(119%) contrast(119%);
}
