/*
 * Custom CSS for the redesigned Programs, Events, Announcements, and Student Portal sections on the homepage
 */

/* Common styles for Programs and Events sections */
.news-events-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.news-events-header h3 {
    margin-bottom: 0;
    margin-right: 15px;
    font-weight: 700;
}

.news-events-line {
    flex-grow: 1;
    height: 3px;
    border-radius: 3px;
}

/* Featured Programs Card */
.featured-news-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    transition: all 0.3s ease;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-news-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news-content {
    padding: 20px;
}

.featured-news-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.featured-news-title {
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-news-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Other News Items */
.other-news-items {
    margin-top: 30px;
}

.other-news-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.other-news-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.other-news-img {
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.other-news-content {
    padding: 10px 15px;
}

.other-news-date {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.other-news-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.other-news-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.other-news-link:hover {
    color: var(--secondary-color);
}

.other-news-link i {
    transition: transform 0.3s ease;
}

.other-news-link:hover i {
    transform: translateX(3px);
}

/* Events Container */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 80px;
    padding: 15px 10px;
    color: white;
    text-align: center;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-details {
    padding: 15px;
    flex-grow: 1;
}

.event-title {
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.event-time, .event-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.event-image {
    width: 100px;
    background-size: cover;
    background-position: center;
}

.featured-event {
    border-left: 4px solid var(--success-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-image {
        display: none;
    }

    .featured-news-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .other-news-img {
        height: 120px;
        margin-bottom: 10px;
    }

    .event-date {
        min-width: 60px;
        padding: 10px 5px;
    }

    .event-day {
        font-size: 1.5rem;
    }

    .event-month {
        font-size: 0.8rem;
    }
}

/* Announcements Section Styles */
.announcements-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.announcements-line {
    height: 2px;
    flex-grow: 1;
    max-width: 200px;
}

.announcements-icon {
    padding: 0 20px;
    font-size: 1.8rem;
}

.announcements-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.announcement-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.announcement-content {
    display: flex;
    flex-grow: 1;
}

.announcement-image {
    width: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.announcement-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-details {
    padding: 25px;
    flex-grow: 1;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.announcement-title {
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.announcement-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.announcement-indicator {
    width: 5px;
}

/* Responsive adjustments for announcements */
@media (max-width: 768px) {
    .announcement-image {
        width: 150px;
    }

    .announcement-details {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .announcement-content {
        flex-direction: column;
    }

    .announcement-image {
        width: 100%;
        height: 180px;
    }

    .announcements-line {
        max-width: 100px;
    }
}

/* Student Portal Section Styles */
.student-portal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.student-portal-line {
    height: 2px;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
    flex-grow: 1;
    max-width: 200px;
}

.student-portal-icon {
    padding: 0 25px;
    font-size: 2rem;
    color: #333;
}

.student-portal-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.student-portal-card {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.student-portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portal-card-icon {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.student-portal-card:hover .icon-circle {
    transform: scale(1.1);
}

.portal-card-content {
    padding: 30px;
    flex-grow: 1;
}

.portal-card-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--card-color);
}

.portal-card-text {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.portal-card-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--card-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-card-button span {
    margin-right: 10px;
}

.portal-card-button i {
    transition: transform 0.3s ease;
}

.portal-card-button:hover {
    background-color: var(--dark-color);
    color: white;
}

.portal-card-button:hover i {
    transform: translateX(5px);
}

.portal-card-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
}

.decoration-circle {
    width: 60px;
    height: 60px;
    border: 5px solid var(--card-color);
    border-radius: 50%;
    margin-bottom: 10px;
}

.decoration-line {
    width: 100px;
    height: 5px;
    background-color: var(--card-color);
    border-radius: 5px;
}

/* Responsive adjustments for student portal */
@media (max-width: 768px) {
    .portal-card-icon {
        padding: 20px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .portal-card-content {
        padding: 20px;
    }

    .portal-card-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .student-portal-line {
        max-width: 100px;
    }

    .student-portal-card {
        flex-direction: column;
    }

    .portal-card-icon {
        padding: 30px 20px 0 20px;
    }
}
