﻿/* ===========================================
   Profile Hero - Logo Card & Slideshow
   =========================================== */

.profile-hero {
    width: 100%;
}

/* Logo/Brand Card - must match slideshow height via row stretch */
.profile-hero__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    gap: 0.35rem;
}

.profile-hero__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

/* Logo wrapper - compact */
.profile-hero__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
}

.profile-hero__logo {
    max-width: 80%;
    max-height: 90px;
    object-fit: contain;
}

.profile-hero__motto {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d;
    line-height: 1.4;
}

/* Meta info section - Profile views, Academic scopes, Admission */
.profile-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
}

.profile-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.profile-hero__meta-item i {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Footer section - Verified & Accreditations */
.profile-hero__footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f0f0f0;
}

/* Verified badge - standalone */
.profile-hero__verified {
    display: flex;
    justify-content: center;
}

/* Accreditations section */
.profile-hero__accreditations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.profile-hero__accreditations-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-hero__accreditations-label i {
    color: #ffc107;
    font-size: 0.8rem;
}

/* Badges container */
.profile-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.profile-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.profile-hero__badge--verified {
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
}

.profile-hero__badge--verified i {
    font-size: 0.7rem;
}

.profile-hero__badge--accreditation {
    background: #e7f1ff;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
}

/* Admission Ongoing badge - eye-catching */
.profile-hero__badge--intake {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: #fff;
    animation: pulse-intake 2s ease-in-out infinite;
}

.profile-hero__badge--intake i {
    font-size: 0.7rem;
}

@keyframes pulse-intake {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Slideshow - 16:9 via aspect-ratio, fill column width */
.profile-hero__carousel {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.profile-hero__carousel .carousel-inner,
.profile-hero__carousel .carousel-item {
    height: 100%;
    width: 100%;
}

.profile-hero__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption - positioned above carousel indicators */
.profile-hero__caption {
    position: absolute;
    bottom: 2.75rem;
    left: 1rem;
    max-width: calc(100% - 5rem);
    padding: 0.5rem 0.875rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Mobile slideshow */
.profile-hero__carousel--mobile {
    border-radius: 8px;
    overflow: hidden;
}

.profile-hero__slide-img--mobile {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile footer - horizontal layout */
.profile-hero__footer--mobile {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    border-top: none;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

.profile-hero__accreditations--mobile {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Mobile caption adjustments */
@media (max-width: 767.98px) {
    .profile-hero__caption {
        bottom: 2.25rem;
        left: 0.75rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        max-width: calc(100% - 4rem);
    }
}

/* Small laptop fix (1366x768 and similar) */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .profile-hero .col-md-8 {
        flex: 1;
        max-width: 100%;
    }

    .profile-hero__carousel {
        width: 100%;
    }

    .profile-hero__logo {
        max-height: 80px;
    }

    .profile-hero__title {
        font-size: 1.1rem;
    }
}

/* ===========================================
   Welcome Message & Quick Access Section
   =========================================== */

/* Welcome Card - Desktop */
.welcome-section {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.welcome-card-desktop {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.welcome-card-desktop__inner {
    display: flex;
    flex-direction: row;
    height: 100%;
    padding: 1.25rem;
    gap: 1.25rem;
}

/* Vertical layout for narrow column (col-md-4) */
.welcome-card-desktop__inner--vertical {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.welcome-card-desktop__figure {
    flex: 0 0 45%;
    max-width: 45%;
    margin: 0;
    position: relative;
}

/* Full width figure for vertical layout */
.welcome-card-desktop__figure--full {
    flex: none;
    max-width: 100%;
}

.welcome-card-desktop__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Taller image for vertical layout */
.welcome-card-desktop__image--tall {
    height: 200px;
}

.welcome-card-desktop__caption {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

.welcome-card-desktop__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
}

.welcome-card-desktop__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-card-desktop__title i {
    color: #38506B;
    font-size: 0.95rem;
}

.welcome-card-desktop__message {
    font-size: 0.92rem;
    color: #5a6c7d;
    line-height: 1.65;
    margin: 0;
}

/* Welcome Card - Mobile */
.welcome-card-mobile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1rem;
}

.welcome-card-mobile__figure {
    margin: 0;
    position: relative;
}

.welcome-card-mobile__image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    display: block;
}

.welcome-card-mobile__caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 0.85rem;
    font-style: italic;
}

.welcome-card-mobile__body {
    padding: 1rem 1.25rem 1.25rem;
}

.welcome-card-mobile__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #38506B;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-card-mobile__title i {
    font-size: 0.95rem;
}

.welcome-card-mobile__message {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.7;
    margin: 0;
}

/* Default Welcome Card (No Message) */
.welcome-card-default {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #dee2e6;
}

.welcome-card-default__image {
    opacity: 0.6;
}

/* ===========================================
   Quick Access Grid
   =========================================== */

.quick-access-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.quick-access-card__header {
    background: linear-gradient(135deg, #38506B 0%, #2c4158 100%);
    color: #fff;
    padding: 0.875rem 1.25rem;
    flex-shrink: 0;
}

.quick-access-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-access-card__title i {
    font-size: 0.95rem;
}

.quick-access-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    flex: 1;
}

/* Quick Access Link Item */
.quick-access-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-access-item:hover {
    background: #fff;
    border-color: #38506B;
    box-shadow: 0 4px 12px rgba(56, 80, 107, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.quick-access-item:active {
    transform: translateY(0);
}

.quick-access-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1rem;
}

.quick-access-item__icon--info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
}

.quick-access-item__icon--success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
}

.quick-access-item__icon--primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
}

.quick-access-item__icon--warning {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: #fff;
}

.quick-access-item__icon--danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: #fff;
}

.quick-access-item__icon--dark {
    background: linear-gradient(135deg, #343a40, #23272b);
    color: #fff;
}

.quick-access-item__content {
    flex: 1;
    min-width: 0;
}

.quick-access-item__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.quick-access-item__desc {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Quick Access */
.quick-access-grid--mobile {
    gap: 0.5rem;
}

.quick-access-item--mobile {
    padding: 0.75rem 0.875rem;
    gap: 0.6rem;
}

.quick-access-item--mobile .quick-access-item__icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.quick-access-item--mobile .quick-access-item__label {
    font-size: 0.85rem;
}

.quick-access-item--mobile .quick-access-item__desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 1;
}

/* ===========================================
   Welcome Section Responsive
   =========================================== */

@media (max-width: 991.98px) {
    .welcome-card-desktop__inner {
        flex-direction: column;
    }
    
    .welcome-card-desktop__figure {
        flex: none;
        max-width: 100%;
    }
    
    .welcome-card-desktop__image {
        height: 220px;
    }
}

@media (max-width: 767.98px) {
    .welcome-section {
        margin: 0.75rem 0;
    }
    
    .quick-access-card__body {
        padding: 0.75rem;
    }
    
    .quick-access-grid {
        gap: 0.5rem;
    }
}

@media (max-width: 380px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   Home Cards Section - Modern Redesign
   =========================================== */

.hc-section {
    padding: 2.5rem 0;
/*    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);*/
    border-radius: 16px;
    margin: 0 -1rem;
    padding: 2.5rem 1rem;
}

.hc-section--mobile {
    padding: 1.5rem 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
}

.hc-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hc-section__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: -0.02em;
}

.hc-section__title--mobile {
    font-size: 1.35rem;
    font-weight: 700;
    gap: 0.5rem;
}

.hc-section__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
}

.hc-section__subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Card Container - Enhanced Modern Styling */
.hc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-gradient-start, #4a5568), var(--card-gradient-end, #4a5568));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hc-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.hc-card:hover::before {
    opacity: 1;
}

.hc-card--news {
    --card-gradient-start: #4a5568;
    --card-gradient-end: #2d3748;
}

.hc-card--events {
    --card-gradient-start: #2d7d6e;
    --card-gradient-end: #1d4d47;
}

.hc-card--notices {
    --card-gradient-start: #9c6644;
    --card-gradient-end: #6b4423;
}

.hc-card--downloads {
    --card-gradient-start: #4a6fa5;
    --card-gradient-end: #2d4a73;
}

.hc-card--mobile {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hc-card--mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-gradient-start, #4a5568), var(--card-gradient-end, #4a5568));
    opacity: 1;
}

.hc-card--mobile:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: #cbd5e0;
}

/* Card Header - Modern Design */
.hc-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.hc-card__header--mobile {
    padding: 0.875rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-bottom: 1.5px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--card-gradient-start, #4a5568);
}

.hc-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hc-card__icon--sm {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Subdued professional colors with gradients */
.hc-card--news .hc-card__icon {
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

.hc-card--events .hc-card__icon {
    background: linear-gradient(135deg, #2d7d6e, #1d4d47);
}

.hc-card--notices .hc-card__icon {
    background: linear-gradient(135deg, #9c6644, #6b4423);
}

.hc-card--downloads .hc-card__icon {
    background: linear-gradient(135deg, #4a6fa5, #2d4a73);
}

.hc-card__header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hc-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.01em;
}

.hc-card__count {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    min-width: fit-content;
}

/* Card Body */
.hc-card__body {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
}

.hc-card__body--mobile {
    padding: 0.75rem 0.875rem;
    gap: 0.25rem;
    border-top: 1px solid #f1f5f9;
}

/* Empty State */
.hc-card__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #cbd5e0;
    padding: 2rem 1rem;
    text-align: center;
}

.hc-card__empty i {
    font-size: 2rem;
    opacity: 0.4;
}

.hc-card__empty span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Card Footer */
.hc-card__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    background: #f8fafc;
}

.hc-card__footer--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-top: 1.5px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 0 0 12px 12px;
}

.hc-card__footer--mobile:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    text-decoration: none;
    color: #2d3748;
}

.hc-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-radius: 8px;
    color: #2d3748;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.hc-card__link:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #fff;
    text-decoration: none;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(74, 85, 104, 0.2);
}

.hc-card__link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Item Styles - Modern Cards */
.hc-item {
    display: block;
    padding: 0.875rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.hc-item:hover {
    background: #fff;
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transform: translateX(2px);
}

.hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    border-left-color: #e2e8f0;
    padding-left: 0.5rem;
}

.hc-item--mobile:last-child {
    border-bottom: none;
}

.hc-item--mobile:hover {
    background: #f8fafc;
    box-shadow: none;
    border-left-color: #4a5568;
}

/* Featured Item - Prominent */
.hc-item--featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #cbd5e0;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hc-item--featured:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.hc-item--no-hover {
    cursor: default;
}

.hc-item--no-hover:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: none;
    transform: none;
}

/* =============================================
   Item Title - Primary Content
   ============================================= */
.hc-item__title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 0.45rem !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.hc-item__title--lg {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    -webkit-line-clamp: 2;
    margin-bottom: 0.5rem !important;
}

.hc-item__excerpt {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   Item Meta - Secondary Info
   ============================================= */
.hc-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

/* Plain text meta (venues, dates) */
.hc-item__meta-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.hc-item__meta-text i {
    font-size: 0.7rem !important;
    opacity: 0.75;
    color: #94a3b8;
}

/* =============================================
   Item Meta Badges - Modern Subtle Colors
   ============================================= */

.hc-item__meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f1f5f9;
    border: 1px solid #cbd5e0;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hc-item:hover .hc-item__meta-badge {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.hc-item__meta-badge i {
    font-size: 0.6rem !important;
    opacity: 0.8;
}

/* Time/clock badges - slate blue */
.hc-card--news .hc-item__meta-badge,
.hc-card--notices .hc-item__meta-badge {
    background: #f0f4f8;
    border-color: #d1dce6;
    color: #3f566e !important;
}

.hc-card--news .hc-item__meta-badge i,
.hc-card--notices .hc-item__meta-badge i {
    color: #5a6f8c;
}

.hc-card--news .hc-item:hover .hc-item__meta-badge,
.hc-card--notices .hc-item:hover .hc-item__meta-badge {
    background: #dfe8f0;
    border-color: #a0b0c4;
}

/* Events badges - emerald */
.hc-card--events .hc-item__meta-badge {
    background: #ecf7f3;
    border-color: #c3e5d9;
    color: #116942 !important;
}

.hc-card--events .hc-item__meta-badge i {
    color: #16a34a;
}

.hc-card--events .hc-item:hover .hc-item__meta-badge {
    background: #d4efea;
    border-color: #87d1bb;
}

/* Downloads badges - indigo */
.hc-card--downloads .hc-item__meta-badge {
    background: #f5f3ff;
    border-color: #d8d0ff;
    color: #4c1d95 !important;
}

.hc-card--downloads .hc-item__meta-badge i {
    color: #7c3aed;
}

.hc-card--downloads .hc-item:hover .hc-item__meta-badge {
    background: #ede9fe;
    border-color: #b5a7ff;
}

/* Badge variants */
.hc-item__meta-badge--success {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

.hc-item__meta-badge--muted {
    background: #f8fafc !important;
    border-color: #cbd5e0 !important;
    color: #64748b !important;
}

/* Author/reporter badge */
.hc-item__meta-badge:has(i.fa-user),
.hc-item__meta-badge:has(i.far.fa-user) {
    background: #fef7ed;
    border-color: #fed7aa;
    color: #92400e !important;
}

/* Mobile badges */
.hc-item--mobile .hc-item__meta-badge {
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hc-section {
        padding: 2rem 1rem;
        margin: 0;
    }

    .hc-section__header {
        margin-bottom: 2rem;
    }
    
    .hc-section__title {
        font-size: 1.5rem;
    }
    
    .hc-section__icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hc-section {
        padding: 1.5rem 0;
        margin: 0;
        background: transparent;
        border-radius: 0;
    }
    
    .hc-section__header {
        margin-bottom: 1.25rem;
    }
    
    .hc-section__title {
        font-size: 1.25rem;
    }
    
    .hc-section__subtitle {
        display: none;
    }

    .hc-card__header {
        padding: 1rem;
    }

    .hc-card__body {
        padding: 0.875rem 1rem;
    }

    .hc-card__footer {
        padding: 0.875rem 1rem;
    }
}

/* =============================================
   Download Button Styling
   ============================================= */

.hc-item__download-btn,
.hc-item__download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hc-item__download-btn:hover,
.hc-item__download-icon:hover {
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.hc-item__download-icon {
    width: 32px;
    height: 32px;
    padding: 0;
}

.hc-item__download-icon--sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

/* Meta with action button */
.hc-item__meta--with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hc-item__meta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile content wrapper */
.hc-item__mobile-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hc-item__mobile-content .hc-item__title {
    margin-bottom: 0 !important;
}

/* Override for non-download mobile items */
a.hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

a.hc-item--mobile .hc-item__title {
    flex: 1;
}

/* =============================================
   Global Overrides
   ============================================= */

.hc-item__meta span,
.hc-item__meta span i {
    font-size: 0.7rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.hc-item__meta i {
    font-size: 0.6rem !important;
}

.hc-item__tag,
.hc-item__tag--sm {
    font-size: 0.6rem !important;
}

.hc-item__tag--sm {
    font-size: 0.55rem !important;
}

/* Ensure title prominence */
.hc-item__title,
.hc-item__title--lg,
.hc-item .hc-item__title,
.hc-item--featured .hc-item__title,
.hc-item--featured .hc-item__title--lg {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

.hc-item__title--lg,
.hc-item--featured .hc-item__title--lg {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

/* =============================================
   Mobile Card Border Enhancements
   ============================================= */

/* Enhanced Mobile Card Styling */
.hc-card--mobile {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hc-card--mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-gradient-start, #4a5568), var(--card-gradient-end, #4a5568));
    opacity: 1;
}

.hc-card--mobile:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: #cbd5e0;
}

/* Mobile Header with Colored Left Border */
.hc-card__header--mobile {
    padding: 0.875rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-bottom: 1.5px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--card-gradient-start, #4a5568);
}

.hc-card--news .hc-card__header--mobile {
    border-left-color: #4a5568;
    background: linear-gradient(135deg, #f0f4f8 0%, #f8fafc 100%);
}

.hc-card--events .hc-card__header--mobile {
    border-left-color: #2d7d6e;
    background: linear-gradient(135deg, #ecf7f3 0%, #f8fafc 100%);
}

.hc-card--notices .hc-card__header--mobile {
    border-left-color: #9c6644;
    background: linear-gradient(135deg, #fef7ed 0%, #f8fafc 100%);
}

.hc-card--downloads .hc-card__header--mobile {
    border-left-color: #4a6fa5;
    background: linear-gradient(135deg, #f0f4f8 0%, #f8fafc 100%);
}

/* Mobile Item Borders - Enhanced Separation */
.hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem;
    background: transparent;
    border-radius: 6px;
    border: 1px solid transparent;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.hc-item--mobile:last-child {
    border-bottom: 1px solid transparent;
    margin-bottom: 0;
}

.hc-item--mobile:hover {
    background: #f8fafc;
    border-left-color: #4a5568;
    border-bottom-color: #e2e8f0;
}

/* Type-specific mobile item borders */
.hc-card--news .hc-item--mobile:hover {
    border-left-color: #4a5568;
    background: linear-gradient(90deg, #f0f4f8 0%, transparent 100%);
}

.hc-card--events .hc-item--mobile:hover {
    border-left-color: #2d7d6e;
    background: linear-gradient(90deg, #ecf7f3 0%, transparent 100%);
}

.hc-card--notices .hc-item--mobile:hover {
    border-left-color: #9c6644;
    background: linear-gradient(90deg, #fef7ed 0%, transparent 100%);
}

.hc-card--downloads .hc-item--mobile:hover {
    border-left-color: #4a6fa5;
    background: linear-gradient(90deg, #f0f4f8 0%, transparent 100%);
}

/* Mobile Card Footer with Bottom Border */
.hc-card__footer--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-top: 1.5px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 0 0 12px 12px;
}

.hc-card__footer--mobile:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    text-decoration: none;
    color: #2d3748;
}

/* Enhanced Responsive Mobile at 768px */
@media (max-width: 767.98px) {
    .hc-section {
        padding: 1.5rem 0;
        margin: 0;
        background: transparent;
        border-radius: 0;
    }
    
    .hc-section__header {
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .hc-section__title {
        font-size: 1.25rem;
    }
    
    .hc-section__subtitle {
        display: none;
    }

    .hc-card {
        border-radius: 12px;
        border: 1.5px solid #e2e8f0;
    }

    .hc-card__header {
        padding: 1rem;
        border-bottom: 1.5px solid #e2e8f0;
    }

    .hc-card__body {
        padding: 0.875rem 1rem;
        border-top: 1px solid #f1f5f9;
    }

    .hc-card__footer {
        padding: 0.875rem 1rem;
        border-top: 1.5px solid #e2e8f0;
    }

    /* Small devices - additional spacing */
    .col-12 {
        margin-bottom: 1rem;
    }

    .hc-card--mobile {
        margin-bottom: 0.5rem;
    }
}

/* Extra small devices - 480px */
@media (max-width: 480px) {
    .hc-card__header--mobile {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .hc-card__title {
        font-size: 1rem;
    }

    .hc-card__count {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    .hc-item--mobile {
        padding: 0.6rem 0.5rem;
        gap: 0.4rem;
    }

    .hc-item__title {
        font-size: 0.85rem !important;
    }

    .hc-item__meta-badge {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.35rem;
    }
}

/* =============================================
   Mobile Downloads - Enhanced Button & Badge Styling
   ============================================= */

/* Mobile downloads item - improved layout */
.hc-card--downloads .hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.5rem;
}

/* Mobile content wrapper for downloads */
.hc-item__mobile-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hc-item__mobile-content .hc-item__title {
    margin-bottom: 0 !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Badge in downloads mobile - prevent overflow */
.hc-card--downloads .hc-item--mobile .hc-item__meta-badge {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.6rem !important;
    padding: 0.12rem 0.35rem;
    max-width: fit-content;
}

/* Mobile download button - show text, not icon only */
.hc-item__download-icon--sm {
    width: auto;
    height: auto;
    padding: 0.45rem 0.55rem;
    font-size: 0.65rem;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

/* Show download text on mobile */
@media (max-width: 767.98px) {
    .hc-item__download-icon--sm::after {
        content: 'Download';
        font-size: 0.65rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .hc-item__download-icon--sm i {
        margin-right: 0.2rem;
    }
}

/* Extra small devices - download button adjustments */
@media (max-width: 480px) {
    .hc-card--downloads .hc-item--mobile {
        padding: 0.6rem 0.35rem;
        gap: 0.4rem;
    }

    .hc-item__mobile-content {
        gap: 0.15rem;
    }

    .hc-item__download-icon--sm {
        padding: 0.4rem 0.45rem;
        font-size: 0.6rem;
    }

    .hc-item__download-icon--sm::after {
        content: 'Download';
        font-size: 0.6rem;
    }

    .hc-card--downloads .hc-item--mobile .hc-item__meta-badge {
        font-size: 0.55rem !important;
        padding: 0.08rem 0.3rem;
    }

    .hc-item__title {
        font-size: 0.8rem !important;
    }
}

/* Ensure file size badge doesn't grow */
.hc-card--downloads .hc-item__meta-badge {
    max-width: max-content;
    flex-shrink: 0;
}

/* Mobile items in downloads card */
.hc-card--downloads .hc-card__body--mobile {
    padding: 0.5rem 0;
    gap: 0.1rem;
}

/* Alternative: Full download button on mobile */
@supports (display: flex) {
    @media (max-width: 767.98px) {
        /* Change icon to button with text on mobile */
        .hc-item__download-icon--sm {
            background: linear-gradient(135deg, #4a6fa5, #2d4a73);
            color: #fff;
            border: none;
            border-radius: 5px;
            font-size: 0.65rem;
            font-weight: 600;
            padding: 0.45rem 0.55rem;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
            min-width: fit-content;
            white-space: nowrap;
        }

        .hc-item__download-icon--sm:hover {
            box-shadow: 0 3px 8px rgba(74, 106, 165, 0.25);
            transform: translateY(-1px);
        }

        .hc-item__download-icon--sm i {
            font-size: 0.6rem;
        }

        .hc-item__download-icon--sm::before {
            content: '';
            display: none;
        }
    }
}

/* =============================================
   Mobile Item Wrapper - Title Only
   ============================================= */

.hc-item__mobile-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hc-item__mobile-wrapper .hc-item__title {
    margin-bottom: 0 !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hc-item__mobile-wrapper .hc-item__meta-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 0.2rem;
}

.hc-item__mobile-wrapper .hc-item__meta-text i {
    font-size: 0.65rem !important;
    opacity: 0.75;
    color: #94a3b8;
}

/* Mobile action section for downloads */
.hc-item__mobile-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.hc-item__mobile-action .hc-item__meta-badge {
    max-width: max-content;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.6rem !important;
    padding: 0.12rem 0.35rem;
}

/* Mobile item - News specific (with title only on left) */
.hc-card--news .hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.5rem;
}

/* Mobile item - Events specific (with title only on left) */
.hc-card--events .hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.5rem;
}

/* Mobile item - Notices specific (full width wrapper) */
.hc-card--notices .hc-item--mobile {
    display: block;
    padding: 0.7rem 0.5rem;
    background: transparent;
    border-radius: 6px;
    border: 1px solid transparent;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
}

.hc-card--notices .hc-item--mobile:hover {
    background: #f8fafc;
    border-left-color: #9c6644;
    border-bottom-color: #e2e8f0;
}

/* Mobile item - Downloads specific */
.hc-card--downloads .hc-item--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.5rem;
}

.hc-card--downloads .hc-item--mobile:hover {
    background: linear-gradient(90deg, #f0f4f8 0%, transparent 100%);
    border-left-color: #4a6fa5;
}

/* Responsive adjustments for mobile metadata */
@media (max-width: 767.98px) {
    .hc-item__mobile-wrapper {
        gap: 0.2rem;
    }

    .hc-item__mobile-action {
        gap: 0.3rem;
    }

    .hc-card--news .hc-item--mobile,
    .hc-card--events .hc-item--mobile,
    .hc-card--downloads .hc-item--mobile {
        padding: 0.65rem 0.45rem;
        gap: 0.5rem;
    }

    .hc-item__mobile-wrapper .hc-item__meta-text {
        font-size: 0.68rem !important;
    }
}

@media (max-width: 480px) {
    .hc-item__mobile-wrapper {
        gap: 0.15rem;
    }

    .hc-card--news .hc-item--mobile,
    .hc-card--events .hc-item--mobile,
    .hc-card--downloads .hc-item--mobile {
        padding: 0.6rem 0.35rem;
        gap: 0.4rem;
    }

    .hc-item__mobile-wrapper .hc-item__title {
        font-size: 1.1rem !important;
    }

    .hc-item__mobile-wrapper .hc-item__meta-text {
        font-size: 0.65rem !important;
    }

    .hc-item__mobile-action {
        gap: 0.25rem;
    }

    .hc-item__mobile-action .hc-item__meta-badge {
        font-size: 0.55rem !important;
        padding: 0.08rem 0.3rem;
    }
}

/* =============================================
   Event Secondary Meta Row (Date & Time)
   ============================================= */

/* Desktop secondary meta row */
.hc-item__meta--secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

    .hc-item__meta--secondary .hc-item__meta-text {
        font-size: 0.75rem !important;
        color: #64748b !important;
    }

/* Mobile secondary meta row */
.hc-item__meta--mobile-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

    .hc-item__meta--mobile-secondary .hc-item__meta-text {
        font-size: 0.68rem !important;
        color: #64748b !important;
    }

/* Responsive adjustments */
@media (max-width: 480px) {
    .hc-item__meta--secondary {
        gap: 0.5rem;
        margin-top: 0.4rem;
        padding-top: 0.4rem;
    }

    .hc-item__meta--mobile-secondary {
        gap: 0.4rem;
        margin-top: 0.2rem;
    }

        .hc-item__meta--mobile-secondary .hc-item__meta-text {
            font-size: 0.65rem !important;
        }
}