﻿

/*Scrolling Text */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 10px 0;
    position: relative;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    font-weight: bold;
    font-size: 1.2rem;
    color: #d63384;
    text-decoration: none;
}

    .marquee-text:hover {
        animation-play-state: paused;
        color: #a61e4d;
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}
/*---------------------------------------*/
/*Collage of images */

/*.collage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

    .collage-img:hover {
        transform: scale(1.05);
    }
*/
.school-image {
    width: 100%;
    max-height: 350px; /* Adjust this value as needed */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}
/*---------------------------------------*/
.heroPadding {
    padding: 95px 0 0 0;
}

/*Links section*/
/*------------------------------------------*/
.links {
    /*max-width: 130px;*/
    /*padding-bottom: 20px;*/
    border-radius: 10px;
}


/*News Section*/
/*---------------------------------------*/

#news-section {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

#news-list {
    /*display: flex;
    flex-direction: column;*/
    gap: 15px;
    max-height: 240px; /* Adjust height as needed */
    overflow-y: auto;
    padding-right: 10px; /* Prevent text cutoff near scrollbar */
}

    #news-list::-webkit-scrollbar {
        width: 6px;
    }

.news-item {
    display: flex;
    align-items: center;
    background-color: #b1894938; /*#ffffff;*/
    border-left: 5px solid #422703ab;  /*#007bff;*/
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

    .news-item:hover {
        transform: scale(1.01);
    }

#news-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.news-icon {
    font-size: 1.5rem;
    color: #ac8751; /*#007bff;*/
    margin-right: 12px;
}
.news-icon-image {
    border-radius: 6px;
    max-height:30px;
}

.news-content {
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
}

.news-title {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
}

/*Important Links*/
/*---------------------------------------*/
importantLinks {
    height: 300px;
    padding: 10px 10px 10px 10px;
    /*position: relative;*/
}

important-Icons {
    /* padding: 1rem 1.5rem;*/
    /*    display: flex;
    flex-direction: column;
    background-color: var(--surface-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 110px;
    border-bottom: 3px solid var(--accent-color);
    transition: transform 0.3s ease;*/
    /* height: 100px;
    width: 100px;*/
}

.icon-img {
    height: 50px;
}

.icon-btn {
    /*margin: 20px 20px;*/
    width: 100%;
    height: 100px;
    background-color: #f0f4ff;
    border-radius: 1rem;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .icon-btn:hover {
        background-color: #e2ecff;
        transform: translateY(-2px);
        text-decoration: none;
    }

    .icon-btn .icon {
        color: black;
    }

    .icon-btn .label {
        color: black;
    }



/*Principal Section*/
/*---------------------------------------*/
.MaxImageWidth {
    width: 300px;
    height: 300px;
    object-fit: cover;
}


/*Toppers List*/
/*---------------------------------------*/
.scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
}

.scroll-content {
    display: flex;
    gap: 20px;
    animation: scroll-left 10s linear infinite;
}

.student {
    flex: 0 0 auto;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

    .student img {
        width: 150px;
        height: 150px;
        border-radius: 5%;
    }

    .student:hover {
        transform: scale(1.2);
        animation-play-state: paused;
    }

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
    /* Adjusted so it keeps looping */
}

.recent-activities-section {
    background-color: #fdf1e5;
    padding: 40px 0;
    /*border: 2px solid black; /* ← Black border */
    border-radius: 8px; /* Optional: rounded corners */
    margin: 20px auto; /* Optional: center spacing */
}

.latest-post {
    /*border: 1px solid #000; */
    background-color: #fff;
    padding: 0;
    margin: 10px;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    min-height: 300px; /* Increased height for long captions */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* shadow effect */
    transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out; /* smoother animation */
}



.latest-post-media img {
    width: 100%; /* Full width image */
    height: auto; /* Keep image aspect ratio */
    display: block; /* Removes inline whitespace */
}

.post-body {
    padding: 8px 5px; /* Just enough space around title */
    margin: 0;
}

.post-title {
    margin: 0;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    word-wrap: break-word; /* Wrap long titles */
    white-space: normal; /* Allow text to go multiline */
    line-height: 1.4;
}



.latest-post:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.photo-text {
    text-align:center;

}

