.banner-container {
    max-height: 720px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card:hover .banner-container img {
    transform: scale(1.05);
}

/* Empty state styling */
.empty-state-icon {
    color: #8b5cf6;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Badge styling */
.badge.bg-purple {
    background-color: #8b5cf6 !important;
}



.btn-purple:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.btn-outline-purple {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-outline-purple:hover {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

/* Text colors */
.text-purple {
    color: #8b5cf6 !important;
}

/* Course Card Hover Effect */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-purple {
    background-color: #6d28d9 !important;
}

.text-purple {
    color: #6d28d9 !important;
}

.btn-purple {
    background-color: #6d28d9;
    color: #fff;
    border: none;
}

.btn-purple:hover {
    background-color: #5b21b6;
    color: #fff;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


.navbar .form-control {
    width: 200px;
}

.navbar .btn-search {
    margin-left: 5px;
}

/* Banner Styling */
.post-banner-container {
position: relative;
width: 100%;
max-height: 720px;
overflow: hidden;
background: #000;
}

.post-banner-image {
width: 100%;
height: 100%;
max-height: 720px;
object-fit: cover;
object-position: center;
display: block;
}

.banner-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 150px;
background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}

/* Post Container */
.post-container {
margin-top: -80px;
position: relative;
z-index: 10;
}

.post-container.no-banner {
margin-top: 0;
}

.post-header {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Typography */
.post-title {
font-size: 2.5rem;
font-weight: 700;
color: #1a1a1a;
line-height: 1.2;
}

.author-name {
color: #1a1a1a;
font-size: 0.95rem;
}

.post-date {
font-size: 0.875rem;
}

/* Badge */
.badge.bg-purple {
background-color: #8b5cf6 !important;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

/* Post Content Body */
.post-content-body {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
font-size: 1.1rem;
line-height: 1.8;
color: #333;
}

.post-content-body h1,
.post-content-body h2,
.post-content-body h3 {
color: #8b5cf6;
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 700;
}

.post-content-body h1 { font-size: 2rem; }
.post-content-body h2 { font-size: 1.75rem; }
.post-content-body h3 { font-size: 1.5rem; }

.post-content-body p {
margin-bottom: 1.5rem;
}

.post-content-body img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 2rem 0;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-content-body code {
background: #f5f5f5;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-size: 0.9em;
color: #8b5cf6;
}

.post-content-body pre {
background: #1e1e1e;
color: #fff;
padding: 1.5rem;
border-radius: 8px;
overflow-x: auto;
margin: 1.5rem 0;
}

.post-content-body pre code {
background: none;
color: inherit;
padding: 0;
}

.post-content-body blockquote {
border-left: 4px solid #8b5cf6;
padding-left: 1.5rem;
margin: 2rem 0;
font-style: italic;
color: #666;
}

.post-content-body ul,
.post-content-body ol {
margin-bottom: 1.5rem;
padding-left: 2rem;
}

.post-content-body li {
margin-bottom: 0.5rem;
}

/* Post Footer */
.post-footer {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Buttons */
.btn-purple {
background-color: #8b5cf6;
border-color: #8b5cf6;
color: white;
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}

.btn-purple:hover {
background-color: #7c3aed;
border-color: #7c3aed;
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-outline-purple {
border-color: #8b5cf6;
color: #8b5cf6;
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}

.btn-outline-purple:hover {
background-color: #8b5cf6;
border-color: #8b5cf6;
color: white;
transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
.post-title {
font-size: 2rem;
}
.post-container {
margin-top: -40px;
}
.post-header,
.post-content-body,
.post-footer {
padding: 1.5rem;
}
.share-buttons {
width: 100%;
margin-top: 1rem;
}
}
