/* NUMS Affiliation Section */
.nums-affiliation-section {
    /*background: #ffffff url('../images/KhinamsPatternBanner.jpg') no-repeat center center;
    
    background: #ffffff url('../images/KhinamsPatternBanner.jpg') no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid #eee;*/
     background: linear-gradient(rgba(226, 229, 233, 0.85), rgba(232, 233, 235, 0.85)), url('../images/KhinamsPatternBanner.jpg'); 
    background-position: center;
    background-repeat: repeat;
    color: white;
    /*padding: 80px 0;*/ 
}

.nums-affiliation-section .lead {
    color: #333;
}

/* Learn More Button */
.btn-learn-more {
    background-color: white;
    color: #800000;
    padding: 10px 25px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-learn-more:hover {
    background-color: #f0f0f0;
    color: #800000;
}

/* Welcome Collapsible Content */
.welcome-collapsible-content {
    width: 100%;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

.welcome-collapsible-content.expanded {
    max-height: 3000px;
    opacity: 1;
    padding-top: 20px;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(rgba(128, 0, 0, 0.9), rgba(128, 0, 0, 0.9)), url('../images/welcome-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
}

/* Key Facts Section */
.key-facts {
   background: linear-gradient(rgba(226, 229, 233, 0.85), rgba(232, 233, 235, 0.85)), url('../images/KhinamsPatternBanner.jpg'); 
   /* background: linear-gradient(rgba(226, 229, 233, 0.85), rgba(232, 233, 235, 0.85)), url('../images/stats_brepeat2.png');
    background: linear-gradient(rgba(128, 0, 0, 0.85), rgba(128, 0, 0, 0.85)), url('../images/stats_brepeat2.png');
    
    background-image: url('../images/stats_brepeat2.png');*/
    /*background-size: cover;*/
    background-position: center;
    background-repeat: repeat;
    color: white;
    padding: 80px 0;
}

.fact-box {
    text-align: center;
    padding: 16px;
    border: none;
    border-radius: 35px;
    transition: transform 0.3s ease;
    background-color: #800000;
    color: white;
   
}

.fact-box:hover {
    transform: translateY(-10px);
    border-color: #cfae78;
}

.fact-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

/* Accreditation Section */
.accreditation-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.accreditation-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 160px;
    border-left: 5px solid #800000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accreditation-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accreditation-content {
    padding-left: 20px;
}

.accreditation-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.accreditation-title {
    color: #800000;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 10px;
}

.accreditation-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Announcements Section */
.announcements-section {
    background: linear-gradient(rgba(128, 0, 0, 0.85), rgba(128, 0, 0, 0.85)), url('../images/8-scaled.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.announcement-card {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #cfae78;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateX(10px);
}

.announcement-date {
    color: #cfae78;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.announcement-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.announcement-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

.announcement-link {
    color: #cfae78;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.announcement-link:hover {
    color: white;
}

.announcement-link i {
    margin-left: 8px;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.news-featured {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 450px;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.news-featured-date {
    color: #cfae78;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-featured-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.news-list-container {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.news-list {
    height: 100%;
    padding-right: 15px;
}

.news-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    border-left: 4px solid #800000;
    animation: scrollUp 25s linear infinite;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-date {
    color: #cfae78;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.news-title {
    color: #800000;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-link {
    color: #800000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.news-link:hover {
    color: #cfae78;
}

.news-link i {
    margin-left: 8px;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.news-list:hover .news-item {
    animation-play-state: paused;
}

/* Ticker Section */
.ticker-wrap {
    background: #800000;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    color: white;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Background Overlays */
.overlay-primary {
    position: relative;
}

.overlay-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(128, 0, 0, 0.9), rgba(128, 0, 0, 0.9));
    z-index: 1;
}

.overlay-primary > * {
    position: relative;
    z-index: 2;
}
