/* Modern Navbar Styles Moved from navbar.html */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-modern.sticky-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Brand Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a !important;
    transition: all 0.3s ease;
}

.brand-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.brand-icon {
    color: white;
    font-size: 1.3rem;
}

.navbar-brand:hover .brand-icon-wrapper {
    transform: rotate(-10deg) scale(1.05);
}

.brand-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Nav Links */
.modern-nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.modern-nav-link i {
    font-size: 1.2rem;
}

.modern-nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea !important;
    transform: translateY(-2px);
}

.modern-nav-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea !important;
}

.admin-link:hover {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107 !important;
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

#chat-unread-count {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    line-height: 1;
    min-width: 1.1rem;
    padding: 0.25rem 0.35rem;
    border: 2px solid white;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Search Bar */
.search-wrapper {
    position: relative;
}

.search-input {
    padding-left: 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    width: 200px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    width: 280px;
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Modern Feed Styles Moved from feed.html */
.feed-container {
    max-width: 680px;
    margin: 0 auto;
}

/* Profile Circle */
.feed-profile-circle {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Create Post Card */
.create-post-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
}

.create-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.create-post-card .btn-light {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.create-post-card .btn-light:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.create-post-card .btn-sm {
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.create-post-card .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Post Cards */
.post-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
    animation: fadeIn 0.5s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Post Header */
.post-card h6 {
    font-weight: 600;
    color: #1a1a1a;
}

.post-card h5 {
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.post-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Post Media */
.post-card img,
.post-card video {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.post-card img:hover {
    transform: scale(1.02);
}

/* Post Stats */
.post-card .border-top {
    border-color: #e9ecef !important;
}

.post-card .text-muted {
    color: #6c757d !important;
}

.comments-toggle:hover {
    color: #667eea !important;
    text-decoration: underline;
    transition: all 0.2s ease;
}

/* Post Action Buttons */
.post-card .btn-light {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.post-card .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-card .like-btn:hover i {
    color: #dc3545;
}

.post-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-actions .btn {
    width: 100%;
}

/* Filter Bar */
.card .btn-sm {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.card .btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

.card .btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Image Lightbox Styles */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lightbox-stat i {
    font-size: 1.2rem;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Page Styles Moved from about.html */
.about-wrapper {
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Chat Layout Styles Moved from chat/index.html */
.chat-layout {
    min-height: 70vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 1rem;
}

.chat-sidebar {
    background: #f9fafb;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-main {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    padding: 0.5rem;
}

/* Responsive Chat Styles */
@media (max-width: 991.98px) {
    .chat-layout {
        margin: 0.5rem;
        border-radius: 12px;
    }

    .chat-sidebar {
        max-height: 40vh;
        border-bottom: 1px solid #e9ecef;
    }

    .chat-main {
        max-height: 50vh;
    }
}

@media (min-width: 992px) {
    .chat-layout {
        margin: 1.5rem;
    }

    .chat-sidebar {
        padding: 1rem;
    }

    .chat-main {
        padding: 1rem;
    }
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.chat-bubble {
    display: inline-block;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chat-row.own {
    justify-content: flex-end;
}

.chat-bubble.own {
    background: #e7f1ff;
}

.chat-bubble.other {
    background: #f1f3f5;
}

.chat-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Link Preview Card */
.link-preview-card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-preview-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.link-preview-image {
    width: 140px;
    min-width: 140px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.link-preview-content {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.link-preview-site {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.link-preview-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-description {
    font-size: 0.85rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .link-preview-card {
        flex-direction: column;
    }

    .link-preview-image {
        width: 100%;
        height: 150px;
    }
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.user-dropdown-toggle {
    color: #1a1a1a !important;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    background: rgba(102, 126, 234, 0.05);
}

.user-dropdown-toggle::after {
    display: none;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
    display: block;
    line-height: 1.2;
}

/* PRO Badge */
.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.pro-badge-small {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Modern Dropdown */
.modern-dropdown {
    border-radius: 16px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 240px;
}

.modern-dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #4a5568;
}

.modern-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
}

.modern-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(4px);
}

.modern-dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #1a1a1a;
}

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Navbar Profile Circle */
.navbar-profile-circle {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .modern-nav-link {
        margin: 0.25rem 0;
    }

    .nav-text {
        margin-left: 0.5rem;
    }

    .user-dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Profile Image Styles */
.profile-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Profile Page Styles Moved from profile.html */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-hero-card {
    border-radius: 20px;
    transition: transform 0.3s ease;
    background: white;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-avatar-wrapper {
    position: absolute;
    top: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-avatar-circle {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Modern Badges */
.modern-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-pro {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.badge-free {
    background: #e2e8f0;
    color: #475569;
}

.badge-admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Modern Cards */
.modern-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Buttons */
.btn-modern {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    color: white;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.stat-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
}

.stat-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-primary .stat-icon {
    color: #667eea;
}

.stat-success .stat-icon {
    color: #22c55e;
}

.stat-warning .stat-icon {
    color: #fbbf24;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-cover {
        height: 150px;
    }

    .profile-avatar-wrapper {
        top: 85px;
    }

    .profile-avatar-circle,
    .profile-avatar-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .profile-container {
        padding: 1rem !important;
    }

    .card-body {
        padding-top: 4.5rem !important;
    }
}

/* Post View & Create Styles Moved from templates */
.post-content {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.comment:hover {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.75rem !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.4s ease;
}


/* Info Page Styles Moved from info.html */
.info-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.content-section {
    flex: 1;
}

.card-body h2,
.card-body h3,
.card-body h4 {
    color: var(--bs-primary);
    margin-top: 1.5rem;
}

.card-body h2:first-child,
.card-body h3:first-child,
.card-body h4:first-child {
    margin-top: 0;
}

.card-body p {
    line-height: 1.8;
}

.card-body ul {
    padding-left: 1.5rem;
}

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

/* ============================================
   Advertisement Grid Styles
   ============================================ */

.ad-sidebar {
    padding: 0.75rem;
}

.ad-sidebar-left {
    padding-right: 0.5rem;
}

.ad-sidebar-right {
    padding-left: 0.5rem;
}

.ad-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Ad Card - Small compact design */
.ad-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ad-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.ad-card-body {
    padding: 0.5rem 0.75rem;
    background: white;
}

.ad-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for ad sidebars */
@media (max-width: 1400px) {
    .ad-card-image-wrapper {
        height: 80px;
    }

    .ad-card-title {
        font-size: 0.7rem;
    }
}

@media (max-width: 1200px) {
    .ad-sidebar {
        display: none !important;
    }
}