*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fff;
    overflow-x: hidden;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.3), rgba(4, 9, 30, 0.3)),url(Images/School\ Buliding.png);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    filter: brightness(1.1);
}

nav{
    display: flex;
    padding: 1% 6%;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav.scrolled .nav-links ul li a,
nav.scrolled .list-item {
    color: #333;
}

nav img{
    width: 120px;
    transition: all 0.3s ease;
}

.nav-links{
    flex: 1;
    text-align: right;
    background: transparent;
}

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
    background: transparent;
}

.nav-links ul{
    background: transparent;
}

.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background-color: #4caf50;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

.nav-links ul li a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    background: transparent;
    transition: color 0.3s ease;
}

.list-item{
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: color 0.3s ease;
}

.list-item .icon{
    background: transparent;
    color: #4caf50;
    margin-left: 5px;
}

.list-item .sub-list{
    width: 200px;
    position: absolute;
    z-index: 999;
    display: none;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.list-item:hover .sub-list {
    display: block;
}

.list-item .sub-list li {
    display: block;
    padding: 10px 15px;
}

.list-item .sub-list li a {
    color: #333;
    font-size: 16px;
}

.text-box{
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.text-box h1{
    font-size: 58px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.text-box p{
    margin: 20px 0 40px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.button{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    position: relative;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #4caf50;
    z-index: -1;
    transition: all 0.5s ease;
    border-radius: 50px;
}

.button:hover::before {
    width: 100%;
}

.button:hover{
    color: white;
    border-color: #4caf50;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

nav .fa{
    display: none;
}

/* Facilities Section - Redesigned */
.facilities {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 100px 0 80px;
    overflow: hidden;
    position: relative;
}

.facilities::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 50%;
    top: 50px;
    left: -150px;
    z-index: 0;
}

.facilities::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 50%;
    bottom: 0;
    right: -200px;
    z-index: 0;
}

.facilities h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 70px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.facilities h1::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #4caf50;
    bottom: -15px;
    left: 50%;
    transform: translateX(-125%);
}

.facilities h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #4caf50;
    bottom: -15px;
    left: 50%;
    transform: translateX(25%);
}

.facilities .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
}

.facilities-col {
    position: relative;
    flex-basis: calc(25% - 40px);
    min-width: 250px;
    max-width: 300px;
    margin-bottom: 40px;
    cursor: pointer;
    transform: translateY(0);
    opacity: 1;
    perspective: 1000px;
    z-index: 1;
    animation: none !important;
}

.facilities-col.animate {
    transform: translateY(0);
    opacity: 1;
}

.facilities-col-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    min-height: 350px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facilities-col:hover .facilities-col-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.facilities-col-front {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
}

.facilities-col .content {
    padding: 25px 20px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 1;
    min-height: 150px;
}

/* Added styling for learn-more button in content */
.facilities-col .content .learn-more {
    display: inline-block;
    padding: 8px 20px;
    background: #4caf50;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
}

.facilities-col .content .learn-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.4);
}

.facilities-col .img-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.facilities-col .img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0.2), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.facilities-col:hover .img-container::after {
    opacity: 1;
}

.facilities-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease;
    filter: brightness(1);
    opacity: 1;
}

.facilities-col:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.facilities-col h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.facilities-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #4caf50;
}

.facilities-col p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.facilities-col-back h3 {
    color: #4caf50;
    margin-bottom: 20px;
}

.facilities-col-back p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.facilities-col-back .facility-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.facilities-col-back .learn-more {
    display: inline-block;
    padding: 10px 25px;
    background: #4caf50;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
}

.facilities-col-back .learn-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.4);
}

/* Card indicator for flip effect */
.flip-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #4caf50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    z-index: 5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Improved Responsive Design */
@media (max-width: 1400px) {
    .facilities-col {
        flex-basis: calc(33.33% - 40px);
    }
}

@media (max-width: 1100px) {
    .facilities-col {
        flex-basis: calc(50% - 40px);
        max-width: 350px;
    }
}

@media (max-width: 991px) {
    .facilities h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .facilities h1 {
        font-size: 2.4rem;
    }
    
    .facilities-col {
        flex-basis: calc(100% - 40px);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .facilities .row {
        gap: 50px;
    }
}

@media (max-width: 480px) {
    .facilities h1 {
        font-size: 2rem;
    }
    
    .facilities h1::before,
    .facilities h1::after {
        width: 40px;
    }
    
    .facilities-col {
        max-width: 320px;
    }
}

/* Animation for facilities cards when scrolling */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.facilities-col.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.facilities-col:nth-child(1).animate {
    animation-delay: 0.1s;
}

.facilities-col:nth-child(2).animate {
    animation-delay: 0.3s;
}

.facilities-col:nth-child(3).animate {
    animation-delay: 0.5s;
}

.facilities-col:nth-child(4).animate {
    animation-delay: 0.7s;
}

/* Our Achievements */
.achievements {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 80px 0;
    background: #f3aeae;
}

.achievements h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.achievements h1::after {
    content: "";
    width: 150px;
    height: 4px;
    background: #4caf50;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Main Container */
.container {
    width: 100%;
    margin: 2rem auto;
}

/* Section Title */
.section-title,
.section-title2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after,
.section-title2::after {
    content: "";
    width: 100px;
    height: 3px;
    background: #4caf50;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Achievement Card */
.achievement-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
}

.achievement-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.achievement-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.achievement-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 1;
}

.achievement-card .details {
    padding: 20px;
    text-align: left;
}

.achievement-card .details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.achievement-card .details p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.achievement-card .details .badge {
    display: inline-block;
    padding: 5px 15px;
    background: #4caf50;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Campus Section */
.campus {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
}

.campus h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campus h1::after {
    content: "";
    width: 150px;
    height: 4px;
    background: #4caf50;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.container2 {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.container2 p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

video:hover {
    transform: scale(1.03);
}

/* Free Consultancy */
.fc {
    margin: 100px auto;
    width: 90%;
    max-width: 1200px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(Images/School\ Buliding.png);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.fc h1 {
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Footer Section */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: #333;
    color: #fff;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #fff;
}

.footer img {
    width: 120px;
    margin: 10px 0 20px;
}

.text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    color: #fff;
    background: #333;
}

.row i {
    margin-right: 10px;
    color: #4caf50;
    font-size: 18px;
    background: #333;
}

.al {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    background: #333;
}

.icons {
    margin: 30px 0;
    background: #333;
}

.icons .fa-brands {
    color: #fff;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px;
    font-size: 20px;
    background: #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icons .fa-brands:hover {
    color: #fff;
    background: #4caf50;
    transform: translateY(-5px);
}

.pixel-name {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
    background: #333;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .facilities-col {
        flex-basis: calc(33.33% - 30px);
    }
}

@media (max-width: 991px) {
    .facilities-col {
        flex-basis: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    nav img {
        width: 90px;
    }
    
    .text-box h1 {
        font-size: 36px;
    }
    
    .text-box p {
        font-size: 16px;
    }
    
    .facilities h1,
    .achievements h1,
    .campus h1,
    .fc h1 {
        font-size: 2rem;
    }
    
    .video-container {
        width: 100%;
    }
    
    .section-title,
    .section-title2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 700px) {
    nav {
        padding: 2% 4%;
    }
    
    .header {
        min-height: 80vh;
    }
    
    .text-box h1 {
        font-size: 28px;
    }
    
    .text-box p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-links {
        position: fixed;
        background: #2c3e50;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.5s;
        display: flex;
        flex-direction: column;
    }
    
    .nav-links.show {
        right: 0;
    }
    
    /* Basic navigation button styles */
    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
        background: transparent;
        z-index: 2001;
        position: relative;
    }
    
    /* Compact menu styles */
    .nav-links ul {
        padding: 20px;
        margin-top: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        max-height: 100%;
    }
    
    .nav-links ul li {
        display: block;
        padding: 0;
        margin: 0;
        font-size: 15px;
        width: 100%;
    }
    
    /* Make links and items more compact */
    .nav-links ul li a,
    .list-item {
        color: #fff;
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 15px;
        line-height: 1.2;
    }
    
    /* Item text container */
    .item-text {
        flex: 1;
        display: block;
    }
    
    .list-item {
        position: relative;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 25px; /* Slightly less padding */
    }
    
    .list-item .icon {
        position: absolute;
        right: 0;
        top: 8px; /* Fixed position */
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        background-color: transparent;
        border-radius: 50%;
        font-weight: bold;
        transform: none; /* Remove transform that causes issues */
    }
    
    /* Add a highlight effect when clicking the icon */
    .list-item .icon:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Fix submenu to prevent layout shifts */
    .list-item .sub-list {
        position: static;
        opacity: 1;
        visibility: visible;
        width: 100%;
        background: #1f2c39;
        box-shadow: none;
        padding-left: 15px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 5px;
        margin-top: 5px;
    }
    
    .list-item .sub-list li {
        padding: 0;
        margin: 2px 0;
    }
    
    .list-item .sub-list li a {
        color: #fff;
        padding: 6px 8px;
        font-size: 13px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        display: block;
    }
    
    .nav-links ul li a:hover,
    .list-item:hover,
    .list-item .sub-list li a:hover {
        color: #4caf50;
    }
    
    /* Show only when parent is active */
    .list-item.active .sub-list {
        max-height: 150px;
    }
    
    .facilities-col,
    .achievement-card {
        margin-bottom: 30px;
    }
    
    .fc h1 {
        font-size: 1.5rem;
    }
    
    /* Adjust back to top button position */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .text-box h1 {
        font-size: 24px;
    }
    
    .header {
        min-height: 70vh;
    }
    
    .section-title::after,
    .section-title2::after {
        width: 80px;
    }
    
    .fc {
        padding: 60px 20px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #388e3c;
    transform: translateY(-5px);
}

/* Animation for cards */
.facilities-col, .achievement-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.facilities-col.animate, .achievement-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Add transition delay for staggered animation */
.facilities-col:nth-child(1), .achievement-card:nth-child(1) {
    transition-delay: 0.1s;
}

.facilities-col:nth-child(2), .achievement-card:nth-child(2) {
    transition-delay: 0.2s;
}

.facilities-col:nth-child(3), .achievement-card:nth-child(3) {
    transition-delay: 0.3s;
}

.facilities-col:nth-child(4) {
    transition-delay: 0.4s;
}

/* Hover effects for buttons */
.button:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved link hover effects */
.nav-links ul li a:hover, 
.list-item:hover,
.footer .row a:hover,
.icons a:hover .fa-brands {
    color: #4caf50;
}

/* Social media icons improved */
.icons a {
    text-decoration: none;
    display: inline-block;
}

/* Responsive Images with lazy loading effect */
img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    filter: blur(0);
}

.facilities-col .img-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.facilities-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease;
    filter: brightness(1);
    opacity: 1;
}

.achievement-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 1;
}

/* Login Button in Navbar */
.login-btn {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
}

.login-btn a {
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.login-btn::after {
    content: '';
    width: 0%;
    height: 2px;
    background-color: #4caf50;
    display: block;
    margin: auto;
    transition: 0.5s;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.login-btn:hover::after {
    width: 100%;
}

.login-btn:hover a {
    color: #4caf50;
}

.login-btn a i {
    margin-right: 5px;
}

nav.scrolled .login-btn a {
    color: #333;
}

nav.scrolled .login-btn:hover a {
    color: #4caf50;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s ease;
    padding: 30px;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #4caf50;
}

/* Login Options */
.login-options {
    text-align: center;
}

.login-options h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.login-options p {
    color: #666;
    margin-bottom: 25px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-option-btn {
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-option-btn i {
    font-size: 18px;
}

.student-btn {
    background-color: #3498db;
    color: white;
}

.student-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.admin-btn {
    background-color: #e74c3c;
    color: white;
}

.admin-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Login Forms */
.login-form {
    display: none;
}

.login-form h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #4caf50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 40px;
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #4caf50;
}

.form-button {
    width: 100%;
    padding: 14px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-button:hover {
    background-color: #3d8b40;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.back-to-options {
    margin-top: 20px;
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.back-to-options:hover {
    color: #2980b9;
}

/* Responsive Login Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }

    .login-option-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .login-form h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 20% auto;
        padding: 15px;
    }

    .login-options h2 {
        font-size: 24px;
    }

    .form-group input {
        padding: 10px 12px;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 30px;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h1 i {
    color: #4caf50;
}

.admin-header .admin-actions {
    display: flex;
    gap: 15px;
}

.admin-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.admin-logout {
    background-color: #f1f1f1;
    color: #333;
}

.admin-logout:hover {
    background-color: #e0e0e0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.admin-card-content {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.admin-card-btn {
    padding: 10px 15px;
    background-color: #f5f7fa;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.admin-card-btn:hover {
    background-color: #e8eaed;
}

.facilities-icon {
    background-color: #3498db;
}

.achievements-icon {
    background-color: #e74c3c;
}

.events-icon {
    background-color: #f39c12;
}

.users-icon {
    background-color: #9b59b6;
}

.settings-icon {
    background-color: #1abc9c;
}

.backup-icon {
    background-color: #34495e;
}

/* Admin content section */
.admin-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-content-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-content-title i {
    color: #4caf50;
}

.admin-content-actions {
    display: flex;
    gap: 10px;
}

.content-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.add-btn {
    background-color: #4caf50;
    color: white;
}

.add-btn:hover {
    background-color: #3d8b40;
}

.filter-btn {
    background-color: #f1f1f1;
    color: #333;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    font-weight: 600;
    color: #333;
    background-color: #f7f7f7;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table .actions {
    display: flex;
    gap: 10px;
}

.table-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: #3498db;
    color: white;
}

.edit-btn:hover {
    background-color: #2980b9;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.view-btn {
    background-color: #f39c12;
    color: white;
}

.view-btn:hover {
    background-color: #d68910;
}

/* Form modal for admin */
.admin-form-container {
    padding: 20px;
}

.admin-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.admin-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.admin-form-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-submit-btn {
    background-color: #4caf50;
    color: white;
}

.admin-submit-btn:hover {
    background-color: #3d8b40;
}

.admin-cancel-btn {
    background-color: #f1f1f1;
    color: #333;
}

.admin-cancel-btn:hover {
    background-color: #e0e0e0;
}

.admin-form-group .file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.admin-form-group .file-input-label {
    display: block;
    padding: 12px 15px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.admin-form-group .file-input-label:hover {
    background-color: #e0e0e0;
}

.admin-form-group .file-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.admin-form-group .file-name {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* Responsive admin dashboard */
@media (max-width: 991px) {
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .admin-dashboard {
        padding: 15px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-buttons {
        flex-direction: column;
    }

    .admin-form-btn {
        width: 100%;
    }
}

/* Admin Facility Card Styles */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-facility-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-facility-image {
    height: 200px;
    overflow: hidden;
}

.admin-facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.admin-facility-card:hover .admin-facility-image img {
    transform: scale(1.05);
}

.admin-facility-details {
    padding: 20px;
}

.admin-facility-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.admin-facility-details p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-facility-actions {
    display: flex;
    gap: 10px;
}

/* Current image preview in edit modal */
.current-image {
    margin-top: 15px;
}

.current-image p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.current-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Delete confirmation */
.delete-confirmation {
    text-align: center;
    padding: 20px 0;
}

.delete-confirmation i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.delete-confirmation p {
    color: #333;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Admin notifications */
.admin-notification {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-notification.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #4caf50;
}

.admin-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.admin-notification i {
    margin-right: 10px;
    font-size: 18px;
}

.close-notification {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-notification:hover {
    opacity: 1;
}

/* No records message */
.no-records {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

.no-records i {
    font-size: 48px;
    color: #aaa;
    margin-bottom: 20px;
}

.no-records p {
    color: #666;
    font-size: 16px;
}

/* Responsive admin facility cards */
@media (max-width: 991px) {
    .facilities-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .admin-facility-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
}

/* Achievement Badge */
.achievement-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Add style for hiding scroll indicator when at bottom or not scrollable */
.nav-links.at-bottom::after {
    display: none;
}

/* Ensure menu items are more visibly separated */
@media screen and (max-width: 700px) {
    .nav-links ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
    }
    
    .nav-links ul li:last-child {
        border-bottom: none;
    }
    
    /* Make the menu text more visible */
    .nav-links ul li a,
    .list-item {
        color: white !important;
        opacity: 0.9;
        transition: opacity 0.3s;
    }
    
    .nav-links ul li a:hover,
    .list-item:hover {
        opacity: 1;
    }
}