p {
    font-size: 17px;
    color: white;
}
.montserrat {
    font-family: "Montserrat", sans-serif !important;
}

.open-sans {
    font-family: "Open Sans", sans-serif !important;
}

div > p {
    font-family: "Open Sans" !important;
}

.tailwind-reset {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.lower-container,
.web-link {
    display: flex;
    flex-direction: column;
    padding: 40px 40px !important;
}

.lower-container {
    background: radial-gradient(
        circle at top center,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(50, 50, 100, 0.2) 40%,
        #0e0b31 50%
    );
}

.left-column > .montserrat {
    font-weight: bold !important;
}

h3 {
    color: #99ccff !important;
    font-size: 17px !important;
    font-weight: normal !important;
}

h3 + a {
    color: white !important;
}

@media (min-width: 1024px) {
    .lower-container,
    .web-link {
        flex-direction: row;
        gap: 2rem;
        padding: 40px 140px !important;
    }

    .left-column,
    .right-column {
        width: 50%;
    }
    .left-column {
        padding-right: 10px !important;
    }
    .right-column {
        padding-left: 10px !important;
    }
    .tailwind-reset{
        padding: 40px 140px !important;
        gap: 2rem;
    }
}

 /* Carousel Grid */
#carousel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 20px;
}

/* Each card in carousel */
#carousel-grid > div {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

#carousel-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#carousel-grid h3 {
    font-size: 16px !important;
    color: #99ccff !important;
    margin-bottom: 5px;
}

#carousel-grid a {
    display: inline-block;
    margin-top: 8px;
    background: rgba(64, 57, 145, 1);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}

#carousel-grid a:hover {
    background: rgba(45, 40, 120, 1);
}

/* Navigation buttons */
#prev-btn, #next-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

@media (min-width: 1024px) {
    #carousel-grid {
        grid-template-columns: repeat(3, 1fr); /* always 3 columns on large screens */
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 220px; /* keep cards uniform */
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.target-name a {
    font-size: clamp(12px, 2vw, 16px); /* shrink text if needed */
    line-height: 1.2;
    word-wrap: break-word;
    text-decoration: none;
}

.target-name a:hover {
    text-decoration: underline;
}

.info-text {
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.2;
    margin-top: 2px;
}
