html {
    background-image: url("../img/bg-main.jpg");
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

body {
    background-image: url("../img/pattern.png");
    background-repeat: repeat;
    background-attachment: fixed;
}

.hero-content {
    /* Content within is centered by the parent's flex settings */
    margin-top: 17vh;
    width: 100%;
}

.welcome-text {
    font-size: 38px;
    letter-spacing: 2px;
    color: sandybrown;
}

.main-title {
    font-size: 3.5rem;
    color: sandybrown; /* Approximate title color */
    margin: 10px 0 50px 0;
}

.cards-container {
    display: flex; /* Make this container a flexbox */
    justify-content: center; /* Horizontally center the cards group */
    gap: 30px; /* Add space between the cards */
}

.info-card {
    background-color: rgba(255, 255, 255, 0.7); /* Translucent white */
    color: #333;
    padding: 40px;
    border-radius: 15px;
    width: 300px;
    display: flex; /* Use flexbox to structure the *inside* of the card */
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center elements horizontally within card */
    text-align: center;
}

.icon {
    width: 60px;
    margin-bottom: 20px;
}

.info-card h2 {
    font-size: 26px;
    margin: 10px 0;
}

.info-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes the button to the bottom if paragraphs differ in length */
}

.card-button {
    background-color: white;
    border: 2px solid #ccc;
    color: #333;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.card-button:hover {
    background-color: #7f7f7f;
    color: #fff;
}

/* Moble styles ================================================== */
@media (max-width:959px) {
    .cards-container {
        display: block;
    }
    
    .info-card {
        width: 100%;
        clear: both;
        text-align: center;
        margin-bottom: 20px;
    }
}