/* ===============================
   Navbar & Logo Fix
================================= */

.site-header .navbar{
    padding:8px 0;
    min-height:70px;
}

.navbar-brand{
    padding:0;
    margin:0;
    width:auto;
    flex-shrink:0;
}

.site-logo{
    height:45px !important;
    width:auto !important;
    max-width:180px;
    object-fit:contain;
    display:block;
}

.navbar-nav .nav-link{
    padding:10px 12px;
    font-size:15px;
    font-weight:500;
}

@media (max-width:991px){
    .site-logo{
        height:38px !important;
    }
}/* CyberSikkimOnline - Main Stylesheet */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
}
* { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: #334155;
    background: #fff;
}
a { text-decoration: none; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 500;
}
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { border-radius: 50px; padding: 8px 22px; }

/* Hero */
.hero {
    background: transparent;
    color: #fff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px; /* Ensure minimum height when image is loaded */
}

/* Fallback background when no hero image is uploaded */
.hero-no-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Hero background image - using img element with object-fit */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    animation: heroFadeIn 1.2s ease-in-out;
}

/* Dark overlay for hero image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* 45% dark overlay */
    z-index: 1;
}

/* Hero content positioning */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero image fade-in animation */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero h1 { font-size: 2.8rem; font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: .95; }

/* Responsive hero adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
}

/* Sections */
.section { padding: 70px 0; }
.section-title { font-weight: 700; margin-bottom: 8px; }
.section-sub { color: #64748b; margin-bottom: 40px; }

/* Service cards */
.service-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: .3s;
    height: 100%;
    background: #fff;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(37,99,235,.12);
    border-color: var(--primary);
}
.service-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(37,99,235,.1);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 16px;
}

/* Stats */
.stat-box { text-align: center; padding: 20px; }
.stat-box h3 { font-size: 2.2rem; font-weight: 700; color: var(--primary); }

/* Testimonials */
.testimonial-card {
    background: var(--light);
    border-radius: 16px;
    padding: 26px;
    height: 100%;
}
.stars { color: var(--accent); }

/* Footer */
.site-footer a:hover { color: #fff !important; }
.social-links a { font-size: 1.1rem; }

/* Back to top */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    display: none; z-index: 99; align-items: center; justify-content: center;
}

/* Dashboard */
.sidebar {
    background: var(--dark);
    min-height: 100vh;
    color: #cbd5e1;
    padding: 20px 0;
}
.sidebar .nav-link { color: #cbd5e1; padding: 12px 22px; border-radius: 0; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(37,99,235,.25); color: #fff; }
.sidebar .nav-link i { width: 22px; }

/* Forms */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }

/* Dropzone */
.dropzone {
    border: 2px dashed #cbd5e1; border-radius: 12px;
    padding: 30px; text-align: center; cursor: pointer; background: #f8fafc;
}
.dropzone.dragover { border-color: var(--primary); background: rgba(37,99,235,.05); }

/* Status badges */
.badge-status { font-size: .8rem; padding: 5px 12px; border-radius: 50px; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-under_review { background: #dbeafe; color: #1e40af; }
.status-documents_required { background: #fee2e2; color: #991b1b; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-processing { background: #e0e7ff; color: #3730a3; }
.status-completed { background: #bbf7d0; color: #166534; }
.status-delivered { background: #a7f3d0; color: #115e59; }
.status-rejected { background: #fecaca; color: #7f1d1d; }
.status-cancelled { background: #e2e8f0; color: #475569; }

/* Lazy images */
img.lazy { opacity: 0; transition: opacity .3s; }
img.lazy.loaded { opacity: 1; }

/* Maintenance */
.maintenance-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e40af);
}
/* =========================
   HEADER & NAVBAR
========================= */

.site-header .navbar{
    min-height:80px;
    padding:10px 0;
    background:#fff !important;
}

.site-logo{
    height: 42px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
}

.navbar-brand{
    flex: 0 0 auto !important;
    width: auto !important;
    margin-right: 20px !important;
    padding: 0 !important;
}
.navbar-nav .nav-link{
    font-size:16px;
    font-weight:500;
    padding:10px 15px;
    color:#334155;
}

.navbar-nav .nav-link:hover{
    color:#2563eb;
}

@media (max-width:991px){

    .site-header .navbar{
        min-height:70px;
        padding:8px 0;
    }

    .site-logo{
        height:50px;
    }
}