/* Site Roadmaps Base Styles */
.srm-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: clamp(3rem, 5vw, 5rem) 0;
    box-sizing: border-box;
    font-family: var(--srm-font, inherit);
}

.srm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.srm-header {
    text-align: center;
    margin-bottom: 50px;
}

.srm-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
    color: var(--srm-title, inherit);
}

.srm-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--srm-subtitle, inherit);
}

.srm-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.srm-card {
    /* Enforce 3 columns on desktop: (100% - 2 gaps) / 3 */
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    /* Dynamic Props Injected via CSS Vars */
    background-color: var(--srm-card-bg, #ffffff);
    border-radius: var(--srm-radius, 12px);
    box-shadow: var(--srm-shadow, 0 4px 6px rgba(0, 0, 0, 0.05));
}

@media (max-width: 1024px) {
    .srm-card {
        flex: 0 0 calc(50% - 15px);
        /* 2 columns */
    }
}

.srm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--srm-shadow-hover, 0 10px 25px rgba(0, 0, 0, 0.1));
}

.srm-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
}

.srm-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.srm-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.srm-card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 25px;
    flex-grow: 1;
    opacity: 0.8;
}

.srm-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    /* Dynamic Props */
    background-color: var(--srm-btn-bg, #000000);
    color: var(--srm-btn-text, #ffffff);
    border: 1px solid transparent;
}

.srm-btn:hover {
    background-color: var(--srm-btn-bg-hover, #333333);
    color: var(--srm-btn-text-hover, #ffffff);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .srm-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
        /* Space for scrollbar/shadow */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .srm-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .srm-card {
        flex: 0 0 auto;
        flex-direction: row;
        /* Pill Layout */
        align-items: center;
        width: auto;
        min-width: max-content;
        padding: 8px 16px 8px 8px;
        /* Compact padding */
        border-radius: 50px !important;
        /* Force Pill */
        background: #fff;
        /* Ensure contrast */
        border: 1px solid #f0f0f0;
        scroll-snap-align: start;
        height: auto;
    }

    .srm-card:hover {
        transform: none;
        /* Disable hover lift on mobile */
    }

    /* Icon resizing */
    .srm-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
        margin-right: 12px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Title adjustments */
    .srm-card-title {
        font-size: 0.95rem;
        margin: 0;
        white-space: nowrap;
        text-align: left;
    }

    /* Hide extra content */
    .srm-card-desc,
    .srm-btn {
        display: none !important;
    }
}