/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f3f2ef;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;   
    color: rgb(2, 8, 23);
   background-image: 
        radial-gradient(circle at 10% 15%, rgba(26, 115, 232, 0.06) 0%, rgba(26, 115, 232, 0.06) 20%, transparent 20%, transparent 100%),
        radial-gradient(circle at 90% 85%, rgba(234, 67, 53, 0.06) 0%, rgba(234, 67, 53, 0.06) 25%, transparent 25%, transparent 100%),
        radial-gradient(circle at 30% 70%, rgba(26, 115, 232, 0.04) 0%, rgba(26, 115, 232, 0.04) 15%, transparent 15%, transparent 100%),
        radial-gradient(circle at 70% 30%, rgba(234, 67, 53, 0.04) 0%, rgba(234, 67, 53, 0.04) 18%, transparent 18%, transparent 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.15) 40%, transparent 40%, transparent 100%),
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(26, 115, 232, 0.02) 0deg,
            rgba(234, 67, 53, 0.02) 90deg,
            rgba(26, 115, 232, 0.02) 180deg,
            rgba(234, 67, 53, 0.02) 270deg,
            rgba(26, 115, 232, 0.02) 360deg
        ),
        linear-gradient(
            135deg, 
            #f8f9fa 0%, 
            #f0f2f5 25%, 
            #e8eaf0 50%, 
            #e4e6eb 75%, 
            #e0e4ee 100%
        );
    background-attachment: fixed;
    background-size: 
        400px 400px,
        500px 500px,
        300px 300px,
        350px 350px,
        1000px 1000px,
        1500px 1500px,
        cover;
    background-position:
        0 0,
        100% 100%,
        30% 70%,
        70% 30%,
        center center,
        center center,
        0 0;
    
    /* Add subtle animation for the gradient */
    animation: gradientShift 50s ease infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position:
            0 0,
            100% 100%,
            30% 70%,
            70% 30%,
            center center,
            center center,
            0 0;
    }
    100% {
        background-position:
            20px 20px,
            calc(100% - 20px) calc(100% - 20px),
            35% 65%,
            65% 35%,
            calc(50% + 10px) calc(50% + 10px),
            calc(50% + 50px) calc(50% + 50px),
            20px 20px;
    }
}


/* Header Styles */
header {
    background: linear-gradient(135deg  ,  blue 0%,red  100%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 8px;
    background-color: white; 
    border-radius: 50%;
}

.logo h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    display: inline-block;
}

.search-bar {
    flex-grow: 0.5;
    margin: 0 20px;
}

.search-bar input:focus {
border: none;
outline: none;
}
    .search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 8px 5px;
    /* border-radius: 4px; */
    /* padding: 12px 5px; */
    /* border: 1px solid #ddd; */
    /* background-color: #eef3f8; */
    border: none;
    outline: none;
    /* cursor: pointer; */
    /* border: 1px solid rgb(195, 212, 212); */
}
/* search bar  */
.search-bar {
    display: flex;
    margin: 15px 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid lightgray;
}


.search-bar button {
    padding: 0 20px;
    border: none;
    background: linear-gradient(135deg , blue , red);
    color: white;
    cursor:alias;
    border: none;
    outline: none;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: linear-gradient(135deg ,red , blue);
    /* background: #166fe5; */
}

.search-bar button i {
    font-size: 18px;
}
.nav-links {
    display: flex;
    gap: 24px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    color: #666;
    /* background: linear-gradient(135deg, #016DEA, red); */
    /* background: linear-gradient(135deg, #016DEA, red); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    color: transparent;
    color: white;
    font-weight: 600;
    display: inline-block;
    transition: scale 0.3s ease-in-out;
}

.nav-item i:hover {
    scale: 1.1;
}

.nav-item span {
    font-size: 12px;
    margin-top: 4px;
    color: white;
}

.nav-item.active i,
.nav-item.active span {
    background: linear-gradient(135deg, red, blue);
    /* background: white; */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* color: white; */
    font-weight: 600;
    display: inline-block;
}

/* Main Content */
main {
    display: flex;
    /* max-width: 1200px; */
    /* margin: 72px auto 20px; */
    margin-top:8% ;
    gap: 20px;
    /* height: calc(100vh - 92px); */
}

/* Left Sidebar */
/* Left Sidebar */
.left-sidebar {
    width: 30%;
    /* height: calc(100vh - 92px); */
    overflow-y: auto;
    position: sticky;
    /* top: 72px; */
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 
        0 8px 32px rgba(1, 109, 234, 0.15),
        0 2px 8px rgba(220, 38, 38, 0.1); */
    margin-bottom: 25px;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
}
.profile-card
{
    box-shadow: 
        0 20px 40px rgba(1, 109, 234, 0.25),
        0 8px 20px rgba(220, 38, 38, 0.15) !important;
        

}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #016DEA 0%, #dc2626 50%, #016DEA 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    transition: all 0.4s ease;

}

.profile-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #016DEA, #dc2626, #016DEA);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(1, 109, 234, 0.25),
        0 8px 20px rgba(220, 38, 38, 0.15);
}

/* Profile Banner */
.profile-banner {
    height: 100px;
    background: linear-gradient(135deg, #016DEA 0%, #dc2626 100%);
    position: relative;
    overflow: hidden;
}

.profile-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Profile Info */
.profile-info {
    padding: 25px 20px 20px;
    text-align: center;
    position: relative;
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid white;
    margin: -65px auto 15px;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    padding: 3px;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(1, 109, 234, 0.3),
        0 4px 12px rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(1, 109, 234, 0.4),
        0 6px 20px rgba(220, 38, 38, 0.3);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

/* Profile Badge */
.profile-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700,red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        box-shadow: 0 6px 25px rgba(255, 107, 0, 0.6);
    }
}

.profile-badge:hover {
    animation: badgeSpin 0.6s ease;
}

@keyframes badgeSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* Profile Header with Edit Button */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    position: relative;
}

.profile-info h2 {
    font-size: 1.4rem;
    margin: 0;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(1, 109, 234, 0.1);
}

/* Edit Button */
.edit-profile-btn {
    background: linear-gradient(135deg, #016DEA, #dc2626);
    border: none;
    border-radius: 12px;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(1, 109, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.edit-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.edit-profile-btn:hover::before {
    left: 100%;
}

.edit-profile-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 6px 25px rgba(1, 109, 234, 0.4),
        0 3px 15px rgba(220, 38, 38, 0.3);
}

.edit-profile-btn:active {
    transform: scale(0.95) rotate(45deg);
}

.profile-info p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #016DEA, #dc2626, transparent);
}

.stat-item {
    text-align: center;
    padding: 0 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item .number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(1, 109, 234, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover .number {
    transform: scale(1.1);
}

.stat-item .label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Button */
.action-btn {
    background: linear-gradient(135deg, #016DEA, #dc2626);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(1, 109, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(1, 109, 234, 0.4),
        0 4px 20px rgba(220, 38, 38, 0.3);
}

.action-btn:active {
    transform: translateY(-1px);
}

/* Biography Section */
.biography-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 
        0 8px 32px rgba(1, 109, 234, 0.15),
        0 2px 8px rgba(220, 38, 38, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.biography-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 3px;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
}

.biography-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.biography-header h5 {
    /* font-size: 1.2rem; */
    font-weight: 600;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.edit-bio-btn {
    background: linear-gradient(135deg, #016DEA, #dc2626);
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(1, 109, 234, 0.3);
}

.edit-bio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 109, 234, 0.4);
}

.biography-content {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    min-height: 80px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    /* border-left: 4px solid #016DEA; */
}

.biography-content:empty::before {
    content: "No biography added yet. Click edit to add your bio.";
    color: #94a3b8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 30%;
        padding: 15px;
    }
    
    .profile-pic {
        width: 90px;
        height: 90px;
        margin-top: -55px;
    }
    
    .profile-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
   .notifications-container {
    top: 20%;
    right: 0% !important;
    /* overflow-y: scroll; */
    }
}
@media (max-width: 768px) {
    .left-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
 
    .profile-card {
        margin-bottom: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 8px;
    }
    .stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* Scrollbar Styling */
.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #016DEA, #dc2626);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0258c7, #b91c1c);
}

/* Features Card */
.features-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.features-header {
    padding: 15px;
    color: white;
    text-align: center;
    background: linear-gradient(150deg, #1A62D2 30%, red);
}

.features-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.features-header p {
    font-size: 12px;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: linear-gradient(150deg, #1A62D2 10%, red);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    border-radius: 8px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.25);
}

.feature-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.feature-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Feed */
.post-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(1, 109, 234, 0.1);
    margin-bottom: 25px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(1, 109, 234, 0.2) !important;
}

.post-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-box:hover::before {
    /* opacity: 1; */
}

.post-box:hover {
    transform: translateY(-8px);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.post-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #016DEA, #dc2626) padding-box,
                linear-gradient(135deg, #016DEA, #dc2626) border-box;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.post-header img:hover {
    transform: scale(1.1);
}

.post-user h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.post-user p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Post Content */
.post-content {
    padding: 20px;
}
.event-details{
    margin-top: 17px;
}
.post-title {
    /* margin: 0 0 15px 0; */
    font-size: 1rem;
    font-weight: 400;
    color: #0f172a;
    /* line-height: 1.4; */
    /* background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; */
}



.product-quantity {
    font-size: 1rem;
    color: #475569;
    margin: 8px 0;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-weight: 600;
}

.post-description {
    color: #475569;
    /* line-height: 1.7; */
    /* margin: 15px 0; */
    font-size: 1rem;
    padding: 15px 0px;
    /* padding-top: 3px; */
    background: #f8fafc;
    border-radius: 12px;
    /* border-left: 4px solid #016DEA; */
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 7px;
    margin: 15px 0;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-video {
    width: 100%;
    max-height: 500px;
    border-radius: 16px;
    margin: 15px 0;
    background: #000;
}

.event-date, .event-location {
    font-size: 0.95rem;
    color: #475569;
    margin: 8px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    border-radius: 10px;
    border-left: 4px solid #016DEA;
    font-weight: 600;
}

.event-date {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

/* Post Stats */
.post-stats {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.like-count, .comment-count {
    font-weight: 800;
    background: linear-gradient(135deg, #016DEA, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1rem;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    position: relative;
    overflow: hidden;
}

.post-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 109, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.post-action:hover::before {
    left: 100%;
}

.post-action:hover {
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    color: #016DEA;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 109, 234, 0.2);
}

.post-action i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.post-action:hover i {
    transform: scale(1.2);
}

/* Like Action States */
.like-action.liked {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

.like-action.liked i {
    color: #dc2626;
}

.like-action.liked:hover {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #b91c1c;
}

@keyframes likeBurst {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-action.liked i {
    animation: likeBurst 0.4s ease;
}

/* Comments Section */
.comments-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 16px;
    border-left: 4px solid #016DEA;
    box-shadow: 0 2px 8px rgba(1, 109, 234, 0.1);
    transition: transform 0.3s ease;
}

.comment-item:hover {
    transform: translateX(5px);
}

.comment-user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #016DEA, #dc2626) padding-box,
                linear-gradient(135deg, #016DEA, #dc2626) border-box;
}

.comment-content {
    flex: 1;
}

.comment-user-name {
    font-weight: 700;
    color: #016DEA;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.comment-text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Add Comment */
.add-comment {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.comment-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.comment-input:focus {
    border-color: #016DEA;
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 109, 234, 0.1);
}

.post-comment-btn {
    background: linear-gradient(135deg, #016DEA, #dc2626);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 109, 234, 0.3);
}

.post-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 109, 234, 0.4);
}

.post-comment-btn:active {
    transform: translateY(0);
}

/* Scrollbar Styling */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #016DEA, #dc2626);
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-header {
        padding: 15px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .post-actions {
        padding: 8px 15px;
    }
    
    .post-action {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .post-action span {
        display: none;
    }
    
    .post-action i {
        font-size: 1.3rem;
    }
    
    .comments-list,
    .add-comment {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .post-box {
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .post-header {
        padding: 12px 15px;
    }
    
    .post-header img {
        width: 45px;
        height: 45px;
    }
    
    .post-content {
        padding: 12px 15px;
    }
    
    .post-image,
    .post-video {
        max-height: 300px;
    }
    
    .post-actions {
        padding: 6px 15px;
    }
}

/* Animation for new posts */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-box {
    animation: fadeInUp 0.6s ease-out;
}
/* Right Sidebar */

    /* Enhanced Right Sidebar */
    .right-sidebar {
        width: 320px;
        margin-top: 1rem ;
        position: sticky;
        top: 20px; /* Adjusted from 92px for this single document context */
        overflow-y: auto;
        padding-left: 10px;
        /* Added padding-right to prevent scrollbar overlap on the right edge */
        padding-right: 10px; 
        padding-bottom: 20px;
    }

    /* Modern News Cards */
    .news-card {
        background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
        border-radius: 10px;
        margin-bottom: 24px;
        box-shadow: 
            0 8px 32px rgba(0, 82, 204, 0.12),
            0 2px 8px rgba(217, 7, 81, 0.08);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    .news-card:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 12px 40px rgba(0, 82, 204, 0.18),
            0 4px 15px rgba(217, 7, 81, 0.1);
    }

    /* Card Header */
    .card-header {
        padding: 20px 24px 16px;
        background: linear-gradient(135deg, #0052cc 0%, #d90751 100%);
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    }

    .header-content {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 1;
    }

    .header-content i {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.2);
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }

    .card-header h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: white;
        letter-spacing: -0.2px;
    }
    
    /* Card Content */
    .card-content {
        padding: 20px 24px;
        max-height: 300px;
        overflow-y: auto;
    }

    /* Loading State - Simplified using class names from the original HTML */
    .loading-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        color: #666;
        gap: 12px;
    }

    /* Using the existing spin animation for a cohesive look */
    .loading-spinner {
        width: 32px;
        height: 32px;
        border: 3px solid rgba(0, 82, 204, 0.1);
        border-left: 3px solid #0052cc;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .loading-state span {
        font-size: 14px;
        font-weight: 500;
    }
    /* End Loading State */
    
    /* Card Footer */
    .card-footer {
        padding: 16px 24px 20px;
        border-top: 1px solid rgba(0, 82, 204, 0.1);
        background: rgba(0, 82, 204, 0.02);
    }

    /* Button Styling - Re-used for View All and Ad CTA */
    .view-all-btn {
        width: 100%;
        padding: 12px 10px;
        background: linear-gradient(135deg, #0052cc 0%, #d90751 100%);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        position: relative;
        overflow: hidden;
    }

    .view-all-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .view-all-btn:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px rgba(0, 82, 204, 0.3),
            0 2px 8px rgba(217, 7, 81, 0.2);
    }

    .view-all-btn:hover::before {
        left: 100%;
    }

    .view-all-btn:active {
        transform: translateY(0);
    }

    /* --- NEW AD CARD STYLING --- */
    .ad-card {
        padding: 0; /* Remove internal padding of news-card to allow image to span width */
    }

    .ad-content-wrapper {
        padding-bottom: 24px;
    }

    .ad-header {
        padding: 16px 24px 8px;
        display: flex;
        align-items: center;
        background: none; /* Override news-card header gradient */
    }

    .ad-header i {
        font-size: 18px;
        color: #d90751; /* Use accent color for icon */
        margin-right: 8px;
        background: transparent;
        width: auto;
        height: auto;
    }

    .ad-header h4 {
        font-size: 16px;
        font-weight: 700;
        color: #333;
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
    }

    .ad-image-container {
        overflow: hidden;
        margin-bottom: 15px;
        /* Ensures border radius aligns with container */
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .ad-image {
        width: 100%;
        height: 180px; /* Fixed height for visual consistency */
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
        filter: brightness(0.95); /* Slight darkening for text contrast if text were on image */
    }

    .ad-card:hover .ad-image {
        transform: scale(1.05);
        filter: brightness(1);
    }

    .ad-body {
        padding: 0 24px;
    }

    .ad-title {
        font-size: 15px;
        font-weight: 700;
        color: #0052cc;
        margin-bottom: 8px;
        letter-spacing: -0.2px;
    }

    .ad-description {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    .ad-cta {
        /* Customize CTA button to differentiate it, using a different gradient direction */
        background: linear-gradient(135deg, #d90751 0%, #0052cc 100%); 
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .right-sidebar {
            width: 100%;
            position: static;
            height: auto;
            padding-left: 0;
            padding-right: 0;
            margin-top: 20px;
        }
        
        .news-card, .ad-card {
            border-radius: 15px;
        }

        .ad-body {
            padding: 0 16px;
        }
        .ad-header {
            padding: 12px 16px 8px;
        }
        .ad-image {
             height: 150px;
        }
    }



/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #016DEA, red);
    font-size: 14px;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
    margin-bottom: 2remx;
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    display: inline-block;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea,select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
form  input:focus , form textarea:focus{
    border: 1px  solid  #016DEA;
    outline: none;
    border-right-color: red;
    border-left-color: red;
}
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* color: transparent; */
    background: linear-gradient(135deg, #016DEA, red);
}

.btn-primary {
    color: white;
    background-color: blue;
}

.btn-secondary {
    background: transparent;
    background-color: red;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        padding: 8px 15px;
    }
    
    .search-bar {
        margin: 0 10px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .left-sidebar {
        width: 30%;
    }
    
    .feed {
        width: 70%;
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .profile-toggle {
        display: block !important;
    }
    
    .header-container {
        flex-wrap: wrap;
        padding: 8px 15px 10px;
        gap: 10px;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .nav-links {
        order: 2;
        width: auto;
        margin-left: auto;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin: 8px 0 0 0;
        z-index: 95; /* Lower than sidebar but above content */
    }
    
    .search-bar input {
        max-width: 100%;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-item span {
        display: none;
    }
    
    main {
        flex-direction: column;
        height: auto;
        margin-top: 90px;
    }
    
    .left-sidebar, .feed {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .profile-info h2 {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .post-options {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .post-option {
        flex: 1 1 45%;
        justify-content: center;
    }
.profile-toggle{
    display: none !important;
}
    /* Mobile profile section */
    .left-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background: white;
        z-index: 100; /* Higher than header */
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding: 0;
        margin: 0;
    }
    
    .left-sidebar .profile-card {
        margin-top: 0;
        border-radius: 0;
    }

    .left-sidebar.active {
        left: 0;
    }

    .profile-toggle {
        display: none !important;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 95; /* Below sidebar but above header */
    }

    .overlay.active {
        display: block;
    }
}

/* post reation  */
/* Post Actions Styling */
.post-action {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #65676b;
    font-weight: 600;
    font-size: 14px;
}

.post-action:hover {
    background-color: #f2f2f2;
}

.post-action i {
    margin-right: 8px;
    font-size: 16px;
}

/* Like button active state */
.post-action.liked {
    color: #1877f2;
}

/* Comments Section */
.post-comments {
    padding: 10px 0;
    border-top: 1px solid #f0f2f5;
    margin-top: 10px;
    display: none; /* Hidden by default */
}

.comment {
    display: flex;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.comment-username {
    font-weight: 600;
    font-size: 13px;
    margin-right: 8px;
}

.comment-time {
    font-size: 11px;
    color: #65676b;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Add Comment Form */
.add-comment {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.comment-input {
    flex: 1;
    border: 1px solid #dddfe2;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    background-color: #f0f2f5;
    transition: background-color 0.2s ease;
}

.comment-input:focus {
    background-color: #fff;
    border-color: #bcc0c4;
}

.post-comment-btn {
    background: none;
    border: none;
    color: #1877f2;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
    padding: 0 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.post-comment-btn:hover {
    background-color: #f0f2f5;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #65676b;
}

.share-options {
    margin: 15px 0;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background-color 0.2s;
}

.share-option:hover {
    background-color: #f0f2f5;
}

.share-option i {
    margin-right: 10px;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    color: #1877f2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-action {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .post-action i {
        margin-right: 5px;
    }
    
    .comment-input {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .post-comment-btn {
        padding: 0 10px;
        font-size: 13px;
    }
}

/* Animation for like button */
@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.post-action.liked i {
    animation: bounce 0.3s ease;
}

/* Scrollbar styling for comments */
.post-comments {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.post-comments::-webkit-scrollbar {
    width: 6px;
}

.post-comments::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.post-comments::-webkit-scrollbar-thumb {
    background: #bcc0c4;
    border-radius: 10px;
}

.post-comments::-webkit-scrollbar-thumb:hover {
    background: #8d949e;
}

/* Loading state */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1877f2;
    font-size: 24px;
}
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-box {
    background: white;
    border-radius: 8px;
    /* padding: 15px; */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* left new  */
/* Left Sidebar Styles */
.left-sidebar {
    width: 30%;
    overflow-y: auto;
    position: sticky; 
    top: 72px;
    padding-right: 10px;
}

/* Profile Card */
.profile-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-banner {
    height: 60px;
    background: linear-gradient(135deg, #016DEA, red);
}

.profile-info {
    padding: 20px;
    text-align: center;
    position: relative;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin: -50px auto 10px;
    background-color: #ddd;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* color: white; */
    font-weight: 600;
}

.profile-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding: 15px 0 5px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .number {
    font-weight: 600;
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-item .label {
    font-size: 12px;
    color: #666;
}

/* Main Sections */
.section-card {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    padding: 15px;
    background: linear-gradient(150deg, #1A62D2 30%, red);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.section-header i {
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.section-card.active .section-content {
    max-height: 1000px; /* Adjust based on content */
}

.section-card.active .section-header i {
    transform: rotate(180deg);
}

/* Section Items */
.section-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.section-item:last-child {
    border-bottom: none;
}

.section-item:hover {
    background-color: #f0f0f0;
    padding-left: 20px;
}

.section-item i {
    margin-right: 10px;
    color: #666;
    width: 20px;
    text-align: center;
}
/* new new  */
/* Main Sections - Your existing CSS */
.section-card {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    padding: 15px;
    background: linear-gradient(150deg, #1A62D2 30%, red);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.section-header i {
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.section-card.active .section-content {
    max-height: 1000px; /* Adjust based on content */
}

.section-card.active .section-header i {
    transform: rotate(180deg);
}

/* Section Items */
.section-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.section-item:last-child {
    border-bottom: none;
}

.section-item:hover {
    background-color: #f0f0f0;
    padding-left: 20px;
}

.section-item i {
    margin-right: 10px;
    color: #666;
    width: 20px;
    text-align: center;
}

/* New styles for sub-items */
.sub-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f5f5f5;
}

.section-item.has-sub.active .sub-items {
    max-height: 500px;
}

.section-item.has-sub.active .sub-arrow {
    transform: rotate(180deg);
}

.section-item.has-sub {
    position: relative;
}

.sub-arrow {
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.sub-item {
    padding: 10px 15px 10px 40px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sub-item:hover {
    background-color: #eaeaea;
    padding-left: 45px;
}

.sub-item:last-child {
    border-bottom: none;
}

.sub-item i {
    margin-right: 10px;
    color: #888;
    width: 20px;
    text-align: center;
}

/* Container for navigation */
.navigation-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* main new new  */
/* Main Sections - Your existing CSS */
.section-card {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    padding: 15px;
    background: linear-gradient(150deg, #1A62D2 30%, red);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.section-header i {
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.section-card.active .section-content {
    max-height: 1000px; /* Adjust based on content */
}

.section-card.active .section-header i {
    transform: rotate(180deg);
}

/* Section Items */
.section-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.section-item:last-child {
    border-bottom: none;
}

.section-item:hover {
    background-color: #f0f0f0;
    padding-left: 20px;
}

.section-item i {
    margin-right: 10px;
    color: #666;
    width: 20px;
    text-align: center;
}

/* New styles for main options and sub-options */
.main-option {
    font-weight: 600;
    background-color: #f0f5ff;
    border-left: 3px solid #1A62D2;
}

.sub-options {
    background-color: #f8f9fa;
    border-left: 3px solid #e9ecef;
}

.sub-option {
    padding-left: 30px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #e9ecef;
}

.sub-option i {
    color: #888;
    font-size: 12px;
}

.sub-option:hover {
    background-color: #e9ecef;
    padding-left: 35px;
}

/* Container for navigation */
.navigation-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .left-sidebar {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 72px);
        background: white;
        z-index: 90;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        padding: 15px;
    }
    
    .left-sidebar.active {
        left: 0;
    }
    
    .profile-card,
    .section-card {
        border-radius: 5px;
    }
    
    .section-header {
        padding: 12px;
    }
    
    .section-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .left-sidebar {
        width: 90%;
    }
    
    .section-header h3 {
        font-size: 15px;
    }
    
    .section-item {
        font-size: 13px;
    }
}


/* Events Section Styles */
#eventsContainer {
    min-height: 100px;
    position: relative;
}

.loading-events,
.no-events,
.error-message {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.loading-events {
    background: url('../img/loading.gif') no-repeat center 20px;
    padding-top: 50px;
    background-size: 30px;
}

.error-message {
    color: #d32f2f;
}

/* Events and Blog Posts */
#eventsContainer,
#blogsContainer {
    min-height: 100px;
    position: relative;
}

.loading-events,
.loading-blogs,
.no-events,
.no-blogs,
.error-message {
    padding: 10px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 5px;
}

.event-location {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Blog Posts Styles */
#blogsContainer {
    min-height: 100px;
    position: relative;
}

.loading-blogs,
.no-blogs,
.error-message {
    padding: 10px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Blog List Styles */
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-item {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-title {
    color: #2c3e50;
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 5px;
}

.blog-excerpt  {
    color: #555;
    font-size: 0.8em;
    line-height: 1.5;
    margin: 5px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-meta {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.8em;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-author {
    font-weight: 500;
    color: #3498db;
}

.blog-date {
    color: #95a5a6;
}

/* notification styles */
.blog-title {
    /* background-color: red; */
    border-top: 1px solid  rgb(218, 217, 217);
}
/* .blog-title  strong{ */
.blog-title strong , .event-title strong , .event-date  , .event-location{
    font-size: 12px;
    text-transform: capitalize;   
}

/* messages */
/* Main Messages Container */
.messages-container {
    position: fixed; /* Stays fixed on the screen */
    bottom: 10%;
    right: 20px;
    width: 350px;
    height: 70vh;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column; /* Stacks header, content area vertically */
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden; /* Ensures content stays within rounded corners */

}

.messages-container.active {
    bottom: 0; /* Example for expanding/contracting */
}

/* Header */
.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.header-right {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: #0073b1;
}

/* Content Area - This will dynamically hold either conversation-list or message-view */
.messages-content-area {
    flex: 1; /* Allows this area to take up all available space between header and input */
    display: flex; /* Flex container for conversation list and message view */
    flex-direction: column; /* Stacks children vertically if needed, or just one takes full space */
    position: relative; /* Needed for potential future overlays, though not strictly for this issue */
}

/* Conversation List */
.conversation-list {
    flex: 1; /* Takes full height of messages-content-area when visible */
    overflow-y: auto; /* Enables scrolling for conversations */
    /* border-right: 1px solid #e9ecef; Removed as it's not needed when message-view covers it */
}

.conversation {
    display: flex;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.conversation:hover {
    background: #f5f5f5;
}

.conversation.active {
    background: #e6f2ff;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-details {
    flex: 1;
    min-width: 0; /* Allows content to shrink within flex item */
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.name {
    font-weight: 600;
    color: #333;
}

.time {
    font-size: 12px;
    color: #666;
}

.last-message {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Message View - This is the individual chat window */
.message-view {
    display: none; /* Hidden by default, shown by JS when active */
    flex-direction: column; /* Stacks header, history, input vertically */
    flex: 1; /* Takes up all available space within messages-content-area when visible */
    overflow: hidden; /* Ensures content stays within its bounds */
    /* No absolute positioning here, it's a sibling of conversation-list */
}

.message-view.active {
    display: flex;
}

.message-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.recipient-info {
    display: flex;
    align-items: center;
}

.recipient-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.recipient-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipient-info h4 {
    margin: 0;
    font-size: 16px;
}

.recipient-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Message History */
.message-history {
    flex: 1; /* Allows message history to grow and scroll */
    padding: 15px;
    overflow-y: auto; /* Enables scrolling for messages */
    background: #f9f9f9;
    word-wrap: break-word; /* Ensure long words break */
    overflow-wrap: break-word; /* Modern equivalent */
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 18px;
    position: relative;
    font-size: 14px;
}

.message.received {
    background: white;
    border: 1px solid #e9ecef;
    margin-right: auto;

    max-width: 75%;
    font-size: 14px;
    width: fit-content;
}

.message.sent {
    background: linear-gradient(135deg , blue, red);
    color: white;
    margin-left: auto;
    max-width: 75%;
    font-size: 14px;
    width: fit-content;
    /* text-align: right; */
}
.messages-header h3{
    background: linear-gradient(135deg , blue ,red);
    -webkit-text-fill-color: transparent;
    color: red;
    background-clip: text;
}
.message .time {
    display: block;
    font-size: 10px;
    margin-top: 1px;
    text-align: right;
    color: rgba(255,255,255,0.7);
}

.message.received .time {
    color: #666;
}

/* Message Input */
.message-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e9ebed;
    background: white;
    flex-shrink: 0; /* Prevents input from shrinking */
    align-items: center; /* Vertically aligns input and button */
}

.message-input input {
    flex: 1; /* Allows input to take available space */
    padding: 10px 15px;
    border: 1px solid #d4d6d7;
    border-radius: 20px;
    outline: none;
    min-width: 0; /* Important for flex items to shrink properly */
}

.send-btn {
    background: #0073b1;
    color: white;
    border: none;
    font-size: 10px;

    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    background: linear-gradient(135deg, blue , red);
    flex-shrink: 0; /* Prevents button from shrinking */
}

.send-btn:hover {
    background: linear-gradient(135deg, red ,blue);
    transform: scale(1.05);
}

/* Minimized State */
.messages-container.minimized {
    height: 60px;
    overflow: hidden;
}

.messages-container.minimized .conversation-list,
.messages-container.minimized .message-view {
    display: none;
}

.messages-container.minimized .messages-header {
    border-bottom: none;
}

/* count badge  */
/* New styles for the message badge */
.message-icon-wrapper {
    position: relative;
    display: inline-block;
}

.message-badge {
    position: absolute;
    top: -5px;
    right: -15px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 0 2px white;
}

/* Hide badge when count is zero */
.message-badge[data-count="0"] {
    display: none;
}

/* notifications in navbar */
/* Notifications Container */
.notifications-container {
    position: fixed;
    bottom: -600px;
    right: 20px;
    width: 380px;

    max-height: 600px;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notifications-container.active {
    bottom: 0;
}

/* Notifications Header */
.notifications-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.notifications-header h3 {
    font-size: 18px;
    margin: 0;
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Notifications List */
.notifications-list {
    flex: 1;
    overflow-y: auto;
}

.notifications-section {
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.section-title {
    padding: 5px 15px;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.notification {
    display: flex;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification.unread {
    background-color: #f0f7ff;
}

.notification:hover {
    /* background-color: #f5f5f5; */
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin: 0;
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Notification Detail View */
.notification-detail {
    display: none;
    flex-direction: column;
    height: 100%;
}

.detail-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.back-btn-notification {
    background: none;
    border: none;
    margin-right: 15px;
    cursor: pointer;
    color: #666;
}

.detail-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* Badge for unread notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-badge[data-count="0"] {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative; /* Add this line */
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: 10px; /* Adjust this value (was -8px) */
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
/* cart styling  */
/* Cart Container */
.cart-container {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-container.active {
    right: 0;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-cart:hover {
    color: #333;
}

/* Cart Body */
.cart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #016DEA;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background: #f5f5f5;
    color: black !important;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 0 5px;
}

.remove-item {
    /* color: black; */
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    /* -webkit-text-fill-color: transparent; */
    background: linear-gradient(135deg, #016DEA, red);
    -webkit-background-clip: text;
    background-clip: text;

}

/* Cart Summary */
.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: 600;
    font-size: 16px;
}

.checkout-btn {
    width: 80%;
    padding: 12px;
    background: linear-gradient(135deg, #016DEA, red);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: opacity 0.3s;
}
.action-btn {
    width: 50%;
    padding: 12px;
    background: linear-gradient(135deg, #016DEA, red);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: opacity 0.3s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

/* Empty Cart State */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.empty-cart i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}

.shop-btn {
    padding: 10px 20px;
    background: #016DEA;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nav-item.cart {
    position: relative; /* Required for absolute positioning of badge */
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-badge[data-count="0"] {
    display: none; /* Hide when count is 0 */
}


/* profile drop down  */
/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.profile-dropdown.active {
    display: flex;
}

/* Profile Header */
.profile-header {
    display: flex;
    padding: 20px;
    /* background: linear-gradient(135deg, #016DEA, red); */
    color: white;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid white;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h4 {
    color: black;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.profile-dropdown .profile-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    color: black;
}

/* Dropdown Sections */
.dropdown-section {
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.dropdown-section:last-child {
    border-bottom: none;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item i {
    width: 24px;
    margin-right: 15px;
    color: #666;
    text-align: center;
}

.dropdown-item span {
    font-size: 14px;
}

/* Logout item styling */
.dropdown-section:last-child .dropdown-item {
    color: #ff4d4d;
}

.dropdown-section:last-child .dropdown-item i {
    color: #ff4d4d;
}

/* like share  */
/* Comments section styling */
.comments-section {
    padding: 12px 0;
    margin-top: 12px;
    border-top: 1px solid #e4e6eb;
    display: none; /* Initially hidden */
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #f0f2f5;
}

.comment-user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.comment-content {
    flex: 1;
}

.comment-content strong {
    font-size: 14px;
    color: #050505;
    font-weight: 600;
}

.comment-content p {
    margin: 4px 0;
    font-size: 14px;
    color: #050505;
    line-height: 1.4;
}

.comment-content small {
    font-size: 12px;
    color: #65676b;
}

.add-comment {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid ;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background-color: #f0f2f5;
    border-top-color: blue;
    border-right-color: red;
    border-bottom-color: blue;
    border-left-color: red;
}

.comment-input:focus {
    border-top-color: blue;
    border-right-color: red;
    border-bottom-color: blue;
    border-left-color: red;
    /* border-color: #1877f2; */
    background-color: #fff;
}

.post-comment-btn {
    background: linear-gradient(135deg, #016DEA, red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-comment-btn:hover {
    background: linear-gradient(135deg, red, #016DEA);
}

/* Make sure Font Awesome icons are properly sized */
.comment-action i, .like-action i {
    font-size: 16px;
    margin-right: 4px;
}

/* Add to your CSS */
.like-action.liked {
    color: #1877f2;
}

.like-action.liked i {
    color: #1877f2;
}

.post-action {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.post-action:hover {
    background-color: #f0f2f5;
}
.post-content {
    text-transform:capitalize
    ;
}

/* Like button styles */
.like-action.liked {
    color: #1877f2; /* Facebook blue */
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0.9;
}

.toast.error {
    background: #e74c3c;
}

.toast.success {
    background: #2ecc71;
}

.toast.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Comment section styles */
.comments-section {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.comment {
    display: flex;
    margin-bottom: 10px;
}

.comment-user-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-content {
    flex: 1;
}

.comment-content small {
    color: #777;
    font-size: 0.8em;
}

.add-comment {
    display: flex;
    margin-top: 10px;
}

.comment-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}



.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}


/* see more button  */


/* =====================================================
   MOBILE HEADER & HAMBURGER MENU
===================================================== */

@media (max-width: 768px) {

    /* Hide nav on mobile */
    .v-nav {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 75%;
        background: linear-gradient(180deg, #0026ff, #d40000);
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        transition: left 0.35s ease;
        z-index: 2000;
    }

    /* When nav opened */
    .v-nav.nav-open {
        left: 0;
    }

    /* Nav items mobile look */
    .v-nav .nav-item {
        padding: 14px 25px;
        font-size: 1.2rem;
        color: #fff;
        display: flex !important;
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    /* Hide profile dropdown and desktop elements */
    .profile-dropdown,
    .messages-container,
    .notifications-container {
        display: none !important;
    }

    /* Header restructure */
    .v-header {
        padding: 10px 15px;
        justify-content: space-between;
    }

    .left-section {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .v-logo {
        height: 40px;
        width: auto;
    }

    .search-box {
        display: none;
    }

    /* Show mobile search icon */
    .mobile-search-btn {
        display: block !important;
        color: white;
        font-size: 1.3rem;
    }

    /* Hamburger Button */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        z-index: 2500;
    }

    .hamburger span {
        width: 26px;
        height: 3px;
        background: #fff;
        border-radius: 6px;
        transition: 0.3s;
    }

    /* Close Button */
    .close-mobile-nav {
        display: none;
        position: absolute;
        top: 18px;
        right: 18px;
        font-size: 1.7rem;
        color: #fff;
        cursor: pointer;
        z-index: 3000;
    }

    /* When opened, show close icon */
    .close-mobile-nav.show-close {
        display: block;
    }
}


/* new  */
