:root {
    --primary-exact: #3386c8;
    --primary-darker: #296ba0;
    --primary-40darker: #1f5078;
    --primary-heading: #2f3338;
    --primary-text: #383c41;
    --secondary: #e67e22;
    /* Orange accent color */
    --tertiary: #6c8c84;
    /* Muted teal accent */
    --light: #f5f5f5;
    /* Light background */
    --dark: #333;
    /* Dark text color */
    --logo-dark: #2c2e35;
    --new-secondary: #e67e22;
    /* Used in footer */
    --max-width: 1200px;
    /* Standard container width */
    --section-spacing: 5rem;
    /* Vertical spacing between sections */
    --card-radius: 8px;
    /* Standard border radius for cards */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Standard shadow */
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow on hover */
    --transition: all 0.3s ease;
    /* Standard transition */
}


/* Trail Cards Grid */
.geo-trails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Trail Card */
.trail-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Trail Card Image */
.trail-card .trail-image-container {
    position: relative;
    height: 225px;
    overflow: hidden;
}

.trail-card .trail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.trail-card:hover .trail-image {
    transform: scale(1.05);
}

/* Trail Card Content */
.trail-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

/* Trail Stats */
.trail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.trail-stat {
    background-color: #f5f7fa;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 0.9rem;
    color: #555;
    flex-grow: 0;
    white-space: nowrap;
}

/* Trail Button */
.trail-explore-btn-old {
    margin-top: auto;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.trail-explore-btn-old:hover {
    background-color: #2980b9;
}

.trail-explore-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100%;
    /* max-width: fit-content; */
    align-self: center;
    text-align: center;
    padding: 10px 20px;
    margin: 5px 0px;
    margin-top: auto; /* Keep this to maintain bottom alignment */
    position: relative;
    overflow: hidden;
    background-color: var(--primary-darker);
    color: white !important;
    border: 2px solid var(--primary-darker);
}

.trail-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-exact) !important;
    border: 2px solid var(--primary-exact);
}

/* .trail-explore-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 150px;
    text-align: center;
    padding: 10px 20px;
    margin: 5px;
    margin-top: auto !important;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-darker);
    color: white !important;
    border: 2px solid var(--primary-darker);
}

.trail-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-exact) !important;
    border: 2px solid var(--primary-exact);
} */

.trail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    min-height: 3rem; /* About 2 lines of text at this font size */
    display: flex;
    align-items: flex-start;
}

/* Add this to your existing media query for smaller screens */
@media (max-width: 768px) {
    .trail-title {
        min-height: 2.6rem; /* Slightly smaller on tablets */
    }
}

@media (max-width: 480px) {
    .trail-title {
        min-height: 0; /* Remove min-height on phones - stacking is ok */
    }
}




/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-trails-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .trail-title {
        font-size: 1.1rem;
    }
    
    .trail-stats {
        gap: 8px;
    }
    
    .trail-stat {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .geo-trails-grid {
        grid-template-columns: 1fr;
    }
    
    .trail-card .trail-image-container {
        height: 200px;
    }
}