/* ========================================
   HOMEPAGE NEW SECTIONS - PROFESSIONAL STYLING
   Notice Board, Activities, Career, News
   ======================================== */

/* ========================================
   1. NOTICE BOARD SECTION
   ======================================== */

.notice-board-container {
    max-width: 900px;
    margin: 0 auto;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.notice-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

/* Notice type colors */
.notice-important {
    border-left-color: #dc3545;
}

.notice-exam {
    border-left-color: #ffc107;
}

.notice-event {
    border-left-color: #17a2b8;
}

.notice-general {
    border-left-color: var(--primary);
}

.notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: var(--space-3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    text-align: center;
}

.date-day {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.date-month {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    margin-top: var(--space-1);
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-2);
}

.notice-content p {
    font-size: var(--text-base);
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.notice-badge {
    display: flex;
    align-items: flex-start;
}

.notice-badge span {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-important {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge-exam {
    background: rgba(255, 193, 7, 0.1);
    color: #d39e00;
}

.badge-event {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.badge-general {
    background: rgba(0, 33, 71, 0.1);
    color: var(--primary);
}

/* ========================================
   2. RECENT ACTIVITY SECTION
   ======================================== */

.activity-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.activity-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-date-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--gold);
    color: var(--primary-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-md);
}

.activity-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-content h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.activity-content p {
    font-size: var(--text-base);
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    flex: 1;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.activity-link:hover {
    color: var(--gold);
    gap: var(--space-3);
}

.activity-link i {
    transition: transform 0.3s ease;
}

.activity-link:hover i {
    transform: translateX(5px);
}

/* ========================================
   3. CAREER SECTION
   ======================================== */

.career-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.career-item {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.career-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
    gap: var(--space-4);
}

.career-header h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-2);
}

.career-company {
    font-size: var(--text-base);
    color: var(--gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.career-type-badge {
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.career-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.career-details span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--dark-gray);
}

.career-details i {
    color: var(--primary);
}

.career-actions {
    display: flex;
    gap: var(--space-3);
}

.btn-career-apply,
.btn-career-details {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-career-apply {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
}

.btn-career-apply:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-career-details {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-career-details:hover {
    background: var(--primary);
    color: var(--white);
}

/* Placement Stats Sidebar */
.placement-stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    color: var(--white);
    box-shadow: var(--shadow-xl);
    height: 100%;
}

.placement-stats h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-6);
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: var(--space-4);
}

.placement-stats .stat-item {
    text-align: center;
    padding: var(--space-5) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.placement-stats .stat-item:last-of-type {
    border-bottom: none;
}

.placement-stats .stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.placement-stats .stat-label {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
}

/* ========================================
   4. NEWS ACTIVITY SECTION
   ======================================== */

.news-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--gold);
    color: var(--primary-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.news-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray);
}

.news-meta i {
    color: var(--primary);
}

.news-content h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: var(--text-base);
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: var(--gold);
    gap: var(--space-3);
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .notice-item {
        flex-direction: column;
        gap: var(--space-4);
    }

    .notice-date {
        flex-direction: row;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        gap: var(--space-3);
    }

    .date-day {
        font-size: var(--text-2xl);
    }

    .career-header {
        flex-direction: column;
    }

    .career-type-badge {
        align-self: flex-start;
    }

    .career-actions {
        flex-direction: column;
    }

    .btn-career-apply,
    .btn-career-details {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .placement-stats {
        margin-top: var(--space-6);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .notice-item {
        padding: var(--space-4);
    }

    .notice-content h4 {
        font-size: var(--text-lg);
    }

    .notice-content p {
        font-size: var(--text-sm);
    }

    .activity-image,
    .news-image {
        height: 200px;
    }

    .activity-content,
    .news-content {
        padding: var(--space-4);
    }

    .activity-content h4,
    .news-content h4 {
        font-size: var(--text-lg);
    }

    .career-item {
        padding: var(--space-4);
    }

    .career-header h4 {
        font-size: var(--text-lg);
    }

    .career-details {
        flex-direction: column;
        gap: var(--space-3);
    }

    .placement-stats {
        padding: var(--space-6);
    }

    .placement-stats h3 {
        font-size: var(--text-xl);
    }

    .placement-stats .stat-number {
        font-size: var(--text-3xl);
    }
}