/* Public Layout CSS */
body.public-layout {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.public-navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.public-navbar .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
    border-radius: 8px;
}
.public-navbar .nav-link:hover, .public-navbar .nav-link.active {
    color: #1a5319 !important;
    background-color: rgba(26, 83, 25, 0.05);
}
.btn-login-nav {
    border-color: #1a5319;
    color: #1a5319;
    transition: all 0.3s;
}
.btn-login-nav:hover {
    background-color: #1a5319;
    color: #fff;
    box-shadow: 0 4px 10px rgba(26, 83, 25, 0.2);
}

/* Main Content */
.public-main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 0;
    /* Full background image */
    background-image: url('../../images/background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.public-main-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15); /* Slight dark overlay for contrast */
}

/* Footer */
.public-footer {
    background-color: #1a3622;
    margin-top: auto;
}
.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: #28a745;
    transform: translateY(-3px);
}
.footer-links a, .footer-contact a {
    transition: all 0.2s ease;
}
.footer-links a:hover, .footer-contact a:hover {
    color: #fff !important;
    padding-left: 5px;
}

/* Login Card Specific */
.login-card-wrapper {
    background: transparent;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.login-image-side {
    position: relative;
    min-height: 450px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.login-form-side {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
}

@media (max-width: 767.98px) {
    .login-card-wrapper {
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        background: transparent;
    }
    .login-form-side {
        padding: 3rem 2rem;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(12px);
        border-radius: 20px;
    }
}

/* Custom Inputs */
.custom-input-group {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    overflow: hidden;
}
.custom-input-group:focus-within {
    border-color: #1a5319;
    box-shadow: 0 0 0 3px rgba(26, 83, 25, 0.1);
    background-color: #fff;
}
.custom-input-group .input-group-text {
    background: transparent;
    border: none;
    color: #6c757d;
}
.custom-input-group .form-control {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem 0.75rem 0;
}
.custom-input-group .form-control:focus {
    box-shadow: none;
}

/* Primary Button */
.btn-primary-custom {
    background-color: #143e14;
    border-color: #143e14;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background-color: #0f300f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 62, 20, 0.2);
}

/* Google Button */
.btn-google {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
}
.divider-text {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}
.divider-text::before, .divider-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #e0e0e0;
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* --- PREMIUM MICRO-ANIMATIONS --- */

/* Social Icons Hover Bounce & Glow */
.social-icons a {
    position: relative;
    overflow: hidden;
    color: #fff !important;
}
.social-icons a::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background: #fd7e14 !important;
    box-shadow: 0 10px 20px rgba(253, 126, 20, 0.4);
    color: #fff !important;
}
.social-icons a:hover::before {
    left: 100%;
}

/* Footer Link Hover Gliding Underline */
.footer-contact a {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}
.footer-contact a::after {
    content: "";
    position: absolute;
    width: 0; height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: #fd7e14;
    transition: width 0.3s ease;
}
.footer-contact a:hover {
    color: #fd7e14 !important;
}
.footer-contact a:hover::after {
    width: 100%;
    left: 0;
    background: #fd7e14;
}

/* Login Button Glow Pulse */
.btn-success {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
}

/* Floating Animation for Mascot */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
.login-image-side img[alt="Mascot SSI"] {
    animation: floatAnimation 4s ease-in-out infinite;
}

/* Glassmorphism Input Focus Glow */
.custom-input-group input:focus {
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.15) !important;
    border-color: #198754 !important;
    transition: all 0.3s ease;
}



/* Footer Links Hover */
.footer-link:hover { color: #f39223 !important; text-decoration: underline !important; }


/* HOMEPAGE STYLES */
.hero-section { position: relative; min-height: 85vh; display: flex; align-items: center; background: url('../../images/school_login_illustration_1785738273383.jpg') no-repeat center center/cover; background-attachment: fixed; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(36,75,37,0.85) 0%, rgba(10,25,47,0.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.section-title { color: #244b25; font-weight: 800; font-size: 2.5rem; letter-spacing: -1px; }
.section-subtitle { color: #f39223; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }
.value-card { background: white; border: none; border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.value-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.icon-box { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(243,146,35,0.1); color: #f39223; font-size: 1.5rem; margin-bottom: 1.5rem; }
.philosophy-section { background-color: #fdfbf7; }
.philosophy-list li { padding-left: 2rem; position: relative; margin-bottom: 1rem; }
.philosophy-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: #f39223; font-size: 1.2rem; }
.founder-section { background-color: #244b25; color: white; }
.quote-icon { font-size: 4rem; color: rgba(243,146,35,0.3); position: absolute; top: -20px; left: -20px; z-index: 0; }
.quote-text { position: relative; z-index: 1; font-size: 1.25rem; font-style: italic; font-weight: 300; line-height: 1.8; }



/* NEW BRIGHT THEME STYLES */
.blob-shape { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; overflow: hidden; animation: blob 8s infinite alternate; }
@keyframes blob { 0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 100% { border-radius: 60% 40% 30% 70% / 50% 60% 50% 40%; } }
.leaf-icon { position: absolute; opacity: 0.6; color: #a3b899; animation: float 6s infinite ease-in-out; }
@keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } 100% { transform: translateY(0px) rotate(0deg); } }
.rounded-hero-img { border-top-right-radius: 5rem; border-bottom-right-radius: 5rem; border-bottom-left-radius: 1rem; border-top-left-radius: 1rem; }
.check-list-icon { color: #244b25; font-size: 1.2rem; }
.btn-outline-dark { border-color: #333; color: #333; }
.btn-outline-dark:hover { background-color: #333; color: #fff; }
.img-overlay-bottom { background: linear-gradient(to top, rgba(10,25,47,0.9), transparent); }
.play-btn-overlay { width: 50px; height: 50px; background: white; color: #244b25; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }



/* MOBILE RESPONSIVE FIXES */
.hero-image-custom { object-fit: cover; height: 500px; width: 100%; clip-path: url(#hero-wave); }
@media (max-width: 991.98px) { .hero-image-custom { height: 300px; clip-path: none; border-radius: 1rem; } .blob-shape { height: 300px !important; } .philosophy-section .rounded-4 { height: 300px !important; } }

