
.hostel-section {
    padding: 40px 20px;
    max-width: 1300px;
    margin: auto;
}

/* Title */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.section-title span {
    color: var(--deep-blue);
    position: relative;
}

.section-title span::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background:var(--deep-blue);;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Card Grid */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Card */
.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card h3 {
    text-align: center;
    padding: 15px;
    font-size: 18px;
    color: var(--deep-blue);
    background: #fff;
}

/* Tablet */
@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .section-title {
        font-size: 26px;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 200px;
    }
}