/* ==========================================================================
   G.R. Medical College - Activities Page Stylesheet
   Design Spec: Matches Figma screenshots with "More Than Just Medical Education"
   heading, 4-column responsive activity cards with lilac/slate tinted background,
   sharp edges (0px border-radius), and full responsiveness.
   ========================================================================== */

/* Section System */
.gr-activities-section {
    padding: 60px 0 90px 0;
    background-color: #FFFFFF;
}

.gr-activities-container {
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .gr-activities-container {
        max-width: 1540px;
        padding-left: 31px;
        padding-right: 31px;
    }
}

/* Header: Section Title (Matches Screenshot 1 Exactly) */
.gr-activities-header {
    margin-bottom: 40px;
}

.gr-activities-title {
    font-family: 'Instrument Sans', 'Outfit', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 400;
    color: #111111;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (max-width: 991px) {
    .gr-activities-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .gr-activities-title {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   Activity Cards Grid (4 Column Layout matching Screenshot 2)
   ========================================================================== */
.gr-activity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #F6F8FE;
    border-radius: 0 !important;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(220, 226, 240, 0.4);
}

.gr-activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.09);
}

/* Card Thumbnail */
.gr-activity-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #E2E8F0;
    border-radius: 0 !important;
    position: relative;
}

.gr-activity-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gr-activity-card:hover .gr-activity-thumb-img {
    transform: scale(1.05);
}

/* Card Body */
.gr-activity-card-body {
    padding: 20px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gr-activity-card-title {
    font-family: 'Instrument Sans', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #222222;
    line-height: 1.45;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 65px;
}

/* Divider Line */
.gr-activity-card-divider {
    height: 1px;
    background-color: #E6EAF4;
    margin: 18px 0 12px 0;
    width: 100%;
}

/* Card Footer Meta Row */
.gr-activity-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gr-activity-link {
    font-family: 'Instrument Sans', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #2A3EC0;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gr-activity-card:hover .gr-activity-link {
    color: #1A2882;
    transform: translateX(2px);
}

.gr-activity-date {
    font-family: 'Instrument Sans', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
}

/* Empty State */
.gr-activities-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
}

.gr-activities-empty-state p {
    color: #64748B;
    font-size: 15px;
    margin: 0;
}
