/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #dbe8ff 100%);
    padding: 80px 0;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Category headers */
.category-title {
    border-bottom: 2px solid #ececec;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

/* ===== LINKIT ===== */
/* Linkkien muotoilu */
.small, small {
    font-size: .80em;
}

a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
}

/* ===== SPONSORIKORTIT ===== */
/* Sponsor card image */
.sponsor-img {
    object-fit: cover;
    height: 220px;
    border-radius: 10px 10px 0 0;
}

/* Sponsor cards general */
.sponsor-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Ensure equal heights inside row */
.sponsor-row .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sponsor-card .card-body {
    flex: 1 1 auto;
}

/* CTA button spacing */
.btn-cta {
    margin-top: 10px;
}

/* Buttons */
.btn-cta {
    margin-top: 10px;
}

/* Tee kortista joustava kontti */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

/* Kortin tekstiosan tulee venyä */
.card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Lue lisää -nappi aina kortin alaosaan */
.card .btn-readmore {
    margin-top: auto;
}

