/* BookDatings.com - Dating & Relationships Platform - Custom CSS */

/* ==========================================================================
   Base Styles - BookDatings.com Dating Platform
   ========================================================================== */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */

.navbar {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

/* Enhanced Logo Styling */
.navbar-logo {
    height: 45px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-logo:hover {
    transform: scale(1.08) translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.footer-logo {
    height: 55px;
    width: auto;
    filter: brightness(0.95) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

/* Logo Animation */
@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    50% {
        filter: drop-shadow(0 2px 8px rgba(156, 39, 176, 0.3));
    }
}

.navbar-brand:hover .navbar-logo {
    animation: logoGlow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 38px;
    }

    .footer-logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 35px;
    }

    .footer-logo {
        height: 40px;
    }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    background: linear-gradient(45deg, #1e293b, #334155);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.4);
}

.btn-outline-primary {
    border-color: #1e293b;
    color: #1e293b;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: linear-gradient(45deg, #1e293b, #334155);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* ==========================================================================
   Dropdown Menus
   ========================================================================== */

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, #1e293b, #334155);
    color: white;
    transform: translateX(5px);
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Ad Cards & Listings
   ========================================================================== */

.ad-card img {
    object-fit: cover;
    height: 160px;
}

.sticky-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* ==========================================================================
   Profile Page Styles
   ========================================================================== */

.profile-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.05) 0%, rgba(51, 65, 85, 0.05) 100%);
    border: 1px solid rgba(30, 41, 59, 0.1);
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.3);
}

.stat-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-nav {
    border: 1px solid #e9ecef;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #6c757d;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.nav-item:hover {
    background: linear-gradient(45deg, #1e293b, #334155);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.3);
}

.nav-item.active {
    background: linear-gradient(45deg, #1e293b, #334155);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.3);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info-item {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.ad-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.ad-item:hover {
    background: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.no-image-placeholder {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.empty-state {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.empty-icon {
    opacity: 0.5;
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */

.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 2px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

.main-content {
    background: #f8f9fa;
    min-height: 100vh;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.page-header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
}

.table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

.table th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 15px;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    font-weight: 500;
    padding: 6px 12px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 0.2rem rgba(30, 41, 59, 0.25);
}

/* ==========================================================================
   Ad Detail Page Styles
   ========================================================================== */

.ad-header {
    border: 1px solid #e9ecef;
}

.breadcrumb-item a {
    color: #1e293b;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.image-gallery {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    text-align: center;
}

#mainImage {
    transition: transform 0.3s ease;
}

#mainImage:hover {
    transform: scale(1.02);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
}

#imageModal .modal-body {
    padding: 20px;
}

#modalImage {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.thumbnail-gallery {
    justify-content: center;
}

.thumbnail-img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    border-color: #1e293b;
}

.thumbnail-img.active {
    border-color: #1e293b;
    box-shadow: 0 0 10px rgba(30, 41, 59, 0.3);
}

.ad-description,
.ad-details,
.contact-card,
.quick-actions,
.related-ads {
    border: 1px solid #e9ecef;
}

.description-content {
    line-height: 1.8;
    color: #0f172a;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.related-ad-title {
    font-size: 0.9rem;
    line-height: 1.4;
}

.similar-ad-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.similar-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.similar-ad-image {
    overflow: hidden;
}

.similar-ad-card:hover .similar-ad-image img {
    transform: scale(1.05);
}

.similar-ad-image img {
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Ad Detail Page Styles
   ========================================================================== */

.ad-detail-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #1e293b;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.action-buttons .btn-group .btn {
    border-radius: 8px;
    margin-right: 5px;
}

.thumbnail-img {
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.related-ad-item {
    transition: all 0.3s ease;
}

.related-ad-item:hover {
    background: #f8f9fa !important;
    transform: translateX(5px);
}

.keywords-section {
    background: #f8f9fa;
}

.keywords-list .badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

.keywords-list .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(30, 41, 59, 0.3);
}

/* ==========================================================================
   Safety Tips Section
   ========================================================================== */

.safety-tips-section {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.safety-tips-section .text-warning {
    color: #f57c00 !important;
}

/* ==========================================================================
   Location Information Section
   ========================================================================== */

.location-info-section {
    background: rgba(13, 202, 240, 0.1);
}

.location-highlights .badge {
    background: rgba(13, 202, 240, 0.2) !important;
    color: #0dcaf0 !important;
}

/* ==========================================================================
   Category Guide Section
   ========================================================================== */

.category-guide-section {
    background: rgba(25, 135, 84, 0.1);
}

.guide-item h6 {
    color: #198754 !important;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    background: #f8f9fa;
}

.accordion-button {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, #1e293b, #334155);
    color: white;
    border-color: transparent;
}

.accordion-body {
    background: white;
    border-radius: 8px;
}

/* ==========================================================================
   Related Questions Section
   ========================================================================== */

.related-questions-section {
    background: rgba(30, 41, 59, 0.1);
}

.question-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.question-item:hover {
    background: #f8f9fa !important;
    transform: translateX(5px);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

/* ==========================================================================
   Lazy Loading
   ========================================================================== */

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .ad-header {
        text-align: center;
    }

    .price-display {
        margin-top: 20px;
    }

    .thumbnail-gallery {
        justify-content: center;
    }

    .contact-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .profile-header .col-md-3 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .dashboard-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .ad-item .btn-group-vertical {
        margin-top: 1rem;
    }

    .action-buttons {
        margin-top: 15px;
    }

    .contact-card {
        margin-top: 20px;
    }

    .stats-card {
        margin-bottom: 20px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-group .btn {
        font-size: 0.875rem;
        padding: 8px 12px;
    }

    .stats-card {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .navbar,
    .action-buttons,
    .contact-card,
    .safety-tips-section,
    .faq-section,
    .related-questions-section,
    .sticky-wa {
        display: none !important;
    }

    .ad-detail-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Ad List Page Styles
   ========================================================================== */

.ad-list-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.ad-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.ad-list-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-list-item:hover .ad-list-image img {
    transform: scale(1.05);
}

.ad-list-item .ad-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.ad-list-item .ad-actions .btn {
    width: 100%;
    font-weight: 500;
}

.ad-list-item .ad-meta .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.ad-list-item .ad-stats {
    border-top: 1px solid #f8f9fa;
    padding-top: 0.75rem;
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */

.hero-section {
    background-size: cover;
    background-position: center;
}

.search-container {
    backdrop-filter: blur(10px);
}

.section-title {
    color: #1e293b;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #1e293b, #334155);
    border-radius: 2px;
}

.category-card,
.city-card,
.ad-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.category-card:hover,
.city-card:hover,
.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.category-icon,
.city-icon,
.feature-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon,
.city-card:hover .city-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.ad-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.ad-image-container img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-card:hover .ad-image-container img {
    transform: scale(1.05);
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card:hover .ad-overlay {
    opacity: 1;
}

.ad-actions {
    text-align: center;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-section {
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gradient {
    background: linear-gradient(45deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #1e293b, #334155) 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.05) 0%, rgba(51, 65, 85, 0.05) 100%);
}

/* ==========================================================================
   SEO Content Sections Styling
   ========================================================================== */

.seo-content-sections {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-heading {
    color: #1e293b;
    font-weight: 700;
    border-bottom: 3px solid #1e293b;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #1e293b, #334155);
    border-radius: 2px;
}

.keywords-grid .badge {
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.keywords-grid .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ask-item {
    transition: all 0.3s ease;
    border-left: 4px solid #1e293b;
}

.ask-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip-card {
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accordion-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.accordion-body {
    background: #f8f9fa;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #0f172a;
    text-align: justify;
    margin-bottom: 1.2rem;
}

.safety-section .list-unstyled li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.safety-section .list-unstyled li:hover {
    background: rgba(30, 41, 59, 0.05);
    padding-left: 1rem;
    border-radius: 8px;
}

/* ==========================================================================
   Ad Listing Carousel Styling
   ========================================================================== */

.ad-list-image .carousel {
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.ad-list-image .carousel-control-prev,
.ad-list-image .carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.ad-list-image:hover .carousel-control-prev,
.ad-list-image:hover .carousel-control-next {
    opacity: 1;
}

.ad-list-image .carousel-control-prev {
    left: 5px;
}

.ad-list-image .carousel-control-next {
    right: 5px;
}

.ad-list-image .carousel-control-prev-icon,
.ad-list-image .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 12px;
}

.ad-list-image .carousel-item img {
    transition: transform 0.3s ease;
}

.ad-list-image:hover .carousel-item img {
    transform: scale(1.02);
}

/* ==========================================================================
   Enhanced Image Gallery Styling
   ========================================================================== */

.main-display-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-display-image:hover {
    transform: scale(1.02);
}

.main-image-container {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.main-nav-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.thumbnail-gallery-wrapper {
    max-height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 10px;
}

.thumbnail-gallery {
    min-width: max-content;
}

.thumbnail-item {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
}

.thumbnail-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail-img:hover {
    border-color: #1e293b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: #1e293b;
    box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.3);
}

.quick-view-btn {
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item:hover .quick-view-btn {
    opacity: 1;
}

.thumbnail-controls .btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Grid Modal Styling */

/* ==========================================================================
   Ad List Page Additional Styles
   ========================================================================== */

.page-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats {
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-actions {
    margin-top: 20px;
}

.filters-section {
    border: 1px solid #e9ecef;
}

.ad-list-item {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.ad-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.ad-list-image {
    overflow: hidden;
    border-radius: 15px 0 0 15px;
    height: 90%;
    min-height: 180px;
}

.ad-list-image img {
    transition: transform 0.3s ease;
}

.ad-list-item:hover .ad-list-image img {
    transform: scale(1.05);
}

.pagination-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.no-results-icon {
    opacity: 0.5;
}

.ad-footer {
    text-align: right;
}

.card-footer {
    background: #f8f9fa;
}

/* Contact Actions Styling */
.contact-actions {
    z-index: 10;
}

.contact-actions .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-actions .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .filters-section .col-md-6 {
        margin-bottom: 15px;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile Layout Improvements - Keep List View */
    .ad-list-item .row {
        margin: 0;
    }

    /* Mobile: Keep horizontal layout with smaller image on left */
    .col-md-2.col-12 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }

    .col-md-10.col-12 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }

    .ad-list-image {
        border-radius: 15px 0 0 15px;
        margin-bottom: 0;
    }

    .ad-list-image img {
        height: 250px !important;
        border-radius: 15px 0 0 15px;
    }

    .card-body {
        padding: 0.75rem !important;
        padding-bottom: 3rem !important;
    }

    .contact-actions .btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .ad-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .ad-meta .contact-actions {
        display: none !important;
    }

    .card-body {
        position: relative !important;
    }

    .mobile-contact-actions {
        position: absolute !important;
        bottom: 10px !important;
        right: 10px !important;
        display: flex !important;
        gap: 8px;
    }

    .mobile-contact-actions .btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .ad-meta {
        flex-wrap: wrap;
    }

    .ad-meta .badge {
        margin-bottom: 3px;
        font-size: 0.7rem;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .card-text {
        font-size: 0.85rem !important;
    }
}

.gallery-grid-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-grid-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-grid-item:hover .gallery-grid-img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.gallery-grid-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Modal Enhancements */
#imageModal .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
}

#imageModal .btn {
    backdrop-filter: blur(10px);
}

#modalImage {
    transition: all 0.3s ease;
}

/* Scrollbar Styling */
.thumbnail-gallery-wrapper::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.thumbnail-gallery-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-display-image {
        max-height: 400px;
    }

    .thumbnail-img {
        width: 80px;
        height: 80px;
    }

    .main-nav-btn {
        width: 35px;
        height: 35px;
    }

    .gallery-grid-img {
        height: 200px;
    }
}

/* ==========================================================================
   Ad Detail Page Layout Fix
   ========================================================================== */

.col-lg-4 {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 991.98px) {
    .col-lg-4 {
        position: static;
        top: auto;
    }
}

.contact-card,
.quick-actions,
.related-ads {
    margin-bottom: 1.5rem;
}

.row.g-4 {
    align-items: flex-start;
}

/* ==========================================================================
   Modern Footer Styling
   ========================================================================== */

.footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #ffffff;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="40%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand .brand-logo i {
    color: #ffd700;
    font-size: 2rem;
}

.footer-brand .brand-name {
    background: linear-gradient(45deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand .brand-description {
    color: #b8c5d1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link.facebook::before {
    background: linear-gradient(45deg, #3b5998, #4c70ba);
}

.social-link.twitter::before {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.social-link.instagram::before {
    background: linear-gradient(45deg, #e4405f, #fd5949, #fccc63);
}

.social-link.linkedin::before {
    background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.social-link.youtube::before {
    background: linear-gradient(45deg, #ff0000, #cc0000);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-section .section-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a i {
    color: #1e293b;
    width: 20px;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-info .contact-item i {
    color: #1e293b;
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-info .contact-item .contact-label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-info .contact-item a {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info .contact-item a:hover {
    color: #ffffff;
}

.contact-info .contact-item.whatsapp i {
    color: #25d366;
}

.contact-info .contact-item.whatsapp a:hover {
    color: #25d366;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright p {
    margin: 0;
    color: #b8c5d1;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }

    .footer-brand .brand-logo {
        font-size: 1.5rem;
        justify-content: center;
        text-align: center;
    }

    .footer-brand .brand-description {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .copyright {
        text-align: center;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top i {
        font-size: 16px;
    }
}

/* ==========================================================================
   Fixed Contact Buttons for Ad Detail Page
   ========================================================================== */

.fixed-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.contact-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
    text-decoration: none;
}

.contact-btn .btn-icon {
    font-size: 24px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.contact-btn .btn-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.contact-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* Call Button */
.call-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation-delay: 0s;
}

.call-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.call-btn:hover::before {
    opacity: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation-delay: 0.5s;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-btn:hover::before {
    opacity: 1;
}

/* Ripple Effect */
.btn-ripple {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffc107 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 193, 7, 0.6);
    animation: sparkle-dance 2s infinite;
}

.contact-btn:active .btn-ripple {
    width: 120px;
    height: 120px;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Animation for Call Button */
.call-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fixed-contact-buttons {
        right: 15px;
        bottom: 80px;
        gap: 12px;
    }

    .contact-btn {
        width: 55px;
        height: 55px;
    }

    .contact-btn .btn-icon {
        font-size: 20px;
    }

    .contact-btn .btn-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .fixed-contact-buttons {
        right: 10px;
        bottom: 70px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
    }

    .contact-btn .btn-icon {
        font-size: 18px;
    }

    .contact-btn .btn-text {
        font-size: 8px;
    }
}

/* Enhanced Verified Badge */
.verified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #28a745, #20c997, #17a2b8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    animation: verifiedPulse 3s ease-in-out infinite;
    overflow: hidden;
}

.verified-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: verifiedShine 2s ease-in-out infinite;
}

.verified-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(124, 2, 2, 0.555) 0%, transparent 70%);
    border-radius: 20px;
    animation: verifiedGlow 2s ease-in-out infinite alternate;
}

.verified-text {
    position: relative;
    z-index: 2;
}

@keyframes verifiedPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes verifiedShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes verifiedGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

/* Enhanced Premium Ad Styling */
.premium-ad-item {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 50%, #ffffff 100%);
    border: 3px solid transparent !important;
    border-radius: 20px !important;
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.25),
        0 0 0 1px rgba(255, 215, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.premium-ad-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffc107);
    background-size: 200% 200%;
    animation: premiumShimmer 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.premium-ad-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.premium-ad-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.35),
        0 0 0 2px rgba(255, 215, 0, 0.2) !important;
}

.premium-ad-item:hover::after {
    opacity: 0.05;
}

/* Enhanced Premium Ribbon */
.premium-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    z-index: 5;
    width: 120px;
    height: 30px;
    transform: rotate(45deg);
    background: #ff9800;
    color: white;
    line-height: 30px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}



.premium-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: #000;
    font-weight: 800;
    font-size: 0.65rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

@keyframes premiumShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes ribbonFloat {

    0%,
    100% {
        transform: rotate(45deg) translateY(0px);
    }

    50% {
        transform: rotate(45deg) translateY(-2px);
    }
}

@keyframes ribbonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Enhanced Premium Image */
.premium-image {
    border: 4px solid #ffd700;
    border-radius: 15px !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.premium-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.premium-ad-item:hover .premium-image {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    border-color: #ffed4e;
}

.premium-ad-item:hover .premium-image::after {
    opacity: 1;
}

/* Enhanced Premium Title */
.premium-title a {
    background: linear-gradient(45deg, #b8860b, #daa520, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;

}

.premium-title a:hover {
    background: linear-gradient(45deg, #daa520, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Premium Buttons */
.premium-btn {
    background: linear-gradient(45deg, #28a745, #20c997, #17a2b8) !important;
    border: 3px solid #ffd700 !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    border-color: #ffed4e !important;
}

/* Premium Badge for Ad Detail Page */
.premium-badge-detail {
    display: inline-flex;
    align-items: center;
    background: #ffc107;
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #ffc107;
    margin-left: 4px;
    vertical-align: middle;
}

.premium-badge-detail .premium-text {
    font-weight: 700;
}

/* Premium Title for Ad Detail Page */
.premium-title-detail {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    animation: premiumTitleGlow 3s ease-in-out infinite;
}

/* Verified Badge for Ad Detail Page */
.verified-badge-detail {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ca0000, #c91e00, #ff0000);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #28a745;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    animation: verifiedPulse 2.5s ease-in-out infinite;
    overflow: hidden;
}

.verified-badge-detail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: verifiedShine 4s ease-in-out infinite;
}

.verified-badge-detail .verified-text {
    position: relative;
    z-index: 2;
}

.verified-badge-detail .verified-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(211, 0, 0, 0.507) 0%, transparent 70%);
    border-radius: 15px;
    animation: verifiedGlow 2.5s ease-in-out infinite alternate;
}

/* Animations for Detail Page */
@keyframes premiumTitleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

@keyframes verifiedPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
    }
}

@keyframes verifiedShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes verifiedGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

/* Home Page Premium Card Styling */
.premium-card-body {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-top: 3px solid #ffc107;
}

.premium-card {
    border: 3px solid #ffc107 !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4), 0 0 30px rgba(255, 193, 7, 0.2) !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    animation: premium-float 4s ease-in-out infinite;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.6), 0 0 50px rgba(255, 193, 7, 0.3) !important;
    transition: all 0.4s ease;
}

.premium-ribbon {
    position: absolute;
    top: 25px;
    right: -30px;
    z-index: 10;
    transform: rotate(45deg);
    width: 150px;
    text-align: center;
    background: #ff9800;
    color: white;
    line-height: 30px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}


.premium-glow-effect {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    background: linear-gradient(45deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    border-radius: 15px;
    z-index: -1;
    animation: premium-pulse 3s ease-in-out infinite;
}

@keyframes premium-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes ribbon-rainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes ribbon-glow {
    0% {
        background: #ff9800;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 193, 7, 0.5);
    }

    100% {
        background: #ff9800;
        box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5), 0 0 30px rgba(255, 193, 7, 0.7);
    }
}

@keyframes sparkle-dance {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: scale(1.3) rotate(90deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.8) rotate(180deg);
        opacity: 0.6;
    }

    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.9;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes text-shine {
    0% {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 193, 7, 0.6);
    }

    100% {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes premium-pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.5);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
        transform: scale(1);
    }
}

@keyframes ribbon-glow {
    0% {
        background: #ff9800;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 193, 7, 0.5);
    }

    100% {
        background: #ff9800;
        box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5), 0 0 30px rgba(255, 193, 7, 0.7);
    }
}

.text-warning {
    color: #ffc107 !important;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

/* Regular cards styling */
.ad-card:not(.premium-card) {
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.ad-card:not(.premium-card):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* Increase Featured Ads card height */
.ad-image-container {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ad-card {
    min-height: 500px;
}