/* ELEGANT & PREMIUM PRELOADER FOR WOMEN'S COLLEGE */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999999;
    /* Soft, elegant pastel gradient suitable for a women's college */
    background: linear-gradient(135deg, #fdfbfb 0%, #fff0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 0.8s;
}

/* Very subtle glowing backdrop behind the logo */
.preloader::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 82, 159, 0.08) 0%, rgba(255,255,255,0) 60%);
    animation: gentleGlow 4s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes gentleGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

#pre, .loader-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* The college logo styling - clean and crisp */
.preloader-logo {
    width: 125px;
    height: auto;
    z-index: 15;
    animation: gracefulPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0px 8px 16px rgba(238, 82, 159, 0.15));
}

/* Elegant, thin, rotating outer ring */
.loader-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Very faint track */
    border: 1px solid rgba(0, 35, 71, 0.06); 
    /* Highlighted edge using college pink */
    border-top: 2px solid #ee529f; 
    border-right: 2px solid transparent;
    animation: elegantSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 12;
}

/* Elegant inner rotating ring */
.loader-container::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    border: 1px solid rgba(238, 82, 159, 0.06);
    /* Highlighted edge using college dark blue */
    border-bottom: 2px solid #002347; 
    border-left: 2px solid transparent;
    animation: elegantSpinReverse 2.2s linear infinite;
    z-index: 11;
}

/* Third decorative dotted ring for a premium feel */
.loader-container > div.decorative-ring {
    position: absolute;
    width: 115%;
    height: 115%;
    border-radius: 50%;
    border: 1px dashed rgba(238, 82, 159, 0.2);
    animation: spinVerySlow 15s linear infinite;
    z-index: 9;
}

@keyframes elegantSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes elegantSpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes spinVerySlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gracefulPulse {
    0% { transform: scale(0.96); opacity: 0.85; }
    50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0px 10px 20px rgba(238, 82, 159, 0.25)); }
    100% { transform: scale(0.96); opacity: 0.85; }
}

/* Hide the old cube items since we are replacing the visual */
.cube, .shadow {
    display: none !important;
}

/* Class added via JS to hide preloader */
.preloader.loaded, body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    #pre, .loader-container {
        width: 170px;
        height: 170px;
    }
    .preloader-logo {
        width: 95px;
    }
}