/* ============================================
   MODERN FRONTEND UI/UX ENHANCEMENTS
   ProSchool360 - Modern Design System
   ============================================ */

/* Modern CSS Variables */
:root {
    --thm-primary: #6366f1;
    --thm-primary-dark: #4f46e5;
    --thm-primary-light: #818cf8;
    --thm-text: #334155;
    --thm-secondary-text: #64748b;
    --thm-hover: #4f46e5;
    --thm-footer-text: #64748b;
    --thm-black: #1e293b;
    --thm-radius: 12px;
    --thm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --thm-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --thm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --thm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --thm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --thm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --thm-transition-fast: all 0.15s ease;
    --thm-gradient: linear-gradient(135deg, var(--thm-primary) 0%, var(--thm-primary-dark) 100%);
}

/* Modern Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Modern Container */
.container, .container-fluid {
    position: relative;
}

.main-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ============================================
   MODERN HEADER ENHANCEMENTS
   ============================================ */

.main-header {
    position: relative;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.top-bar a {
    color: var(--thm-text);
    transition: var(--thm-transition-fast);
}

.top-bar a:hover {
    color: var(--thm-primary);
}

.stricky {
    background: #ffffff !important;
    box-shadow: var(--thm-shadow);
    transition: var(--thm-transition);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 50px;
    transition: var(--thm-transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--thm-text) !important;
    padding: 8px 16px !important;
    border-radius: var(--thm-radius);
    transition: var(--thm-transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--thm-primary) !important;
    background: rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--thm-primary);
    border-radius: 2px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--thm-shadow-lg);
    border-radius: var(--thm-radius);
    padding: 8px;
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--thm-transition-fast);
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--thm-primary);
}

/* ============================================
   MODERN BUTTONS
   ============================================ */

.btn {
    border-radius: var(--thm-radius);
    font-weight: 500;
    padding: 12px 28px;
    transition: var(--thm-transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-black {
    background: var(--thm-gradient);
    color: #ffffff;
    box-shadow: var(--thm-shadow-md);
}

.btn-black:hover {
    transform: translateY(-2px);
    box-shadow: var(--thm-shadow-lg);
    color: #ffffff;
}

.btn-black::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-black:hover::before {
    left: 100%;
}

/* ============================================
   MODERN CARDS & BOXES
   ============================================ */

.box, .holo-card {
    background: #ffffff;
    border-radius: var(--thm-radius);
    padding: 30px;
    box-shadow: var(--thm-shadow);
    transition: var(--thm-transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.box:hover, .holo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--thm-shadow-lg);
}

.box .icon {
    width: 60px;
    height: 60px;
    background: var(--thm-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 24px;
}

.box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--thm-black);
}

.box p {
    color: var(--thm-secondary-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================
   MODERN FORMS
   ============================================ */

.form-control {
    border-radius: var(--thm-radius);
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: var(--thm-transition-fast);
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--thm-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-group label {
    font-weight: 500;
    color: var(--thm-black);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

/* ============================================
   MODERN SECTIONS
   ============================================ */

.welcome-area {
    padding: 60px 0;
}

.welcome-area h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.welcome-area p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--thm-secondary-text);
}

.wel-img img {
    border-radius: var(--thm-radius);
    box-shadow: var(--thm-shadow-lg);
}

.sec-title {
    text-align: center;
    margin-bottom: 50px;
}

.sec-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sec-title p {
    font-size: 18px;
    color: var(--thm-secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   MODERN BANNER
   ============================================ */

.main-banner {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    z-index: 1;
}

.main-banner .container {
    position: relative;
    z-index: 2;
}

.main-banner h2 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    background: #f8fafc;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: var(--thm-primary);
    transition: var(--thm-transition-fast);
}

.breadcrumb a:hover {
    color: var(--thm-primary-dark);
}

.breadcrumb .active {
    color: var(--thm-secondary-text);
}

/* ============================================
   MODERN FOOTER
   ============================================ */

.main-footer {
    margin-top: 80px;
}

.footer-area {
    padding: 60px 0 40px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.footer-area > .container {
    position: relative;
    z-index: 2;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-dec {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-area h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.address-list li,
.quick-links li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--thm-transition-fast);
}

.address-list li i,
.quick-links li i {
    margin-right: 10px;
    color: var(--thm-primary-light);
}

.quick-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--thm-transition-fast);
}

.quick-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: var(--thm-transition);
}

.social li a:hover {
    background: var(--thm-primary);
    transform: translateY(-3px);
    box-shadow: var(--thm-shadow-md);
}

.copyright {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   MODERN CONTACT PAGE
   ============================================ */

.contact-info-box {
    margin-bottom: 50px;
}

.info-box {
    padding: 40px;
    background: #ffffff;
    border-radius: var(--thm-radius);
    box-shadow: var(--thm-shadow-md);
}

.info-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--thm-black);
}

.info-box h5 {
    font-size: 16px;
    color: var(--thm-secondary-text);
    line-height: 1.8;
}

.cblock-1 {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--thm-radius);
    box-shadow: var(--thm-shadow);
    margin-bottom: 25px;
    transition: var(--thm-transition);
}

.cblock-1:hover {
    transform: translateY(-5px);
    box-shadow: var(--thm-shadow-lg);
}

.cblock-1 .icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--thm-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 24px;
}

.cblock-1 h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--thm-black);
}

.cblock-1 p {
    color: var(--thm-secondary-text);
    line-height: 1.7;
    margin: 0;
}

.map {
    border-radius: var(--thm-radius);
    overflow: hidden;
    box-shadow: var(--thm-shadow-lg);
    margin-top: 50px;
}

.map iframe {
    border: none;
    display: block;
}

/* ============================================
   MODERN ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hover-lift {
    transition: var(--thm-transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .main-banner h2 {
        font-size: 32px;
    }
    
    .welcome-area h2 {
        font-size: 28px;
    }
    
    .sec-title h2 {
        font-size: 28px;
    }
    
    .box, .holo-card {
        margin-bottom: 25px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
    }
    
    .info-box {
        padding: 25px;
    }
    
    .footer-area {
        padding: 40px 0 30px;
    }
    
    .main-container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .main-banner {
        padding: 60px 0;
    }
    
    .main-banner h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .box, .holo-card {
        padding: 20px;
    }
}

/* ============================================
   MODERN UTILITIES
   ============================================ */

.text-gradient {
    background: var(--thm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: var(--thm-shadow-sm);
}

.shadow-md {
    box-shadow: var(--thm-shadow-md);
}

.shadow-lg {
    box-shadow: var(--thm-shadow-lg);
}

.rounded-lg {
    border-radius: var(--thm-radius);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--thm-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--thm-shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--thm-transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--thm-shadow-xl);
}

/* Latest News Marquee */
.latest--news {
    background: var(--thm-gradient);
    padding: 12px 0;
    position: relative;
    z-index: 998;
}

.latest-title {
    font-weight: 600;
    font-size: 14px;
    margin-right: 20px;
}

.news-updates-list {
    flex: 1;
}

.news-updates-list ul li {
    margin-right: 30px;
}

.news-updates-list a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--thm-transition-fast);
}

.news-updates-list a:hover {
    color: #ffffff;
}

/* Modern Alert Styles */
.alert {
    border-radius: var(--thm-radius);
    border: none;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Loading Animation */
.lds-dual-ring {
    border-color: var(--thm-primary) transparent var(--thm-primary) transparent;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--thm-primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--thm-primary);
    color: #ffffff;
}

