

/* --------------------------- */

.uniform-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding: 0px;
    transition: transform 0.2s;
    position: relative;
    height: 430px; /* Ensure the card takes up full height */
    display: flex;
    align-items: start;
    flex-direction: column; /* Ensures uniform content alignment */
    position: relative; /* Allows absolute positioning of overlay elements */


    height: clamp(300px, 30vw, 430px); /* Dynamically scales between 300px and 430px */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    }

.uniform-card:hover {
    transform: scale(1.00);

}

/* Styling for the uniform name overlay */
.uniform-name-overlay {
    position: absolute;
    bottom: 0; /* Place the overlay at the bottom of the card */
    left: 0; /* Align the overlay to the left */
    width: 100%; /* Make sure the overlay spans the full width of the card */
    height: 70px; /* Set a fixed height for the black bar */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with slight transparency */
    color: white; /* White text */
    display: flex; /* Use flexbox to center the text vertically */
    justify-content: center; /* Horizontally center the text */
    align-items: center; /* Vertically center the text */
    padding: 0; /* Adjust padding for left/right spacing */
    z-index: 1; /* Ensure the overlay is above the image */
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 0; /* No rounded corners */
}

.uniform-text-overlay {
    color:white
}

/* Ensures the image takes up the full width and height of the card */
.uniform-card img {
    width: 100%;
    height: 100%; /* fill the full height of the card */
    object-fit: cover; /* maintain aspect ratio but crop as needed */
    display: block;    /* removes default inline spacing */
    object-position: top; /* Aligns the cropped area to the top of the image */
}

/* ------------------------------------- */

/* Image Container */
.item-image-container {
    width: 100%; /* Full width of the card */
    height: 250px; /* Fixed height for uniformity */
    overflow: hidden; /* Clip any part of the image that overflows */
    display: flex;
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
}

/* Image Styling */
.item-image {
    width: auto; /* Automatically adjust width */
    height: 100%; /* Maintain 100% height */
    object-fit: cover; /* Ensure the image covers the container */
    display: block; /* Prevent inline-block spacing issues */
}


/* --------------- */ 

.add-to-cart-btn, button.add-to-cart-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #007bff; /* Change the color of the cart icon */
}

.add-to-cart-btn:hover, button.add-to-cart-btn:hover {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #0056b3;
}
/* ---------------- */

/* Custom Button Styles */
button, .btn, .btn:hover {
    padding: 8px 16px; /* Adjust as needed */
    color: white;
    margin-right: 8px; /* Add margin between buttons */
    font-size: 1em;
    border-radius: 4px;
}


/* TOP OF PAGE TOGGLE BUTTONS */

.toggle-view-buttons {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    align-items: center;     /* Vertically center the buttons */
    margin-bottom: 20px;     /* Space below the buttons */
}

.toggle-view-buttons .toggle-view-btn {
    background-color: #e0e0e0; /* Light grey background */
    color: #333;               /* Dark grey text */
    border: 1px solid #ccc;    /* Grey border */
    margin: 0 5px;             /* Horizontal spacing between buttons */
    padding: 10px 15px;        /* Padding for button size and vertical centering */
    text-decoration: none;
    border-radius: 4px;        /* Slightly rounded corners */
    display: flex;             /* For vertical alignment */
    align-items: center;       /* Vertically center text */
}

.toggle-view-buttons .toggle-view-btn.active {
    background-color: #b0b0b0; /* Darker grey background for active button */
    border-color: #aaa;        /* Darker border */
    color: #fff;               /* White text for contrast */
}

.toggle-view-buttons .toggle-view-btn:hover {
    background-color: #c0c0c0; /* Slightly darker on hover */
    border-color: #aaa;
    color: #fff;
}

.h2-icon {
    font-size: 1.5em; /* Adjust this to match your h2 size */
    line-height: 1; /* Ensure proper alignment */
}


/* Event Card Styles */

.event-card-small {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Full height of column */
    width: 100%; /* Full width of the column */
    margin-bottom: 0;
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-card-small:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-card-small img {
    height: 250px;     
    width: 100%;    /* Fixed height */
    object-fit: contain;     /* Ensure the image covers the container proportionally */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.event-card-small-body {
    padding: 15px;
    flex-grow: 1;
    color: var(--dark-grey);
}

.event-card-body p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: var(--dark-grey);    
}


.event-card-small-body p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: var(--dark-grey);  
}

