:root {
    --primary_gradient_270: linear-gradient(
        270deg,
        hsla(348, 95%, 57%, 1) 0%,
        hsla(283, 100%, 50%, 1) 100%
    );
    --primary_gradient_135: linear-gradient(
        135deg,
        hsla(348, 95%, 57%, 1) 0%,
        hsla(283, 100%, 50%, 1) 100%
    );
    --primary_gradient_90: linear-gradient(
        90deg,
        hsla(348, 95%, 57%, 1) 0%,
        hsla(283, 100%, 50%, 1) 100%
    );
    --primary_gradient_0: linear-gradient(
        1deg,
        hsla(348, 95%, 57%, 1) 0%,
        hsla(283, 100%, 50%, 1) 100%
    );
}

body {
    margin: 0;
    padding: 0;
}

.btn-grad {
    background: var(--primary_gradient_270);
    border: none;
    color: black;
}

.home-search-bar-wrapper {
    padding: 2px;
    border-radius: 50px;
    background: var(--primary_gradient_270);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.home-search-bar {
    margin: auto;
}

.home-search-bar .input-group .form-control {
    border: none;
    box-shadow: none;
}

.home-search-bar .input-group-text {
    background: transparent;
    border: none;
}

.home-search-bar .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.home-search-bar .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.home-search-bar .form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

.home-group-card .card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-group-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.home-group-card .card img {
    object-fit: cover;
    height: 200px;
}

.home-group-card .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.joined-section {
    padding: 4rem 1rem;
    position: relative;
}

.scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.scrolling-wrapper .card {
    display: inline-block;
    width: 250px;
    margin-right: .5rem;
    margin-left: .5rem;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scrolling-wrapper .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.scrolling-wrapper img {
    height: 150px;
    object-fit: cover;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--primary_gradient_135);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.scroll-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 1);
}

.scroll-btn-left {
    left: -10px;
}

.scroll-btn-right {
    right: -10px;
}

.scroll-btn i {
    font-size: 1.25rem;
    font-weight: bolder;
    color: white;
}

#JoinedGroupsModal .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
  }

#JoinedGroupsModal .card:hover {
    transform: scale(1.02);
  }

  #JoinedGroupsModal img {
    height: 140px;
    object-fit: cover;
  }

#GroupModal {
    transition: transform 0.2s ease;
}

  #GroupModal img {
    object-fit: cover;
    border-radius: 2rem;
  }

footer {
    width: 100%;
    text-align: center;
    border-top: 3px solid transparent;
    border-image: var(--primary_gradient_90);
    border-image-slice: 1;
    bottom: 0;
    margin-top: auto;
    padding: 10px;
}

footer ul {
    margin-top: 20px;
    list-style: none;
}

footer ul li {
    float: none;
    display: inline-block;
    margin: 0 10px;
    margin-bottom: 0px;
    width: auto;
}

footer ul li a {
    border-bottom: 1px dashed var(--primary);
}
