.select-wrapper {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;           /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    max-width: 320px;
}

/* Highlight on hover */
.select-wrapper:hover {
    border-color: #999;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Highlight when select is focused */
.select-wrapper:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0,123,255,0.35);
}

/* Reset form spacing so wrapper controls the box */
.select-wrapper form {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Style the select itself */
.select-wrapper select {
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    outline: none;
    width: 100%;
    cursor: pointer;
}

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

.shop-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    min-height: 250px; /* same height for all cards */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card img {
    max-width: 100%;
    height: 120px;           /* fixed image height */
    object-fit: cover;       /* keeps aspect ratio, crops if needed */
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.shop-card p {
    margin: 0;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hover effect */
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slider-img {
  width: 100%;
  height: auto;          /* scales with width */
  max-height: 80vh;      /* optional max height for large screens */
  object-fit: cover;     /* maintains aspect ratio and crops excess */
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .slider-img {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .slider-img {
    max-height: 40vh;
  }
}

@media (max-width: 480px) {
  .slider-img {
    max-height: 30vh;
  }
}

/* Loan section styling */
.post-container .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-container .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery {
    border-radius: 12px;
    transition: transform 0.2s ease-in-out;
}
.gallery:hover {
    transform: scale(1.05);
}

/* iPad Pro / Tablet tweaks */
@media (max-width: 991px) {
    .post-container .col-lg-8,
    .post-container .col-lg-4 {
        padding-left: 12px;
        padding-right: 12px;
    }
}
