/* Jaya Bageshwari Residential Secondary School - Custom CSS */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --accent-color: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar span {
    margin-right: 20px;
}

.top-bar .login-icons {
    display: inline-flex;
    gap: 15px;
    margin-right: 20px;
    vertical-align: middle;
}

.top-bar .login-icon {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 13px;
}

.top-bar .login-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.top-bar .login-icon i {
    font-size: 14px;
}

.top-bar .social-links {
    display: inline-flex;
    gap: 10px;
    vertical-align: middle;
}

.top-bar .social-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar .social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.7);
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    padding: 80px 0;
}

.welcome-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.welcome-section .lead {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.feature-card {
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--secondary-color);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== NEWS & EVENTS SECTION ===== */
.news-events-section {
    padding: 80px 0;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 25px;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.news-card h5 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== NOTICES SECTION ===== */
.notices-section {
    padding: 80px 0;
}

.notice-list {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.notice-icon i {
    font-size: 1.2rem;
    color: white;
}

.notice-content h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.notice-content p {
    color: var(--text-light);
    margin-bottom: 5px;
}

/* ===== CONTACT CTA SECTION ===== */
.contact-cta-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.contact-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.contact-cta-section .btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: #111827;
    color: white;
}

.footer-top {
    padding: 60px 0 30px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-widget h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-widget p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    color: #9ca3af;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #0f172a;
    padding: 20px 0;
    border-top: 1px solid #1f2937;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 30px 20px;
}

.input-group-text {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.modal-footer {
    background: var(--bg-light);
    border-radius: 0 0 15px 15px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }
    
    .top-bar .login-icons {
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }
    
    .top-bar .social-links {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    
    .login-icon span {
        display: none;
    }
    
    .login-icon {
        padding: 8px;
        border-radius: 50%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .notice-item {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-icon {
        margin: 0 auto 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .welcome-section,
    .features-section,
    .news-events-section,
    .notices-section,
    .contact-cta-section {
        padding: 60px 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background: var(--primary-color) !important;
}

.rounded-custom {
    border-radius: 15px;
}

.shadow-custom {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.transition-custom {
    transition: all 0.3s ease;
}
