/* ==========================================================================
   GMS Campus - Modern Green Tech Theme System
   ========================================================================== */

:root {
    --green-primary: #1913D0;
    --green-primary-hover: #120da3;
    --green-accent: #2563eb;
    --green-light: #eff6ff;
    --green-light-border: #bfdbfe;
    --green-dark: #0f172a;
    --green-dark-surface: #1e293b;
    --green-text-dark: #1e3a8a;
    --green-border: #cbd5e1;
    --green-border-active: #1913D0;
}

/* 1. Global Zero Border-Radius & Zero Box-Shadow Enforcements */
* {
    border-radius: 0 !important;
    box-shadow: none !important;
}

*:focus,
*:focus-visible,
.form-control:focus,
.btn:focus,
.btn:focus-visible {
    outline: 2px solid var(--green-accent) !important;
    outline-offset: 1px !important;
    box-shadow: none !important;
}

/* Custom High-Tech Tech-Blue Scrollbar (Zero Border-Radius) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-left: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #1913D0;
    border-radius: 0 !important;
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #120da3;
}

::-webkit-scrollbar-thumb:active {
    background: #2563eb;
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #1913D0 #f1f5f9;
}

/* 2. Sticky Footer & Responsive Body Layout */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.main-content,
main {
    flex: 1 0 auto;
}

footer,
.footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--green-dark) !important;
    border-top: 3px solid var(--green-primary);
}

/* 3. Bootstrap Override System for Green Theme */
.text-primary {
    color: var(--green-primary) !important;
}

.text-accent {
    color: var(--green-accent) !important;
}

.bg-primary {
    background-color: var(--green-primary) !important;
}

.bg-dark-emerald {
    background-color: var(--green-dark) !important;
}

.bg-light-mint {
    background-color: var(--green-light) !important;
}

.border-primary {
    border-color: var(--green-primary) !important;
}

.border-accent {
    border-color: var(--green-accent) !important;
}

.border-tech {
    border: 1px solid var(--green-border) !important;
}

.border-tech-green {
    border: 1px solid var(--green-primary) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--green-primary) !important;
    border: 1px solid var(--green-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--green-primary-hover) !important;
    border-color: var(--green-primary-hover) !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border: 1px solid var(--green-primary) !important;
    color: var(--green-primary) !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: var(--green-primary) !important;
    color: #ffffff !important;
}

.btn-light-green {
    background-color: var(--green-light) !important;
    border: 1px solid var(--green-light-border) !important;
    color: var(--green-text-dark) !important;
    font-weight: 600;
}

.btn-light-green:hover {
    background-color: var(--green-primary) !important;
    color: #ffffff !important;
    border-color: var(--green-primary) !important;
}

/* Spinners */
.spinner-border.text-primary {
    border-color: var(--green-primary) !important;
    border-right-color: transparent !important;
}

/* Navbar Compact Sticky System */
header.sticky-top,
.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid var(--green-primary) !important;
}

.navbar-brand {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.navbar-brand img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    max-height: 44px !important;
    width: auto !important;
}

.navbar-light {
    background-color: #ffffff !important;
    border-bottom: 2px solid var(--green-primary) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--green-dark) !important;
    font-weight: 600;
    font-size: 0.88rem !important;
    padding: 12px 14px !important;
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--green-primary) !important;
    background-color: var(--green-light) !important;
    border-bottom: 2px solid var(--green-primary);
}

.dropdown-toggle::after,
.navbar .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.dropdown-menu {
    border: 1px solid var(--green-primary) !important;
    padding: 0 !important;
    background-color: #ffffff;
}

.dropdown-item {
    padding: 10px 18px;
    font-weight: 500;
    color: var(--green-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--green-primary) !important;
    color: #ffffff !important;
}

/* Lucide Icon Helpers */
i[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    stroke-width: 2.2;
}

.icon-sm {
    width: 1em !important;
    height: 1em !important;
}

.icon-lg {
    width: 1.6em !important;
    height: 1.6em !important;
}

.icon-xl {
    width: 2.2em !important;
    height: 2.2em !important;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--green-light);
    color: var(--green-primary);
    border: 1px solid var(--green-light-border);
}

/* Modern Card Layouts */
.tech-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    border-color: var(--green-accent) !important;
}

.tech-card .card-body {
    padding: 1.75rem;
    flex: 1;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--green-light);
    color: var(--green-primary);
    border: 1px solid var(--green-light-border);
}

.text-center > .tech-badge,
.text-center .tech-badge.mb-2 {
    display: inline-flex !important;
    margin-bottom: 0.75rem !important;
}

/* Hero & Section Header Styling */
.section-title-tech {
    position: relative;
    display: block;
    width: fit-content;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-tech.text-center,
.text-center > .section-title-tech {
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-title-tech::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--green-primary);
}

.section-title-tech.text-center::after,
.text-center > .section-title-tech::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Academic & Notice Cards */
.event-card {
    border-left: 4px solid var(--green-primary) !important;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem;
}

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid #cbd5e1 !important;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    color: #1e293b;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green-primary) !important;
    background-color: #ffffff;
}

/* Footer Modern Component */
.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--green-accent);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.footer-link:hover {
    color: var(--green-accent);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.footer-contact-item i[data-lucide] {
    color: var(--green-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: var(--green-accent) !important;
    border-color: var(--green-accent) !important;
    color: #0f172a !important;
}

.social-btn svg,
.social-btn i {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor;
    fill: none;
}

/* Header Carousel Modern Positioning */
.header-carousel .owl-nav {
    position: absolute;
    bottom: 30px;
    right: 40px;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 10;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 0 !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--green-primary) !important;
    transition: all 0.2s ease;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--green-primary) !important;
    border-color: var(--green-primary) !important;
    color: #ffffff !important;
}

/* Alignment & Section Spacing Helpers */
.section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.tech-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.tech-card .card-body {
    padding: 1.75rem;
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
}

.tech-card .card-body h4,
.tech-card .card-body h5 {
    min-height: 2.5rem;
}

.tech-card .card-body p {
    flex: 1 1 auto;
    margin-bottom: 1.25rem;
}

.tech-card .btn,
.tech-card a.btn {
    margin-top: auto;
}

/* Nepali Datepicker & Custom Calendar System */
#nepali-datepicker-popup,
.nepali-datepicker-popup {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--green-primary) !important;
    font-family: inherit !important;
    z-index: 9999 !important;
}

.nepali-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.nepali-calendar-header-day {
    background-color: var(--green-dark);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    padding: 10px 4px;
    text-transform: uppercase;
}

.nepali-calendar-cell {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    min-height: 85px;
    padding: 6px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nepali-calendar-cell:hover {
    border-color: var(--green-primary);
    background-color: var(--green-light);
}

.nepali-calendar-cell.is-today {
    background-color: var(--green-light);
    border: 2px solid var(--green-primary) !important;
}

.nepali-calendar-cell.is-today::before {
    content: 'TODAY';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    background-color: var(--green-primary);
    color: #ffffff;
    padding: 1px 4px;
}

.nepali-calendar-cell.other-month {
    opacity: 0.35;
    background-color: #f8fafc;
}

.bs-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.1;
}

.ad-num {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.cell-event-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 4px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 3px solid var(--green-primary);
}

.cell-event-badge.holiday {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.cell-event-badge.exam {
    background-color: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

/* Footer Logo Blend Styling */
.footer-logo-img {
    max-height: 54px;
    width: auto;
    background-color: #ffffff;
    padding: 6px 14px;
    display: inline-block;
    mix-blend-mode: multiply;
    border: none !important;
    outline: none !important;
}

/* Terminal & Developer Component Keyframe Animation */
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-pulse {
    animation: blinkCursor 1.2s infinite;
}

/* Custom Preloader Spinner (From Uiverse.io by Rajan1092) */
.spinner {
    width: 56px;
    height: 56px;
    display: grid;
}

.spinner::before,
.spinner::after {
    content: "";
    grid-area: 1/1;
    background: var(--c) 50% 0, 
                var(--c) 50% 100%, 
                var(--c) 100% 50%, 
                var(--c) 0 50%;
    background-size: 13.4px 13.4px;
    background-repeat: no-repeat;
    animation: spinner-3hs4a3 1s infinite;
}

.spinner::before {
    --c: radial-gradient(farthest-side, var(--green-primary, #1913D0) 92%, #0000);
    margin: 4.5px;
    background-size: 9px 9px;
    animation-timing-function: linear;
}

.spinner::after {
    --c: radial-gradient(farthest-side, var(--green-primary, #1913D0) 92%, #0000);
}

@keyframes spinner-3hs4a3 {
    100% {
        transform: rotate(.5turn);
    }
}


