/* Home Specific Styles */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(45,5,7,0.82) 0%, rgba(123,17,19,0.60) 100%), url('../assets/smcc-building.png') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .hero .container {
        padding: 0 2rem; /* Lock Hero padding to maintain original look */
    }
}

.hero-content {
    max-width: 1000px;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.stats-container {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}

.stat-item {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.stat-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-board {
    max-height: 580px; /* Reduced to align with left column bottom */
    overflow-y: hidden; /* Hide overflow to force alignment in screenshot */
    padding-right: 0.5rem;
}

.notice-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.1rem 1.25rem;
    transition: all 0.2s;
}
.notice-item:hover { transform: translateX(2px); background: #fdfaf7; border-radius: 8px; }

.notice-date-box {
    grid-row: span 2;
    min-width: 65px;
    background: #fdf0e0;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    flex-shrink: 0;
    height: fit-content;
}
.notice-date-box .day   { display: block; font-size: 1.6rem; font-weight: 800; color: #7b1113; font-family: 'Outfit', sans-serif; line-height: 1; }
.notice-date-box .month { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #c4893a; font-weight: 700; margin-top: 0.15rem; line-height: 1.1; }

.notice-header-info { grid-column: 2; grid-row: 1; min-width: 0; }
.notice-title { 
    font-size: 1.08rem; 
    font-weight: 800; 
    color: #2d0507; 
    margin-bottom: 0.1rem; 
    line-height: 1.35;
    display: block;
}

.notice-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.n-badge { 
    display: inline-block; 
    padding: 0.15rem 0.6rem; 
    border-radius: 999px; 
    font-size: 0.65rem; 
    font-weight: 700; 
    text-transform: uppercase; 
}
.n-exam    { background: #fee2e2; color: #b91c1c; }
.n-event   { background: #fef3c7; color: #92400e; }
.n-general { background: #f0fdf4; color: #166534; }

.attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b1113;
    transition: all 0.2s;
    background: #fdf0e0;
    border-radius: 50%;
}
@media (hover: hover) {
    .attachment-icon:hover { transform: scale(1.1); background: #7b1113; color: white; }
}
.attachment-icon.small { width: 26px; height: 26px; font-size: 0.72rem; }

.notice-text { 
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem; 
    color: #64748b; 
    line-height: 1.5; 
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desktop-only { display: inline-block; }
.mobile-only { display: none; }

@media (max-width: 600px) {
    .desktop-only { display: none; }
    .mobile-only { display: inline-block; }

    .notice-item { 
        padding: 0.85rem 0; 
        gap: 0.5rem 0.85rem; 
    }
    
    .notice-date-box {
        grid-row: 1;
        min-width: 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0.35rem 0.25rem;
        border-radius: 8px;
        height: auto; 
        align-self: stretch; /* Match header info height */
    }
    .notice-date-box .day { font-size: 1.05rem; line-height: 1; }
    .notice-date-box .month { font-size: 0.5rem; line-height: 1; }

    .notice-header-info {
        grid-row: 1;
        grid-column: 2;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center Title + Meta */
        gap: 2px;
        min-height: 2.8rem;
    }
    
    .notice-title { 
        font-size: 0.92rem; 
        line-height: 1.15;
        margin-bottom: 2px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .notice-meta-row { 
        display: flex; 
        align-items: center; 
        gap: 0.4rem; 
    }
    .n-badge { padding: 0.1rem 0.55rem; font-size: 0.6rem; }
    .attachment-icon i { font-size: 0.7rem; }
    
    .notice-text { 
        grid-row: 2;
        grid-column: 1 / span 2; /* Full width */
        font-size: 0.82rem;
        margin-top: 0.25rem;
    }

    .attachment-icon { background: none; color: #7b1113; box-shadow: none; border: none; }
    .attachment-icon:hover { transform: none; background: none; color: #7b1113; }
}

/* Premium Quick Action Cards */
.quick-actions-grid {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.quick-action-card {
    flex: 1;
    background: white;
    border: 1px solid rgba(123, 17, 19, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    text-decoration: none !important;
    box-shadow: var(--shadow-md);
}

.quick-action-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.quick-action-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
    background: white;
}

.quick-action-card:hover i {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .quick-actions-grid {
        gap: 0.5rem; /* Tightened from 0.75rem */
    }
    .quick-action-card {
        padding: 0.85rem 0.25rem; /* Tightened from 1rem 0.5rem */
    }
    .quick-action-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .quick-action-card h4 {
        font-size: 0.8rem;
    }
}
