:root {
    --red: #9B2226;
    --terracotta: #AE5E1A;
    --off-white: #F5F3E7;
    --navy: #2A324B;
    --beige: #E8DDB5;
    --green: #618B4A;
    --blue: #457B9D;
    --purple: #7F5A83;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    color: var(--navy);
    background-color: var(--off-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--red);
}

h2 {
    font-size: 2rem;
    color: var(--terracotta);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--red);
}

h3 {
    font-size: 1.5rem;
    color: var(--navy);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--terracotta);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--red);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--terracotta);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}

.btn-outline:hover {
    background-color: var(--red);
    color: white;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: rgba(232, 221, 181, 0.3);
}

/* Navbar customization specific to main pages - craftsmen.css handles product pages */


/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
    border: 1px solid rgba(232, 221, 181, 0.3);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(232, 221, 181, 0.2);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: var(--beige);
    color: var(--red);
    padding-left: 25px;
}

/* Multi-column dropdown for categories */
.dropdown-menu.categories {
    min-width: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dropdown-menu.categories li {
    border-bottom: 1px solid rgba(232, 221, 181, 0.2);
    border-right: none;
}

.dropdown-menu.categories li:nth-child(odd) {
    border-right: 1px solid rgba(232, 221, 181, 0.2);
}

/* Fix craft fair dropdown overflow - adjust position based on parent */
nav li:nth-last-child(3) .dropdown-menu {
    right: 0;
    left: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.mobile-menu-btn i {
    transition: all 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 5rem;
    background: linear-gradient(rgba(42, 50, 75, 0.7), rgba(42, 50, 75, 0.7)), url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1200&h=600&fit=crop') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.countdown-item {
    margin: 0 1rem;
    text-align: center;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    background-color: var(--red);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carousel Section */
.carousel-section {
    padding: 3rem 0;
    background-color: var(--off-white);
}

.carousel {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 500px;
}

@media (min-width: 768px) {
    .carousel-inner {
        height: 600px;
    }
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 50, 75, 0.2);
    z-index: 1;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 40%, rgba(42, 50, 75, 0.9));
    color: white;
    padding: 8rem 2rem 3rem;
    text-align: center;
    z-index: 15;
    pointer-events: auto;
}

.carousel-caption h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.carousel-btn {
    display: inline-block;
    background-color: var(--red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    z-index: 20;
}

.carousel-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 34, 38, 0.4);
    color: white;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(155, 34, 38, 0.8);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 25;
    border-radius: 50%;
}

.carousel-control:hover {
    background-color: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    top: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--red);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about {
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Features Section */
.features {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Categories Section */
.categories {
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 150px;
    background-color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img i {
    font-size: 3rem;
    color: var(--navy);
}

.category-title {
    padding: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

/* New Business Cards Section */
.new-cards {
    text-align: center;
}

.new-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.business-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

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

.business-card.placeholder {
    opacity: 0.8;
    border: 2px dashed var(--beige);
}

.card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.card-image.placeholder-img {
    background-color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image.placeholder-img i {
    font-size: 4rem;
    color: var(--navy);
    opacity: 0.5;
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--navy);
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-location {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--terracotta);
    font-size: 0.9rem;
}

.card-location i {
    margin-right: 0.5rem;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-expand {
    display: flex;
    align-items: center;
    background: none;
    border: 2px solid var(--beige);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-expand:hover {
    background-color: var(--beige);
    transform: translateY(-2px);
}

.btn-expand i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-expand.expanded i {
    transform: rotate(180deg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.card-expanded {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--beige);
    animation: slideDown 0.3s ease;
}

.expanded-info h4 {
    color: var(--red);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.expanded-info ul {
    list-style: none;
    margin-bottom: 1rem;
}

.expanded-info li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.expanded-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

.contact-preview {
    background-color: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-preview p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.contact-preview i {
    margin-right: 0.5rem;
    color: var(--red);
    width: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 300px;
        overflow: visible;
    }
}

/* Map Section */
.map {
    text-align: center;
}

.map-container {
    height: 500px;
    border-radius: 8px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#leaflet-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.map-info {
    background-color: white;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.map-info h4 {
    color: var(--red);
    margin-bottom: 0.5rem;
}

/* Profile Example Section */
.profile-example {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    overflow: hidden;
}

.profile-header {
    height: 200px;
    background-color: var(--terracotta);
    position: relative;
}

.profile-img {
    width: 120px;
    height: 120px;
    background-color: var(--beige);
    border-radius: 50%;
    position: absolute;
    bottom: -60px;
    left: 2rem;
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img i {
    font-size: 3rem;
    color: var(--navy);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem;
    padding-top: 4rem;
}

.profile-info h3 {
    margin-bottom: 0.5rem;
}

.profile-category {
    display: inline-block;
    background-color: var(--beige);
    color: var(--navy);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.profile-sidebar {
    background-color: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
}

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

.contact-icon {
    width: 30px;
    color: var(--red);
}

.rating {
    color: gold;
    margin-top: 1rem;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
}

.newsletter-form {
    max-width: 600px;
    margin: 3rem auto;
}

.form-control {
    display: flex;
    margin-bottom: 1rem;
}

.form-control input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: 'Raleway', sans-serif;
}

.form-control button {
    border-radius: 0 4px 4px 0;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s;
}

.contact-box:hover {
    transform: translateY(-10px);
}

.contact-box i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.contact-box h3 {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: white;
    padding: 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: white;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--red);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Map Animations */
@keyframes bounce {

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

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

    80% {
        transform: translateY(-5px);
    }
}

.custom-marker {
    background: none !important;
    border: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .profile-content {
        grid-template-columns: 1fr;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .countdown-item {
        margin-bottom: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        margin-bottom: 1rem;
    }

    .map-container {
        height: 350px;
    }

    .carousel-section .container {
        padding: 0 1rem;
    }
    
    .carousel {
        margin: 0;
        border-radius: 8px;
    }

    .carousel-inner {
        height: 400px;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-caption {
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .countdown-number {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .map-container {
        height: 300px;
    }

    .carousel-inner {
        height: 300px;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption {
        padding: 1.5rem 1rem 1rem;
    }
    
    .new-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-expand, .btn-small {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .btn, .carousel-btn {
        text-align: center;
    }

    .carousel-control {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-section .container {
        padding: 0 0.5rem;
    }
}

/* Category Pages Styles */
.category-header {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
    padding-top: 2rem;
}

.back-link:hover {
    color: var(--red);
}

.back-link i {
    font-size: 1rem;
}

.category-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--beige) 0%, var(--off-white) 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
}

.category-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--red) 0%, var(--terracotta) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(155, 34, 38, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(155, 34, 38, 0.3);
}

.category-icon i {
    font-size: 3.5rem;
    color: var(--off-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-hero h1 {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-hero p {
    font-size: 1.2rem;
    color: var(--navy);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Craftsmen Grid */
.craftsmen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.craftsman-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.craftsman-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--beige);
}

.craftsman-card.placeholder {
    cursor: default;
    opacity: 0.8;
}

.craftsman-card.placeholder:hover {
    transform: none;
    border-color: transparent;
}

.card-image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--off-white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--terracotta);
}

.placeholder-image i {
    font-size: 4rem;
    color: var(--terracotta);
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 50, 75, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.craftsman-card:hover .card-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.card-category {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-description {
    color: var(--navy);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.card-location i {
    font-size: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rating .stars i {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    color: var(--navy);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Category Info Section */
.category-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.category-info h2 {
    color: var(--red);
    border-bottom: 2px solid var(--beige);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.category-info h3 {
    color: var(--terracotta);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.category-info li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(174, 94, 26, 0.1);
    position: relative;
    padding-left: 2rem;
}

.category-info li:before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

.category-info li:last-child {
    border-bottom: none;
}

/* Responsive styles for category pages */
@media (max-width: 768px) {
    .category-hero {
        padding: 2rem 1rem;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-icon i {
        font-size: 2.5rem;
    }
    
    .category-hero h1 {
        font-size: 2rem;
    }
    
    .category-hero p {
        font-size: 1rem;
    }
    
    .craftsmen-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-info {
        padding: 2rem 1rem;
    }
    
}

@media (max-width: 480px) {
    .craftsmen-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image-wrapper {
        height: 150px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}