/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image loading states and fallbacks */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.image-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-container img.loading {
    opacity: 0;
}

.image-container img.loaded {
    opacity: 1;
}

.image-container img.error {
    opacity: 0;
}

.image-container::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
    opacity: 0.5;
    display: none;
}

.image-container img.error + .image-container::after {
    display: block;
}

/* Responsive image loading animation */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image fallback styles */
.image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    min-height: 120px;
}

.image-fallback span {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.image-fallback p {
    margin: 0;
    font-size: 0.8rem;
}

/* Background image loading states */
.bg-image-loaded {
    transition: opacity 0.3s ease;
}

.bg-image-error {
    background-image: none !important;
    background-color: #f8f9fa !important;
}

/* Responsive image container improvements */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.image-container img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-container img.loading {
    opacity: 0;
}

.image-container img.loaded {
    opacity: 1;
}

.image-container img.error {
    opacity: 0;
}

/* Optimize images for different network conditions */
@media (prefers-reduced-motion: reduce) {
    .image-container img,
    .listing-image img,
    .blog-image img,
    .gallery-item img,
    .provider-image img,
    .similar-provider img {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .image-fallback {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .image-container {
        border: 2px solid #000000;
    }
}

/* Print styles for images */
@media print {
    .listing-image,
    .blog-image,
    .gallery-item img,
    .provider-image img {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .image-container img {
        max-width: 100% !important;
        height: auto !important;
    }
}

:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --light: #ecf0f1;
    --dark: #34495e;
    --success: #27ae60;
    --home-color: #3498db;
    --auto-color: #e67e22;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--secondary);
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Login Button */
.login-button {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    margin-left: 1rem;
}

.login-button:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 0.3rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.cta-button:hover {
    background-color: #c0392b;
}

.secondary-button {
    background-color: transparent;
    border: 2px solid white;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1 0 auto;
}

/* Big Container Wrapper */
.big-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.big-container .container {
    margin: 2rem auto;
    padding: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.8rem;
}

/* Listings Grid */
/* Listings Grid - Mobile-First Responsive Design */
.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start;
    width: 100%;
}

/* Ensure all cards have equal height in their row */
.listings-grid .listing-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

/* Container for consistent card spacing */
.listings-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tablet (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .listings-container {
        padding: 0 1.2rem;
    }
    
    .listing-card {
        max-width: 100%;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .listings-container {
        padding: 0 1.5rem;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .listings-grid {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Additional consistency helpers */
.listing-card {
    /* Ensure consistent card behavior */
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent text overflow in all sections */
.listing-title,
.listing-location,
.price-emphasis,
.listing-price {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure buttons maintain consistent width */
.action-button {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

/* Flex container for consistent button alignment */
.listing-actions {
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

/* Ensure consistent spacing between elements */
.listing-details > * {
    margin-bottom: 0.75rem;
}

.listing-details > *:last-child {
    margin-bottom: 0;
}

/* Consistent padding for all cards */
.listing-details {
    box-sizing: border-box;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .listing-details {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .listing-details {
        padding: 1rem;
    }
}

/* Infinite Scroll Navigation Buttons */
.scroll-navigation {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--dark), var(--primary));
}

.scroll-btn:active {
    transform: translateY(0);
}

.scroll-up-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.scroll-up-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.scroll-down-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.scroll-down-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* Infinite Loading Indicator */
.infinite-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.infinite-loading-indicator p {
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 500;
}

/* Responsive navigation buttons */
@media (max-width: 768px) {
    .scroll-navigation {
        right: 15px;
        bottom: 15px;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-navigation {
        right: 10px;
        bottom: 10px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Improved Listing Card Styles - Consistent Structure */
.listing-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: clamp(420px, 50vh, 480px);
    max-height: none;
    border: 1px solid #f0f0f0;
    width: 100%;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.listing-card:hover .action-button {
    transform: scale(1.02);
}

/* Responsive Image Container */
.listing-image {
    position: relative;
    flex-shrink: 0;
    height: clamp(160px, 25vh, 200px);
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-image:hover img {
    transform: scale(1.05);
}

/* Responsive Content Container */
.listing-details {
    padding: clamp(1rem, 4vw, 1.5rem);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: clamp(240px, 30vh, 280px);
    max-height: none;
}

/* Title Section - Responsive Height */
.listing-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
    min-height: clamp(2.2rem, 4vh, 2.6rem);
    max-height: clamp(2.8rem, 5vh, 3.2rem);
}

.listing-title {
    margin: 0;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-height: clamp(2.2rem, 4vh, 2.6rem);
    max-height: clamp(2.8rem, 5vh, 3.2rem);
}

/* Rating Badge - Responsive Position */
.listing-rating-badge {
    position: absolute;
    bottom: clamp(8px, 2vw, 12px);
    right: clamp(8px, 2vw, 12px);
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-weight: 700;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    border-radius: 20px;
    padding: clamp(0.3rem, 1.5vw, 0.4rem) clamp(0.6rem, 2vw, 0.8rem);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    border: 2px solid white;
    z-index: 3;
    letter-spacing: 0.5px;
    min-width: clamp(40px, 8vw, 44px);
    text-align: center;
    white-space: nowrap;
}

/* Location Section - Responsive Height */
.listing-location {
    color: #6c757d;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin: 0 0 clamp(0.75rem, 2.5vw, 1rem) 0;
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.4rem);
    line-height: 1.3;
    font-weight: 500;
    min-height: clamp(1rem, 3vh, 1.2rem);
    max-height: clamp(1.8rem, 4vh, 2.4rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-icon {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    opacity: 0.7;
    flex-shrink: 0;
}

/* Skills/Tags Section - Responsive Height */
.listing-skills {
    margin: 0 0 clamp(1.25rem, 3.5vw, 1.5rem) 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.4rem, 1.5vw, 0.5rem);
}

.skill-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: clamp(0.3rem, 1.5vw, 0.4rem) clamp(0.6rem, 2vw, 0.8rem);
    border-radius: 20px;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Price Section - Responsive Height */
.listing-price,
.price-emphasis {
    display: block;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 clamp(1.25rem, 3.5vw, 1.5rem) 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    min-height: clamp(1.8rem, 4vh, 2.2rem);
    max-height: clamp(2.4rem, 5vh, 2.8rem);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-price {
    font-weight: 600;
    color: var(--primary);
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin: 0 0 clamp(0.4rem, 1.5vw, 0.5rem) 0;
    line-height: 1.2;
    min-height: clamp(1.2rem, 3vh, 1.4rem);
    max-height: clamp(1.6rem, 4vh, 1.8rem);
}

/* Action Buttons Section - Responsive Height */
.listing-actions {
    display: flex;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    margin-top: auto;
    min-height: clamp(40px, 8vh, 44px);
    max-height: clamp(44px, 9vh, 48px);
    align-items: center;
}

.action-button {
    flex: 1;
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1rem, 2.5vw, 1.2rem);
    border-radius: 12px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: center;
    min-height: clamp(44px, 8vh, 48px);
    max-height: clamp(48px, 9vh, 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    position: relative;
    border: none;
    outline: none;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.action-button[type="button"], .action-button[type="submit"], button.action-button {
    border: none;
}
.action-button.contact-button, a.action-button.contact-button {
    border: 2px solid var(--primary);
}
a.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-decoration: none;
}

.view-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.view-button:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.view-button:hover::before {
    left: 100%;
}

.view-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.view-button:focus {
    outline: 3px solid rgba(52, 152, 219, 0.3);
    outline-offset: 2px;
}

.contact-button {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-button:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.contact-button:focus {
    outline: 3px solid rgba(39, 174, 96, 0.3);
    outline-offset: 2px;
}

.contact-button i {
    margin-right: 8px;
    font-size: 1.1em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Badges - Responsive Positions */
.listing-badge {
    position: absolute;
    top: clamp(8px, 2vw, 12px);
    right: clamp(8px, 2vw, 12px);
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--success);
    padding: clamp(0.25rem, 1.5vw, 0.3rem) clamp(0.5rem, 1.5vw, 0.6rem);
    border-radius: 8px;
    font-size: clamp(0.7rem, 2.5vw, 0.75rem);
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.listing-badge.boost-premium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    top: clamp(8px, 2vw, 12px);
    right: clamp(8px, 2vw, 12px);
    border-color: #e67e22;
}

.listing-badge:not(.boost-premium) {
    top: clamp(44px, 10vw, 50px);
    right: clamp(8px, 2vw, 12px);
    background: linear-gradient(135deg, var(--secondary), #c0392b);
    color: white;
    border-color: #c0392b;
}

.listing-badge:last-of-type {
    top: clamp(80px, 18vw, 88px);
    right: clamp(8px, 2vw, 12px);
    background: linear-gradient(135deg, var(--home-color), #2980b9);
    color: white;
    border-color: #2980b9;
}

.listing-category-icon {
    position: absolute;
    top: clamp(8px, 2vw, 12px);
    left: clamp(8px, 2vw, 12px);
    /* background-color: rgba(255, 255, 255, 0.98); */
    color: var(--primary);
    padding: clamp(0.4rem, 1.5vw, 0.5rem);
    border-radius: 50%;
    font-size: clamp(1rem, 3vw, 1.2rem);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    /* border: 1px solid rgba(255, 255, 255, 0.9); */
    width: clamp(32px, 8vw, 36px);
    height: clamp(32px, 8vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Responsive Design for Cards - Full Content Display */
@media (max-width: 768px) {
    .listing-card {
        min-height: auto;
        max-height: none;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .listing-image {
        height: clamp(160px, 25vh, 180px);
        flex-shrink: 0;
    }
    
    .listing-details {
        padding: clamp(1rem, 3vw, 1.2rem);
        min-height: auto;
        max-height: none;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .listing-title {
        font-size: clamp(1.1rem, 3.5vw, 1.2rem);
        min-height: auto;
        max-height: none;
        line-height: 1.3;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-title-row {
        min-height: auto;
        max-height: none;
        margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .listing-location {
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        line-height: 1.4;
        margin-bottom: clamp(0.75rem, 2.5vw, 1rem);
    }
    
    .listing-skills {
        margin-bottom: clamp(1.25rem, 3.5vw, 1.5rem);
        flex-wrap: wrap;
    }
    
    .skill-tag {
        margin-bottom: 0.25rem;
    }
    
    .price-emphasis {
        font-size: clamp(1.2rem, 3.5vw, 1.3rem);
        margin-bottom: clamp(1rem, 3vw, 1.25rem);
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-price {
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-actions {
        gap: clamp(0.4rem, 1.5vw, 0.5rem);
        min-height: auto;
        max-height: none;
        margin-top: auto;
        padding-top: 1rem;
    }
    
    .action-button {
        padding: clamp(0.7rem, 2.5vw, 0.8rem) clamp(0.8rem, 2.5vw, 0.9rem);
        font-size: clamp(0.8rem, 2.5vw, 0.85rem);
        min-height: clamp(40px, 7vh, 44px);
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        border-radius: 10px;
    }
    
    .contact-button i {
        font-size: 1em;
        animation: none;
    }
    
    .contact-button:hover i {
        animation: pulse 1.5s infinite;
    }
}

@media (max-width: 480px) {
    .listing-card {
        min-height: auto;
        max-height: none;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .listing-image {
        height: clamp(140px, 25vh, 160px);
        flex-shrink: 0;
    }
    
    .listing-details {
        padding: clamp(0.8rem, 3vw, 1rem);
        min-height: auto;
        max-height: none;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .listing-title {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
        min-height: auto;
        max-height: none;
        line-height: 1.3;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-title-row {
        margin-bottom: clamp(0.4rem, 1.5vw, 0.5rem);
        min-height: auto;
        max-height: none;
    }
    
    .listing-location {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        margin-bottom: clamp(0.6rem, 2vw, 0.75rem);
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        line-height: 1.4;
    }
    
    .skill-tag {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        padding: clamp(0.3rem, 1.5vw, 0.35rem) clamp(0.6rem, 2vw, 0.7rem);
        margin-bottom: 0.25rem;
    }
    
    .price-emphasis {
        font-size: clamp(1.1rem, 3.5vw, 1.2rem);
        margin-bottom: clamp(0.8rem, 2.5vw, 1rem);
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-price {
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-actions {
        flex-direction: column;
        gap: clamp(0.4rem, 1.5vw, 0.5rem);
        min-height: auto;
        max-height: none;
        margin-top: auto;
        padding-top: 1rem;
    }
    
    .action-button {
        width: 100%;
        padding: clamp(0.6rem, 2.5vw, 0.75rem);
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        min-height: clamp(36px, 7vh, 40px);
        max-height: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    
    .listing-rating-badge {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        padding: clamp(0.25rem, 1.5vw, 0.3rem) clamp(0.5rem, 1.5vw, 0.6rem);
        min-width: clamp(36px, 8vw, 40px);
    }
}

/* Loading and No Results States */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-weight: 500;
    color: var(--text-dark);
}

.sort-controls select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Fallback for background images */
.listing-image::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
    opacity: 0.5;
    z-index: 1;
}

.listing-image[style*="background-image"]::before {
    display: none;
}

/* Service Category Badges */
.service-category-home {
    background-color: var(--home-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.service-category-auto {
    background-color: var(--auto-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* Boost Badges */
.boost-featured {
    background-color: #f39c12;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.boost-premium {
    background-color: #9b59b6;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--primary);
    color: white;
    padding: 3rem 1.5rem;
    margin: 3rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.step-card p {
    color: #ecf0f1;
    line-height: 1.6;
}

/* Become Pro Section */
.become-pro {
    text-align: center;
    padding: 3rem 0;
}

.become-pro h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.become-pro p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 320px;
}

@media (max-width: 400px) {
  .modal-content {
    width: 100% !important;
    max-width: 100vw !important;
  }
}

.modal-header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-submit {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #229954;
}

/* Profile Modal Specific Styles */
.profile-modal .modal-content {
    max-width: 800px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid var(--accent);
}

.profile-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.profile-location {
    color: #666;
    margin-bottom: 0.5rem;
}

.profile-rating {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-details {
    margin-bottom: 2rem;
}

.profile-detail-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: bold;
    width: 120px;
    color: var(--primary);
}

.detail-value {
    flex: 1;
}

.profile-bio {
    background-color: var(--light);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.profile-skills {
    margin-bottom: 2rem;
}

.profile-skill {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    margin: 0.2rem;
    font-size: 0.9rem;
}

.profile-contact {
    background-color: var(--success);
    color: white;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.profile-contact p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.profile-contact-button {
    background-color: white;
    color: var(--success);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.profile-contact-button:hover {
    background-color: #f8f9fa;
}

/* My Listings Modal Styles */
.no-listings {
    text-align: center;
    padding: 2rem;
}

.no-listings h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.no-listings p {
    color: #666;
    margin-bottom: 1rem;
}

.my-listings-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.my-listings-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.my-listings-header p {
    color: #666;
}

.listing-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.stat-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.listings-container {
    max-height: 400px;
    overflow-y: auto;
}

.user-listing-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.listing-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.listing-badges {
    display: flex;
    gap: 0.5rem;
}

.status-active {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

.status-pending {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
}



.listing-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.edit-btn {
    background: var(--primary);
    color: white;
}

.edit-btn:hover {
    background: #34495e;
}

.delete-btn {
    background: var(--secondary);
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.device-info-footer {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border-left: 4px solid var(--home-color);
}

.device-info-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Dashboard Styles */
.welcome-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    background: var(--light);
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.quick-actions {
    margin-bottom: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.action-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Authentication Modal Styles */
.auth-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-welcome h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--success);
}

.auth-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.auth-info li {
    margin: 0.3rem 0;
    color: #666;
}

/* Upgrade Modal Styles */
.upgrade-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 2px solid transparent;
}

.plan-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.plan-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success);
    margin-bottom: 1rem;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.plan-card li {
    padding: 0.3rem 0;
    color: #666;
}

.plan-card li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.plan-button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.plan-button.current {
    background: #e9ecef;
    color: #666;
    cursor: default;
}

.plan-button.upgrade {
    background: var(--success);
    color: white;
}

.plan-button.upgrade:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .listing-card {
        min-height: 420px;
        max-height: 480px;
    }
    
    .listing-image {
        height: 200px;
    }
    

    
    .logo {
        font-size: 1.2rem;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        display: none;
        padding: 1rem;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .login-button {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .listing-actions {
        flex-direction: column;
    }
    
    .listing-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        text-align: center;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .upgrade-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-card {
        min-height: 400px;
        max-height: 460px;
    }
    
    .listing-image {
        height: 180px;
    }
    
    .listing-title {
        font-size: 1.1rem;
        min-height: 2.4rem;
    }
    
    .action-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .profile-modal .modal-content {
        width: 98%;
        margin: 5% auto;
    }
} 

/* Custom small checkbox with tick for Advanced Listing Modal */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #bbb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-right: 0.5em;
  vertical-align: middle;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-checkbox:checked {
  border-color: var(--accent);
  background: #fff7ed;
}
.custom-checkbox:checked::after {
  content: '\2713';
  color: var(--accent);
  font-size: 1.1em;
  position: absolute;
  left: 2px;
  top: -2px;
  font-weight: bold;
} 

/* Custom radio for free service selection */
.custom-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #222;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-right: 0.5em;
  vertical-align: middle;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.custom-radio:checked {
  border-color: #222;
  background: #fff;
}
.custom-radio:checked::after {
  content: '\2713';
  color: #111;
  font-size: 1.2em;
  position: absolute;
  left: 2px;
  top: -2px;
  font-weight: bold;
  line-height: 1;
} 

/* Search Filters Section - Modern Styling */
.search-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.07);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-filters .section-title {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    flex: 1 1 180px;
}

.filter-group label {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.filter-group select {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: var(--light);
    color: var(--primary);
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
}

.filter-group select:focus {
    border-color: var(--accent);
}

.search-button {
    display: block;
    margin: 1.2rem auto 0 auto;
    background: var(--secondary);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    transition: background 0.2s, box-shadow 0.2s;
}

.search-button:hover {
    background: #c0392b;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}

/* Blog Section Styles */
.blog-section {
    margin: 4rem auto;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Blog grid base styles are now handled by the responsive classes above */

.blog-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-image:hover img {
    transform: scale(1.05);
}

/* Fallback for background images */
.blog-image::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
    opacity: 0.5;
    z-index: 1;
}

.blog-image[style*="background-image"]::before {
    display: none;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
}

.blog-read-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-read-more:hover {
    color: #c0392b;
}

.blog-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Blog Post Page Styles */
.blog-post-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--primary);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.blog-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-post-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.blog-post-content h2 {
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    font-size: 1.8rem;
}

.blog-post-content h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.blog-back-link:hover {
    color: #c0392b;
}

.blog-back-link::before {
    content: "←";
    font-size: 1.2rem;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
    }
} 

/* Blog Share Bar Styles */
.blog-share-bar {
    margin-top: 1.2em;
    display: flex;
    gap: 0.7em;
    align-items: center;
}
.blog-share-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
    font-size: 1.1em;
}
.blog-share-bar a:hover {
    background: #ececec;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}
.blog-share-bar svg {
    display: block;
} 

 

/* Small Premium Icon Badge */
.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 32px;
  background: #ffe066;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(44,62,80,0.10);
  border: 2px solid #e6c200;
  padding: 0 10px 0 6px;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.premium-badge svg {
  width: 20px;
  height: 20px;
  display: block;
}
.premium-badge .premium-label {
  color: #bfa100;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.03em;
  margin-left: 2px;
}

/* Ensure the badge is on top of the image */
.listing-image { position: relative; } 



.share-cards-area {
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: 1.5px solid #eee;
}
.share-cards-title {
  font-size: 1.08em;
  font-weight: bold;
  margin-bottom: 0.7em;
}
.share-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
}
.share-card-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.13s;
  background: #fff;
  color: #222;
  outline: none;
}
.share-card-btn img {
  width: 20px;
  height: 20px;
}
.share-card-btn.copy { background: #ffe066; color: #bfa100; border: 2px solid #ffe066; }
.share-card-btn.whatsapp { background: #25d366; color: #fff; border: 2px solid #25d366; }
.share-card-btn.facebook { background: #4267B2; color: #fff; border: 2px solid #4267B2; }
.share-card-btn.x { background: #1da1f2; color: #fff; border: 2px solid #1da1f2; }
.share-card-btn.linkedin { background: #0077b5; color: #fff; border: 2px solid #0077b5; }
.share-card-btn.telegram { background: #229ED9; color: #fff; border: 2px solid #229ED9; }
.share-card-btn:active { transform: scale(0.97); }

@media (max-width: 600px) {
  .share-cards-row { flex-direction: column; gap: 0.7em; }
  .share-card-btn { width: 100%; justify-content: center; }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Navigation Styles */
.page-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.back-button:hover {
    background: #f8f9fa;
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.back-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Breadcrumb Styles */
.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    flex: 1;
    text-align: right;
}

.breadcrumb a {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.breadcrumb span {
    color: var(--primary);
    font-weight: 500;
}

/* Results Summary Styles */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-weight: 500;
    color: var(--primary);
}

.sort-controls select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* Loading State Styles */
.loading-state {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

/* Provider Details Styles */
.provider-details {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.provider-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.provider-image {
    position: relative;
    flex-shrink: 0;
}

.provider-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.provider-image:hover img {
    transform: scale(1.02);
}

.provider-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.badge.verified {
    background-color: var(--success);
}

.badge.premium {
    background-color: var(--accent);
}

.provider-info {
    flex: 1;
}

.provider-info h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.provider-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.provider-meta span {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
}

.provider-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.provider-actions {
    display: flex;
    gap: 1rem;
}

.contact-btn {
    background-color: var(--secondary);
}

.share-btn {
    background: var(--home-color);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05em;
    padding: 0.6em 1.6em;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    display: inline-flex;
    align-items: center;
    transition: background 0.18s, box-shadow 0.18s;
}
.share-btn:hover, .share-btn:focus {
    background: #2176bd;
    color: #fff;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
    text-decoration: none;
}

/* Provider Content Styles */
.provider-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.content-main section {
    margin-bottom: 3rem;
}

.content-main h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.service-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.service-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-item p {
    color: #666;
    font-size: 0.9rem;
}

.experience-content {
    display: grid;
    gap: 2rem;
}

.experience-item h3,
.certifications h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.certifications ul {
    list-style: none;
    padding: 0;
}

.certifications li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.certifications li:before {
    content: "✓";
    color: var(--success);
    margin-right: 0.5rem;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Reviews Styles */
.reviews-summary {
    margin-bottom: 2rem;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.rating-stars {
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
}

.total-reviews {
    color: #666;
}

.reviews-list {
    display: grid;
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: bold;
    color: var(--primary);
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.review-text {
    color: #333;
    line-height: 1.5;
}

/* Review Form Styles */
.review-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    box-sizing: border-box;
}

.review-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.review-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.review-form .form-group input,
.review-form .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
}

.review-form .form-group input:focus,
.review-form .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: #fff;
}

.review-form .form-group input::placeholder,
.review-form .form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.review-form .form-group textarea {
    min-height: 100px;
    line-height: 1.5;
}

/* Star Rating Container */
.review-form .star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    flex-direction: row;
}

.review-form .star-rating .star {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    padding: 0.2rem;
    border-radius: 4px;
}

.review-form .star-rating .star:hover,
.review-form .star-rating .star.selected,
.review-form .star-rating .star.hovered {
    color: #f39c12;
    transform: scale(1.1);
}

.review-form .star-rating .star:active {
    transform: scale(0.95);
}

/* Submit Button */
.review-form .cta-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary), #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.review-form .cta-button:hover {
    background: linear-gradient(135deg, #c0392b, var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.review-form .cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.review-form .cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3), 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Sidebar Styles */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card,
.pricing-card,
.availability-card,
.similar-providers {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card h3,
.pricing-card h3,
.availability-card h3,
.similar-providers h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-text {
    color: var(--primary);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.phone-btn {
    background-color: var(--success);
    color: white;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.email-btn {
    background-color: var(--home-color);
    color: white;
}

.contact-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pricing-info {
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.price-value {
    font-weight: bold;
    color: var(--secondary);
}

.pricing-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.availability-info {
    display: grid;
    gap: 0.5rem;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.day {
    font-weight: 500;
    color: var(--primary);
}

.time {
    color: #666;
}

.similar-list {
    display: grid;
    gap: 1rem;
}

.similar-provider {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.similar-provider:hover {
    transform: translateY(-2px);
}

.similar-provider img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.similar-provider:hover img {
    transform: scale(1.1);
}

.similar-provider-info h4 {
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.similar-provider-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design for Provider Details */
@media (max-width: 768px) {
    .page-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .back-button {
        align-self: flex-start;
        width: auto;
    }
    
    .breadcrumb {
        text-align: left;
        order: -1;
    }
    
    .provider-header {
        flex-direction: column;
        text-align: center;
    }
    
    .provider-image img {
        width: 120px;
        height: 120px;
        max-width: 120px;
    }
    
    /* Responsive image adjustments for mobile */
    .listing-image {
        aspect-ratio: 4/3;
    }
    
    .blog-image {
        aspect-ratio: 4/3;
    }
    
    .gallery-item img {
        aspect-ratio: 1/1;
    }
    
    .provider-meta {
        justify-content: center;
    }
    
    .provider-stats {
        justify-content: center;
    }
    
    .provider-actions {
        justify-content: center;
    }
    
    .provider-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-sidebar {
        order: -1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .contact-card,
    .profile-card,
    .pricing-card,
    .availability-card,
    .similar-providers {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .provider-info h1 {
        font-size: 1.5rem;
    }
    
    .provider-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .provider-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .provider-actions {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Review Form Mobile Styles */
    .review-form {
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .review-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .review-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .review-form .form-group input,
    .review-form .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .review-form .star-rating {
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .review-form .star-rating .star {
        font-size: 1.6rem;
        padding: 0.15rem;
    }
    
    .review-form .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Extra small screen image optimizations */
    .provider-image img {
        width: 100px;
        height: 100px;
        max-width: 100px;
    }
    
    .listing-image {
        aspect-ratio: 3/2;
    }
    
    .blog-image {
        aspect-ratio: 3/2;
    }
    
    .similar-provider img {
        width: 40px;
        height: 40px;
    }
    
    /* Review Form Extra Small Screen Styles */
    .review-form {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .review-form h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .review-form .form-group {
        margin-bottom: 1rem;
    }
    
    .review-form .form-group input,
    .review-form .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .review-form .star-rating {
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .review-form .star-rating .star {
        font-size: 1.4rem;
        padding: 0.1rem;
    }
    
    .review-form .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Ensure sidebar cards are visible on mobile */
    .content-sidebar {
        gap: 1rem;
    }
    
    .contact-card,
    .profile-card,
    .pricing-card,
    .availability-card,
    .similar-providers {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* About Page Styles */
.about-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.about-section li:last-child {
    border-bottom: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--secondary);
}

.value-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    color: #666;
    margin: 0;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
} 

/* Rating badge is now positioned on the image, not in the title row */

.listing-bottom-row {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.listing-bottom-row .listing-price {
    margin: 0;
}

.listing-bottom-row .listing-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.5rem;
}

.listing-card.single-row {
  flex-direction: row;
  align-items: center;
  min-height: unset;
  max-height: unset;
  height: auto;
  padding: 1.2rem 1.5rem;
  gap: 1rem;
}

.listing-card.single-row .listing-location,
.listing-card.single-row .main-service,
.listing-card.single-row .listing-price,
.listing-card.single-row .tag {
  max-width: 150px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.listing-card.single-row .main-service {
  font-weight: bold;
  background: #eaf3ff;
  color: #1a3e72;
}

.listing-card.single-row .listing-price {
  font-weight: bold;
  color: #1a3e72;
  font-size: 1.08em;
  flex-shrink: 0;
}

.listing-card.single-row .tag {
  background: #f3f6fa;
  color: #222;
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 0.98em;
  font-weight: 500;
  border: 1px solid #e3e8ee;
  flex-shrink: 1;
}

.listing-card.single-row .btn,
.listing-card.single-row .listing-rating {
  flex-shrink: 0;
  white-space: nowrap;
}

.listing-card.single-row .btn {
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.5rem;
}

.listing-card.single-row .btn-primary {
  background: #1a3e72;
  color: #fff;
}
.listing-card.single-row .btn-primary:hover {
  background: #16335c;
}
.listing-card.single-row .btn-outline {
  background: #fff;
  color: #1a3e72;
  border: 1.5px solid #1a3e72;
}
.listing-card.single-row .btn-outline:hover {
  background: #f3f6fa;
}

.listing-card.single-row .listing-rating {
  background: #fff;
  color: #f39c12;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 6px 16px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .listing-card.single-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .listing-card.single-row .btn {
    margin-left: 0;
  }
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  font-size: 2rem;
  cursor: pointer;
  gap: 0.2em;
}
.star-rating .star {
  color: #ccc;
  transition: color 0.2s;
}
.star-rating .star.selected,
.star-rating .star.hovered {
  color: #f39c12;
}
.star-rating .star:active {
    transform: scale(0.95);
}

/* Profile Card Styles */
.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.profile-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 120px;
    flex-shrink: 0;
}

.profile-value {
    color: #555;
    text-align: right;
    flex: 1;
    word-wrap: break-word;
    max-width: 200px;
}

/* Account type styling */
.profile-value.account-type-individual {
    color: var(--home-color);
    font-weight: 500;
}

.profile-value.account-type-business {
    color: var(--auto-color);
    font-weight: 500;
}

/* Languages styling */
.profile-value.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.language-tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Bio styling */
.profile-value.bio {
    text-align: left;
    line-height: 1.5;
    font-style: italic;
    color: #666;
}

/* Responsive design for profile card */
@media (max-width: 768px) {
    .profile-card {
        padding: 1rem;
    }
    
    .profile-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .profile-label {
        min-width: auto;
    }
    
    .profile-value {
        text-align: left;
        max-width: none;
    }
    
    .profile-value.languages {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .profile-card h3 {
        font-size: 1.1rem;
    }
    
    .profile-info {
        gap: 0.5rem;
    }
    
    .profile-item {
        padding: 0.4rem 0;
    }
}

/* Provider Info Summary in Modal */
.provider-info-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
}

.provider-info-summary p {
    margin: 0.25rem 0;
    color: var(--primary);
    font-size: 0.9rem;
}

.provider-info-summary strong {
    color: var(--dark);
    font-weight: 600;
}

.stat-value.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    justify-content: center;
    align-items: center;
}

.stat-value .language-tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.15em 0.6em;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 500;
    margin: 0 0.1em;
}

.stat-value.account-type-badge {
    display: inline-block;
    padding: 0.45em 1.5em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.12em;
    color: #fff;
    background: linear-gradient(90deg, #3498db 60%, #2176bd 100%);
    margin: 0 auto;
    border: none;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.10);
    letter-spacing: 0.01em;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.stat-value.account-type-badge.business {
    background: linear-gradient(90deg, #e67e22 60%, #f39c12 100%);
}
.stat-value.account-type-badge:hover, .stat-value.account-type-badge:focus {
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.18);
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.08);
}

.stat-value.languages-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    align-items: center;
}
.language-badge {
    display: inline-block;
    background: linear-gradient(90deg, #f4f6fa 60%, #e9ecf3 100%);
    color: #2c3e50;
    border-radius: 999px;
    padding: 0.32em 1.2em;
    font-size: 1.05em;
    font-weight: 600;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 6px rgba(44, 62, 80, 0.07);
    letter-spacing: 0.01em;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.language-badge:hover, .language-badge:focus {
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.13);
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.07);
}

/* Custom Textarea (YouTube-style) */
#customTextArea {
  width: 100%;
  min-height: 80px;
  font-size: 1.15em;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #d3d3d3;
  background: #fafbfc;
  box-shadow: 0 2px 8px rgba(60,60,60,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
  color: #222;
}
#customTextArea:focus {
  border-color: #1a73e8;
  box-shadow: 0 2px 12px rgba(26,115,232,0.10);
  background: #fff;
}
#customTextArea::placeholder {
  color: #888;
  opacity: 1;
  font-size: 1em;
}

/* Blog Card Styles */
.blog-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--accent);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: #888;
    font-weight: 500;
}

.blog-read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: #e67e22;
}

/* Social Media Share Buttons */
.blog-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.share-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Blog Grid Responsive */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        margin-bottom: 0;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-share {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
    }
    
    .share-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .blog-image {
        height: 160px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-share {
        justify-content: center;
    }
    
    .big-container {
        padding: 0 4px;
    }
    
    .big-container .container {
        margin: 0.5rem auto;
        border-radius: 6px;
    }
}

/* --- Blog Grid Consistency --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    min-height: 420px;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-image {
    min-height: 200px;
    height: 200px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Empty card styles removed - no longer needed with responsive layout */

/* --- Enhanced Mobile Responsiveness for Listings --- */
@media (max-width: 600px) {
  .container, main.container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  
  .big-container {
    padding: 0 8px;
  }
  
  .big-container .container {
    margin: 1rem auto;
    border-radius: 8px;
  }
  .listings-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    padding-left: 0;
    padding-right: 0;
  }
  .listing-card {
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 0 auto;
  }
  .listing-image {
    height: 160px !important;
    border-radius: 14px 14px 0 0;
  }
  .listing-details {
    padding: 0.9rem 0.7rem 1.1rem 0.7rem !important;
    min-height: 0;
  }
  .listing-title {
    font-size: 1.05rem !important;
    min-height: unset;
  }
  .listing-title-row {
    margin-bottom: 0.4rem !important;
  }
  .listing-location {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    word-break: break-word;
  }
  .listing-skills {
    gap: 0.3rem !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap;
  }
  .skill-tag {
    font-size: 0.78rem !important;
    padding: 0.28rem 0.6rem !important;
    margin-bottom: 0.2rem !important;
  }
  .price-emphasis {
    font-size: 1.08rem !important;
    margin-bottom: 0.7rem !important;
  }
  .listing-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 0.7rem !important;
  }
  .action-button {
    width: 100% !important;
    min-width: 0;
    font-size: 0.98rem !important;
    padding: 0.8rem 0.5rem !important;
    margin: 0 !important;
  }
  .listing-rating-badge {
    font-size: 0.82rem !important;
    padding: 0.22rem 0.7rem !important;
    min-width: 36px !important;
    right: 10px !important;
    bottom: 10px !important;
  }
  .listing-badge {
    font-size: 0.7rem !important;
    padding: 0.22rem 0.6rem !important;
    top: 8px !important;
    right: 8px !important;
    border-radius: 7px !important;
  }
  .listing-badge.boost-premium {
    top: 8px !important;
    right: 8px !important;
  }
  .listing-badge:not(.boost-premium) {
    top: 36px !important;
    right: 8px !important;
  }
  .listing-badge:last-of-type {
    top: 64px !important;
    right: 8px !important;
  }
}

.listing-bottom-row > .listing-price,
.listing-bottom-row > .price-emphasis {
    margin-left: 20px !important;
}

.listing-bottom-row > .listing-actions {
    margin-left: 0 !important;
}

/* Mobile-First Responsive Styles for Listings Page */

/* Mobile Navigation Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    transition: transform 0.3s ease;
}

/* Mobile Search Container */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.mobile-responsive-textarea {
    width: 100%;
    min-height: clamp(60px, 15vh, 80px);
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    padding: clamp(10px, 3vw, 12px);
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-responsive-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2.5vw, 0.8rem) clamp(1rem, 3vw, 1.2rem);
    background: linear-gradient(135deg, var(--primary), #34495e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, #34495e, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-icon {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.search-text {
    display: inline;
}

/* Mobile-Responsive Modal */
.mobile-responsive-modal {
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    border-radius: 12px;
    position: relative;
}

/* Main Content Mobile Optimization */
.main-content {
    padding-top: 1rem;
}

.listings-section {
    margin-top: 1rem;
}

/* Mobile Navigation Active State */
.nav-menu ul li a.active {
    color: var(--secondary);
    font-weight: 600;
}

/* Mobile Body State */
body.nav-open {
    overflow: hidden;
}

/* Mobile-Specific Header Improvements */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        padding: 0.5rem;
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        color: var(--secondary);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 2rem 1rem;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu ul li {
        width: 100%;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
        font-size: clamp(1rem, 3.5vw, 1.1rem);
    }
    
    .nav-menu ul li a:hover {
        background-color: #f8f9fa;
    }
    
    .login-button {
        display: none;
    }
    
    /* Mobile Search Button */
    .search-text {
        display: none;
    }
    
    .search-btn {
        padding: clamp(0.6rem, 2.5vw, 0.8rem);
        min-width: 44px;
        justify-content: center;
    }
    
    /* Mobile Modal Improvements */
    .modal-content {
        margin: 2vh auto;
        width: 95%;
        max-height: 96vh;
    }
    
    .modal-header {
        padding: 1rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #eee;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(96vh - 80px);
        overflow-y: auto;
    }
    
    .close-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f8f9fa;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .close-button:hover {
        background: #e9ecef;
    }
}

/* Tablet Responsive Improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 1rem;
    }
    
    .mobile-responsive-textarea {
        flex: 1;
    }
    
    .search-actions {
        flex-shrink: 0;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Desktop Enhancements */
@media (min-width: 1025px) {
    .search-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 1rem;
    }
    
    .mobile-responsive-textarea {
        flex: 1;
    }
    
    .search-actions {
        flex-shrink: 0;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .search-text {
        display: inline;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-overlay,
    .nav-menu,
    .search-btn,
    .close-button {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .mobile-responsive-textarea {
        border: 2px solid #000;
    }
    
    .search-btn {
        border: 2px solid #000;
    }
    
    .nav-menu {
        border: 2px solid #000;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .search-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .close-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Print Styles */
@media print {
    .mobile-nav-overlay,
    .mobile-menu-btn,
    .search-actions {
        display: none !important;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-menu ul {
        flex-direction: row;
    }
}

/* Custom Search Bar Styles */
.custom-search-container {
    background: #4a5a67;
    border-radius: 18px;
    padding: 32px 24px 18px 24px;
    max-width: 520px;
    margin: 32px auto 0 auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.custom-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}
.custom-search-icon {
    position: absolute;
    left: 18px;
    font-size: 1.2em;
    color: #bfc9d1;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}
.custom-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 8px 0 0 8px;
    border: none;
    outline: none;
    font-size: 1.1em;
    background: #fff;
    color: #333;
    box-shadow: none;
}
.custom-search-btn {
    padding: 12px 22px;
    border-radius: 0 8px 8px 0;
    border: none;
    background: #e0e4e8;
    color: #4a5a67;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.custom-search-btn:hover {
    background: #d1d5da;
}
.custom-search-options {
    margin-top: 16px;
    display: flex;
    gap: 18px;
    font-size: 0.98em;
    color: #fff;
    justify-content: flex-start;
    width: 100%;
}
.custom-search-options input[type="radio"] {
    accent-color: #fff;
    margin-right: 6px;
}
.custom-search-icons {
    margin-top: 12px;
    display: flex;
    gap: 18px;
    font-size: 1.2em;
    color: #fff;
    width: 100%;
    justify-content: flex-start;
}
@media (max-width: 600px) {
    .custom-search-container {
        padding: 18px 6px 10px 6px;
        max-width: 98vw;
    }
    .custom-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .custom-search-input, .custom-search-btn {
        border-radius: 8px;
        margin-bottom: 8px;
    }
    .custom-search-btn {
        width: 100%;
    }
    .custom-search-options, .custom-search-icons {
        font-size: 0.95em;
    }
}

/* Make custom search bar wider */
.custom-search-container {
    max-width: 800px;
}
.custom-search-form {
    width: 100%;
}
.custom-search-input {
    width: 100%;
}

/* Autocomplete Suggestions Dropdown */
.custom-search-suggestions {
  position: absolute;
  background: #fff;
  width: 100%;
  max-width: 800px;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 0;
  left: 0;
  top: 100%;
  overflow: hidden;
}
.custom-search-suggestions li {
  padding: 12px 18px;
  cursor: pointer;
  color: #333;
  font-size: 1em;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.custom-search-suggestions li:last-child {
  border-bottom: none;
}
.custom-search-suggestions li:hover, .custom-search-suggestions li.active {
  background: #e0e4e8;
}
@media (max-width: 600px) {
  .custom-search-suggestions {
    max-width: 98vw;
    font-size: 0.97em;
  }
}

.suggestion-main {
  font-size: 1.08em;
  color: #222;
  margin-bottom: 2px;
}
.suggestion-meta {
  font-size: 0.97em;
  color: #666;
  display: flex;
  gap: 8px;
  align-items: center;
}
.suggestion-price {
  color: #2c3e50;
  font-weight: bold;
}

.suggestion-rating {
  color: #f39c12;
  font-weight: bold;
  margin-left: 8px;
  font-size: 0.98em;
}
.suggestion-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
  vertical-align: middle;
}
.suggestion-badge.premium {
  background: #ffe066;
  color: #bfa100;
  border: 1px solid #ffe066;
}
.suggestion-badge.verified {
  background: #d4f5e9;
  color: #27ae60;
  border: 1px solid #27ae60;
}

.custom-search-suggestions li {
  display: flex;
  align-items: center;
}
.suggestion-img-wrap {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.suggestion-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e4e8;
  background: #f5f5f5;
}
.suggestion-info {
  flex: 1 1 auto;
  min-width: 0;
}

.suggestion-badge.boosted {
  background: #ff6b35;
  color: #fff;
  border: 1px solid #ff6b35;
}

.suggestion-badge.premium {
  background: #ffe066;
  color: #bfa100;
  border: 1px solid #ffe066;
}

.suggestion-badge.verified {
  background: #d4f5e9;
  color: #27ae60;
  border: 1px solid #27ae60;
}

/* Skill tag suggestions styling */
.custom-search-suggestions li[data-type="skill"] {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
}

.custom-search-suggestions li[data-type="skill"]:hover {
  background: #e3f2fd;
}

.custom-search-suggestions li[data-type="skill"] .suggestion-main {
  color: #007bff;
}

.custom-search-suggestions li[data-type="skill"] .suggestion-meta {
  color: #6c757d;
  font-style: italic;
}

/* Filter styles to replace custom-search-options */
.custom-search-filters {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.9em;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

.filter-select {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.filter-select:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #e0e4e8;
    color: #4a5a67;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.filter-btn:hover {
    background: #d1d5da;
    transform: translateY(-1px);
}

.filter-btn.clear {
    background: #ff6b6b;
    color: #fff;
}

.filter-btn.clear:hover {
    background: #ff5252;
}

@media (max-width: 600px) {
    .custom-search-filters {
        gap: 2px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .filter-group {
        gap: 1px !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    .filter-group label {
        margin-bottom: 1px !important;
        margin-top: 0 !important;
    }
    .filter-select {
        padding: 4px 6px !important;
        font-size: 0.97em !important;
    }
    .filter-btn {
        margin-top: 1px !important;
        padding: 6px 8px !important;
        font-size: 0.97em !important;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50 60%, #34495e 100%);
    color: #fff;
    padding: 12px 0 0 0;
    margin-top: 40px;
    font-size: 1rem;
    border-top: 6px solid;
    border-image: linear-gradient(90deg, #f39c12, #e74c3c, #3498db) 1;
    box-shadow: 0 -4px 32px 0 rgba(44,62,80,0.12);
    position: relative;
    overflow: hidden;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    gap: 8px;
    z-index: 1;
}
.footer-column {
    flex: 1 1 200px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 6px 4px 4px 4px;
    transition: background 0.3s, box-shadow 0.3s;
}
.footer-column:hover {
    background: rgba(243,156,18,0.08);
    box-shadow: 0 2px 16px 0 rgba(243,156,18,0.10);
}
.footer-column h3 {
    color: #f39c12;
    margin-bottom: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(243,156,18,0.10);
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 3px;
}
.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(44,62,80,0.10);
}
.footer-column ul li a:hover {
    color: #f39c12;
    text-shadow: 0 2px 8px rgba(243,156,18,0.18);
}
.footer-services-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.social-links {
    margin-top: 4px;
}
.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f39c12 60%, #e74c3c 100%);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px 0 rgba(243,156,18,0.15);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 2px solid #fff2;
}
.social-links a:hover {
    background: linear-gradient(135deg, #e74c3c 60%, #f39c12 100%);
    color: #fff;
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 4px 16px 0 rgba(231,76,60,0.18);
    border-color: #f39c12;
}
footer .copyright {
    text-align: center;
    padding: 4px 0 2px 0;
    color: #bbb;
    font-size: 0.95rem;
    border-top: 1px solid #34495e;
    margin-top: 12px;
    background: rgba(44,62,80,0.10);
    letter-spacing: 0.5px;
}
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 2px;
    }
    .footer-services-contact {
        flex-direction: column;
        gap: 2px;
    }
}

.join-button {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 0.6em 1.3em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    margin-left: 5px;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}

.join-button:hover {
    background: #219150;
    color: #fff;
}

/* === Responsive Header for About.html (DriveHome) === */
@media (max-width: 600px) {
  header {
    width: 100vw;
    min-width: 0;
    height: 80px;
    max-height: 80px;
    padding: 16px 0;
    box-sizing: border-box;
  }
  .header-container {
    width: 100vw;
    min-width: 0;
    max-width: 538px;
    height: 100%;
    padding: 0 10.76px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-btn {
    display: block !important;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: auto;
    cursor: pointer;
  }
  nav {
    display: none !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  header {
    width: 100vw;
    min-width: 0;
    height: 80px;
    max-height: 80px;
    padding: 16px 0;
    box-sizing: border-box;
  }
  .header-container {
    width: 100vw;
    min-width: 0;
    max-width: 538px;
    height: 100%;
    padding: 0 10.76px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-btn {
    display: block !important;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: auto;
    cursor: pointer;
  }
  nav {
    display: none !important;
  }
}

@media (min-width: 901px) {
  header {
    width: 100vw;
    min-width: 0;
    height: 80px;
    max-height: 80px;
    padding: 16px 0;
    box-sizing: border-box;
  }
  .header-container {
    width: 100vw;
    min-width: 0;
    max-width: 1200px;
    height: 100%;
    padding: 0 10.76px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-btn {
    display: block !important;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: auto;
    cursor: pointer;
  }
  nav {
    display: flex !important;
  }
}

/* === Responsive Header for About.html (DriveHome) === */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block !important;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: auto;
    cursor: pointer;
  }
}
@media (min-width: 901px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Mobile header (cars.co.za style) for Drivehome */
@media (max-width: 900px) {
  .desktop-header { display: none !important; }
  .mobile-header-cars {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    height: 56px;
    padding: 0 16px;
    width: 100vw;
    box-sizing: border-box;
    z-index: 100;
  }
  .mobile-header-cars .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .mobile-header-cars .logo span:first-child {
    color: var(--accent);
    font-weight: bold;
  }
  .profile-icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    margin: 0 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }
  .mobile-menu-btn-cars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
  }
  .mobile-menu-btn-cars span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    margin: 3px 0;
    transition: background 0.2s;
  }
}
@media (min-width: 901px) {
  .mobile-header-cars { display: none !important; }
}

/* Mobile menu styles for cars.co.za style header */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 2rem 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: block !important;
}

.mobile-nav li {
    margin-bottom: 1rem;
    display: block !important;
}

.mobile-nav a {
    color: #fff !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-nav a:hover {
    color: var(--accent) !important;
}

.mobile-auth-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-login-btn,
.mobile-join-btn {
    display: block !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-login-btn {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}

.mobile-login-btn:hover {
    background: #fff;
    color: var(--primary) !important;
}

.mobile-join-btn {
    background: var(--accent);
    color: #fff !important;
    border: 2px solid var(--accent);
}

.mobile-join-btn:hover {
    background: #e67e22;
    border-color: #e67e22;
}

/* Hamburger button animation */
.mobile-menu-btn-cars.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn-cars.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn-cars.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Blog Grid - Adapts to content count */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Desktop Grid Layouts */
@media (min-width: 901px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Single blog post - center it */
    .blog-grid.single-post {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Two blog posts - side by side */
    .blog-grid.two-posts {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Three or more posts - full width */
    .blog-grid.three-plus-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Grid Layouts */
@media (min-width: 601px) and (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Single blog post - center it */
    .blog-grid.single-post {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Two or more posts - two columns */
    .blog-grid.two-plus-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Grid Layouts */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* All posts stack vertically on mobile */
    .blog-grid.single-post,
    .blog-grid.two-posts,
    .blog-grid.three-plus-posts {
        grid-template-columns: 1fr;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Enhanced Blog Card Styles */
.blog-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Single post styling - make it more prominent */
.blog-grid.single-post .blog-card {
    min-height: 450px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.blog-grid.single-post .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Two posts styling - balanced layout */
.blog-grid.two-posts .blog-card {
    min-height: 420px;
}

/* Three plus posts - standard styling */
.blog-grid.three-plus-posts .blog-card {
    min-height: 400px;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .blog-card {
        min-height: 350px;
    }
    
    .blog-grid.single-post .blog-card {
        min-height: 380px;
    }
    
    .blog-grid.two-posts .blog-card,
    .blog-grid.three-plus-posts .blog-card {
        min-height: 350px;
    }
}

.dashboard-button, .mobile-dashboard-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 0.7em 1.5em;
    border-radius: 8px;
    border: none;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    margin-left: 0.5em;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    cursor: pointer;
}
.dashboard-button:hover, .mobile-dashboard-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(243,156,18,0.13);
}

@media (max-width: 900px) {
  #dashboardTopLogoutBtnWrapper { display: none !important; }
}
@media (min-width: 901px) {
  #dashboardTopLogoutBtnWrapper { display: flex !important; }
}