:root {
    --primary: #072d17;
    /* Green primary */
    --secondary: #295734;
    --third: #f9c11b;
    --border: #E5E7EB;
    --hover: #F9FAFB;
    --border: #E5E7EB;
    --hover: #F9FAFB;
}

body {
    background: #F9FAFB;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Compact Post Card */
.post-compact {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s ease;
}

.post-compact:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(1, 175, 126, 0.1);
    transform: translateX(2px);
}

/* Small Avatar */
.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-fallback i {
    font-size: 14px;
}

/* Hide broken images */
.avatar-small.broken {
    display: none;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #e6f7f2 0%, #d4f3ea 100%);
    /* background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); */
    border: 1px solid #C7D2FE;
    /* color: #4F46E5; */
    color: var(--primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Trending Badge */
.trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: rgba(249, 193, 27, 0.1);
    border: 1px solid var(--third);
    color: #e6b00f;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sidebar */


/* Category Item */
.cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #6B7280;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cat-item:hover,
.cat-item.active {
    background: rgba(1, 175, 126, 0.1);
    color: var(--primary);
}

/* Button */
.btn-compact {
    background: var(--primary);
    color: white;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-compact:hover {
    background: #019366;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Meta */
.meta-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9CA3AF;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.meta-compact:hover {
    color: var(--primary);
    background: #F3F4F6;
}

/* Search */
.search-compact {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-compact:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 175, 126, 0.1);
}

/* Text Truncate */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* Override Tailwind */
.text-indigo-600,
.hover\:text-indigo-600:hover,
.hover\:text-indigo-800:hover {
    color: var(--primary) !important;
}

.hover\:border-indigo-600:hover {
    border-color: var(--primary) !important;
}

.bg-indigo-600 {
    background-color: var(--primary) !important;
}

.group-hover\:text-indigo-600:hover {
    color: var(--primary) !important;
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-dropdown-button:hover {
    border-color: var(--primary);
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #6B7280;
    transition: all 0.2s;
    border-bottom: 1px solid #F3F4F6;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item.active {
    background: rgba(1, 175, 126, 0.1);
    color: var(--primary);
}

/* Mobile Menu Styles */
.text-primary {
    color: var(--primary);
}

#mobile-menu-card {
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

a {
    text-decoration: none !important;
}

ul {
    padding: 0 !important;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #e6f7f2 0%, #d4f3ea 100%);
    border: 1px solid #01af7e;
    color: #01af7e;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sidebar */
.sidebar-compact {
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 8px;

    margin-bottom: 1rem;
}

.sidebar-header {
    padding: 8px 14px;
    border-bottom: 0.5px solid #DDDDDD;
}

.trending-box {
    background-color: #f3f4f6c3;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 10px 0;

}

.trending-heading {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

.trending-para {
    font-size: 12px;
    color: #4b5563;
    /* gray-600 */
    line-height: 1.5;
    margin-top: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-body {
    padding: 8px 14px;

}

/* Category Item */
.cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0px;
    border-radius: 6px;
    color: #000000;
    font-weight: normal;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cat-item:hover,
.cat-item.active {
    /* background: rgba(1, 175, 126, 0.1); */
    color: #009951;
}


.search-container {
    background: #F3F4F6;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    border: 0.5px solid #DDDDDD;
    gap: 12px;
    /* box-shadow: 0 0 0 1px #e5e7eb; */

}

/* LEFT ICON */
.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #1e7f3b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e7f3b;
    background-color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
}


.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: capitalize;
}


/* INPUT */
.search-input {
    flex: 1;
    height: 35px;
    border: none;
    outline: none;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #DDDDDD;
    padding: 0 8px;
    font-size: 14px;
}

.second_banner_bg {
    background-image: url("/secondBanner.png");
    padding: 2.2rem 0;
    background-repeat: no-repeat;
    background-size: cover;
}

.bannerHeading {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 30px;
    text-align: center;
    color: white;

}

.bannerPara {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    margin-top: 0.5rem;
    color: #ffffffcb;

}

/* Three Dot Menu Styles */
.three-dot-menu {
    position: relative;
    display: inline-block;
}

.three-dot-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #6B7280;
    font-size: 16px;
    transition: color 0.2s;
}

.three-dot-btn:hover {
    color: #111827;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1000;
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #F3F4F6;
}

/* Modal Overlay Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex !important;
}

.modal-content-custom {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.modal-icon.success {
    background: #D1FAE5;
    color: #059669;
}

.modal-icon.error {
    background: #FEE2E2;
    color: #DC2626;
}

.modal-icon.warning {
    background: #FEF3C7;
    color: #D97706;
}

.modal-icon.info {
    background: #DBEAFE;
    color: #3B82F6;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.modal-message {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.modal-btn-secondary:hover {
    background: #E5E7EB;
}