/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f7ff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #1565c0;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e74c3c !important; /* Red */
    color: white !important;
    border-radius: 50px;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c0392b !important; /* Darker red */
    transform: scale(1.02);
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #2ecc71 !important; /* Green */
    color: white !important;
    border-radius: 50px;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #27ae60 !important; /* Darker green */
    transform: scale(1.02);
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

section {
    padding: 60px 0;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #4a148c, #7b1fa2);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.logo h1 a {
    color: white;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
    text-decoration: underline;
}

.btn-login {
    background-color: white;
    color: #1565c0;
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

/* Responsive Header */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-color);
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 0 0 0;
        height: 100%;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 25px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 87, 34, 0.9), rgba(230, 74, 25, 0.7)), url('https://images.unsplash.com/photo-1627719172213-abdc931af761?q=80&w=1374');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.cta-buttons {
    display: flex;
    justify-content: center; /* Center the buttons */
    align-items: center; /* Align items vertically */
    margin-top: 30px;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

.cta-buttons .btn 0.9{
    margin: 0 10px;
    padding: 12px 30px;
    font-size: rem;
    position: relative;
    overflow: hidden;
}
.hero .cta-buttons .btn {
    margin: 0 10px; /* Space between buttons */
    padding: 15px 150px; /* Adjust padding for height */
    font-size: 1.1rem !important; /* Font size */
    max-width: auto; /* Set a maximum width */
    display: inline-block; /* Ensure they are inline */
    text-align: center; /* Center text */
}

/* Sequential button animation */
.cta-buttons .btn:nth-child(1) {
    animation: pulse 4s infinite;
    animation-delay: 0s;
}

.cta-buttons .btn:nth-child(2) {
    animation: pulse 4s infinite;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 50%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
}

/* Listings Section */
.listings-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.listing-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.listing-img {
    height: 200px;
    overflow: hidden;
}

.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-info {
    padding: 20px;
}

.listing-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.listing-price {
    font-weight: 600;
    color: #1565c0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.9rem;
    margin-top: 15px;
}

.loading {
    text-align: center;
    color: #777;
    font-style: italic;
}

/* How It Works Section */
.how-it-works {
    background-color: #f3e5f5;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, white, #f3e5f5);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid #2196f3;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: #1565c0;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.step h3 {
    margin-bottom: 15px;
    color: #1565c0;
}

/* Auth Styles */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1565c0;
    border-bottom: 3px solid #1565c0;
}

.tab-content > div {
    display: none;
}

.tab-content > div.active {
    display: block;
}

.login-form h2,
.register-form h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1565c0;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
    color: white;
    padding: 40px 0;
}

footer p {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 30px;
        transition: left 0.3s ease;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.sidebar {
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-user {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.sidebar-user h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.sidebar-user p {
    color: var(--light-text);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu .btn-action {
    margin: 15px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 10px;
    border-left: none;
}

.sidebar-menu .btn-action:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    border-left: none;
}

.main-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dashboard-tab {
    display: none;
    padding: 30px;
}

.dashboard-tab.active {
    display: block;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 3px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recent-activity {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.activity-content h4 {
    margin-bottom: 5px;
}

.activity-time {
    color: var(--light-text);
    font-size: 0.8rem;
}

.loading {
    text-align: center;
    color: var(--light-text);
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.profile-image-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-image-upload img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive Design for Dashboard */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
        justify-content: center;
    }
    
    .sidebar-menu a {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 15px;
        min-width: 120px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-menu a:hover,
    .sidebar-menu a.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .sidebar-menu .btn-action {
        margin: 0;
        flex: 1 1 100%;
    }
    
    .main-content {
        margin-top: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-tab {
        padding: 20px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-image-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bid-card {
        flex-direction: column;
    }
    
    .bid-actions {
        margin-top: 15px;
        display: flex;
        gap: 10px;
    }
}

/* Bid Styles */
.bid-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bid-info {
    flex: 1;
}

.bid-info h3 {
    margin-bottom: 5px;
}

.bid-amount {
    font-weight: 600;
    color: #1565c0;
}

.bid-date {
    color: #777;
    font-size: 0.9rem;
}

.bid-actions button {
    margin-left: 10px;
}

.bid-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-accepted {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Form Styles for Add Listing */
.form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-section form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.input-group {
    position: relative;
}

.input-group input {
    padding-left: 35px;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #777;
}

.image-upload {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.image-upload:hover {
    border-color: #1565c0;
    background-color: #f0f7ff;
}

.image-upload .upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #1565c0;
}

.image-upload .help-text {
    color: #777;
    font-size: 0.9rem;
    margin-top: 5px;
}

.image-upload.highlight {
    border-color: #1565c0;
    background-color: rgba(21, 101, 192, 0.1);
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #e74c3c;
    transition: all 0.2s;
}

.preview-remove:hover {
    background-color: #e74c3c;
    color: white;
}

/* Listing Details Page */
.listing-details-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.listing-gallery {
    flex: 6;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-info-box {
    flex: 4;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.listing-header {
    margin-bottom: 20px;
}

.listing-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.listing-header .price {
    font-size: 1.5rem;
    color: #1565c0;
    font-weight: 600;
}

.listing-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.9rem;
}

.listing-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.seller-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-name {
    font-weight: 600;
}

.seller-rating {
    color: #f5a623;
}

.bid-form {
    margin-top: 20px;
}

.bid-form h3 {
    margin-bottom: 15px;
}

.bid-form .input-group {
    margin-bottom: 15px;
}

.current-bids {
    margin-top: 40px;
}

.current-bids h3 {
    margin-bottom: 15px;
}

.no-bids {
    color: #777;
    font-style: italic;
}

/* Profile Page Styles */
.profile-header {
    background-color: #2a7de1;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid white;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 5px;
}

.profile-role {
    font-size: 1.1rem;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.stat {
    margin: 0 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-tabs {
    display: flex;
    background-color: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-top: -20px;
    position: relative;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
}

.profile-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
}

.profile-tab.active {
    color: #1565c0;
    border-bottom: 3px solid #1565c0;
}

.profile-content {
    background-color: white;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.review-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.review-rating {
    color: #f5a623;
}

.review-comment {
    line-height: 1.7;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

.notification-message {
    flex: 1;
}

:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #e74c3c; /* Red */
    --secondary-hover: #c0392b; /* Darker red */
    --accent-color: #2ecc71; /* Green */
    --accent-hover: #27ae60; /* Darker green */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --heading-color: #2c3e50;
    --text-color: #444;
    --grey-light: #f8f9fa;
    --grey-medium: #e9ecef;
    --grey-dark: #6c757d;
    --success-color: #2ecc71;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --background-color: #f5f5f5;
    --border-color: #dddddd;
    --card-bg: #ffffff;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-menu span {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 25px;
}

/* Updated Card Styling */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Updated Button Styling */
.btn-primary {
    background-color: #e74c3c !important; /* Red */
    color: white !important;
    border-radius: 50px;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c0392b !important; /* Darker red */
    transform: scale(1.02);
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #2ecc71 !important; /* Green */
    color: white !important;
    border-radius: 50px;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #27ae60 !important; /* Darker green */
    transform: scale(1.02);
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

/* Updated Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff7043, #e64a19);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Listing items with updated styling */
.listing-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.listing-item .listing-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.listing-item .price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #1565c0;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* Placeholder images */
.placeholder-image {
    background-color: #bbdefb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    font-size: 14px;
    height: 100%;
    width: 100%;
}

/* Animation effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Add some flair to tabs */
.tabs .tab {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1565c0;
}

/* Improved form styling */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Improved notification styling */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    margin-right: 10px;
    font-size: 18px;
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-error .notification-icon {
    color: var(--danger-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

/* Add animation to elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2, .hero p, .cta-buttons {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
}

.cta-buttons {
    animation-delay: 0.4s;
}

/* Make view details links/buttons darker - with higher specificity */
.listing-details a, 
.btn-view-details,
a.view-details,
a[href*="listing-details"],
a.btn:contains("View Details"),
.listing-card a.btn,
.listing-card .btn,
a.btn-primary[href*="details"],
button.btn-view-details {
    color: white !important;
    background-color: #1565c0 !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    margin-top: 10px !important;
}

.listing-details a:hover, 
.btn-view-details:hover,
a.view-details:hover,
a[href*="listing-details"]:hover,
.listing-card a.btn:hover,
.listing-card .btn:hover,
a.btn-primary[href*="details"]:hover,
button.btn-view-details:hover {
    background-color: #0D47A1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Login page specific styles */
.btn-login.active {
    color: #000 !important;
}

/* Search and Filter Styles */
.listings-filter {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-box button {
    background-color: #1565c0;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #0D47A1;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options select {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    cursor: pointer;
}

.filter-options button {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-options button:hover {
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 5px;
        padding: 10px;
    }
    
    .filter-options select,
    .filter-options button {
        flex: 1 1 100%;
    }
}

/* ===== Why Choose Section ===== */
.why-choose {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    animation: fadeEffect 1s;
}

.testimonial-item.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.7;}
    to {opacity: 1;}
}

.testimonial-content {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content:before {
    content: """;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 70px;
    color: #1565c0;
    opacity: 0.2;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
    color: #666;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1565c0;
    cursor: pointer;
    padding: 0 15px;
}

.dots {
    display: flex;
    gap: 8px;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #1565c0;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1524234897183-9a7df7c70cec?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1650&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-left {
    flex: 1;
    padding-right: 20px;
}

.cta-left h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1565c0;
}

.cta-left p {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: #555;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
    font-weight: bold;
}

.cta-right {
    flex: 1;
    max-width: 450px;
}

.cta-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transform: translateY(-10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.cta-card-header h3 {
    font-size: 28px;
    color: #1565c0;
    margin-bottom: 10px;
}

.cta-card-header p {
    font-size: 16px;
    color: #666;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-buttons .btn {
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background-color: #1565c0;
    color: white;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.cta-buttons .btn-primary:hover {
    background-color: #0d47a1;
    box-shadow: 0 6px 15px rgba(21, 101, 192, 0.4);
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.cta-buttons .btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    .cta-content {
        flex-direction: column;
    }
    
    .cta-left {
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .cta-benefits {
        display: inline-block;
        text-align: left;
    }
    
    .cta-right {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-left h2 {
        font-size: 32px;
    }
    
    .cta-left p {
        font-size: 18px;
    }
    
    .cta-benefits li {
        font-size: 16px;
    }
    
    .cta-card {
        padding: 30px;
    }
    
    .cta-card-header h3 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-left h2 {
        font-size: 28px;
    }
    
    .cta-card {
        padding: 25px;
    }
    
    .cta-buttons .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Button size variants */
.btn-sm {
    padding: 10px 20px;
    font-size: 16px;
    min-width: 140px;
}

.cta-buttons .btn-sm {
    padding: 12px 20px;
    font-size: 16px;
} 