/* Color Variables from main.css and image */
:root {
    --royal: #334EAC;
    --moon: #F7F2EB;
    --china: #7096D1;
    --asian-pear: #F2F0DE;
    --midnight: #081F5C;
    --dawn: #D0E3FF;
    --jicama: #FFF9F0;
    --porcelain: #EDF1F6;
    --sky: #BAD6EB;
}

/* Page Title and Section Headings */
.page-title {
    text-align: center;
    color: var(--midnight);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: bold;
}

.social-section {
    margin-bottom: 4rem;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    color: var(--royal);
    margin-bottom: 2rem;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--royal), var(--china));
    border-radius: 2px;
}

/* Horizontal Carousel Styles */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 0 -20px;
}

.card-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    gap: 2rem;
    flex: 1;
    /* Hide scrollbar for aesthetics */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.card-carousel::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

.card {
    min-width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(8, 31, 92, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(8, 31, 92, 0.15);
}

/* Updated `card-image` to ensure uniform size */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--china);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--midnight);
    margin-bottom: 0.5rem;
}
.card-content p {
    font-size: 1rem;
    color: var(--royal);
    line-height: 1.5;
}

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

/* Carousel Scroll Buttons */
.scroll-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--royal);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: var(--china);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}

/* Styles for salon cards */
.salon-card {
    display: flex;
    flex-direction: column;
}

.salon-card .card-content {
    padding-bottom: 1rem;
}

.salon-details {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.salon-details .detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--midnight);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.salon-details .detail-item i {
    color: var(--china);
    width: 20px;
    text-align: center;
}

.salon-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.salon-links .btn-link {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.salon-links .btn-link.directions {
    background-color: var(--sky);
    color: var(--midnight);
}

.salon-links .btn-link.directions:hover {
    background-color: var(--china);
    color: white;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .card-carousel {
    display: block; /* Stacks the cards vertically */
    overflow-x: hidden; /* Disables horizontal scrolling */
    padding: 0; /* Removes padding that was forcing horizontal space */
  }

  .card {
    min-width: 100%; /* Makes each card take up the full width */
    margin-bottom: 2rem; /* Adds space between stacked cards */
  }

  .scroll-button {
    display: none; /* Hides the scroll buttons on mobile */
  }

  .carousel-container {
    margin: 0; /* Removes the negative margin */
  }

  .salon-card {
    height: auto; /* Allows the card height to be dynamic */
    min-height: 280px; /* Ensures a minimum height */
  }
}
