/* 🟢 Page container */
.presence-page {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.presence-container {
    max-width: 1200px;
    margin: 0 auto;
}



/* 🟣 Section title */
.presence-section h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #222;
    text-align: center;
    position: relative;
}

.presence-section h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #3498db;
    margin: 0.5rem auto 2rem;
    border-radius: 2px;
}

/* 📦 Grid of cards */
.presence-grid {
    display: grid;
    justify-content: center;
    /* ✅ center the grid when fewer cards */
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    /* ✅ max width for cards */
    gap: 2rem;
    padding: 0 1rem;
}

/* 🪪 Individual card */
.presence-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    max-width: 320px;
    /* ✅ prevent cards from growing too big */
    margin: 0 auto;
}


.presence-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* 📸 Thumbnail */
.presence-card img {
    inline-size: 200px;

    object-fit: cover;
    transition: transform 0.4s ease;

    padding: 2rem;
    align-self: center;
    aspect-ratio: 1;
}

.presence-card:hover img {
    transform: scale(1.05);
}

/* 📍 Card content */
.presence-card-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.presence-card-content h3 {
    font-size: 1.3rem;
    margin: 0 0 0.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.presence-card-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* 🔗 CTA */
.presence-card-content .visit-link {
    margin-top: 1.2rem;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #3498db;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.presence-card-content .visit-link:hover {
    background: #2176b9;
}

/* 📱 Responsive adjustments */
@media (max-width: 768px) {
    .toplead h1 {
        font-size: 2rem;
    }

    .toplead p {
        font-size: 1rem;
    }

    .presence-card img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .presence-card-content h3 {
        font-size: 1.1rem;
    }

    .presence-card-content p {
        font-size: 0.9rem;
    }
}