/**
 * RUN FOR BOOKs - Road Race Website
 * Students' Health Home, Jalpaiguri
 */

:root {
    --primary: #dc3545;
    --primary-dark: #bb2d3b;
    --dark: #212529;
}

* {
    scroll-margin-top: 70px;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    padding-top: 56px;
}
.runner-icon {
    transition: transform 0.1s linear;
}


/* Navbar - Blueish */
.navbar {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand { font-size: 1.2rem; }
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}
.nav-link { font-weight: 500; }
.nav-link:hover { color: rgba(255,255,255,0.9) !important; }

/* Applicant Login first in mobile nav */
.navbar-nav { display: flex; flex-wrap: wrap; }
.nav-item-applicant-login { order: -1; }
@media (min-width: 992px) {
    .nav-item-applicant-login { order: 10; }
}

/* Hero */
.hero-section {
    min-height: 70vh;
    background: #1e293b;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-banner {
    position: absolute;
    inset: 0;
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 64, 175, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%); }
.hero-banner, .hero-overlay { z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.hero-section h1 { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-section .btn-danger {
    background: #fff;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-section .btn-danger:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Countdown */
.countdown-box {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.countdown-item {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 90px;
    backdrop-filter: blur(4px);
}
.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.countdown-item small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 700;
}

/* Sections */
.section-title {
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-title-left {
    text-align: left;
    font-size: 1.35rem;
}
.section-title-left::after {
    left: 0;
    transform: none;
    width: 40px;
}

/* Applicant Login - compact, simple, professional */
.applicant-login-card {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.applicant-login-card .form-label-sm {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.applicant-login-card .form-control-sm {
    font-size: 0.875rem;
}
.applicant-login-card .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.applicant-login-card .btn-primary {
    background: #2563eb;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}
.applicant-login-card .btn-primary:hover {
    background: #1d4ed8;
}

/* Form */
.card-header.bg-primary { color: #fff !important; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Photo upload area */
.border-dashed { border-style: dashed !important; }

/* Tables */
.table-danger { background: #fff5f5; }

/* Contact Us - background image */
.contact-section {
    position: relative;
    background: url('../assets/img/building.jpg') center center no-repeat;
    background-size: cover;
}
.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 64, 175, 0.75);
}
.contact-section .container {
    z-index: 1;
}
.contact-card {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
}

/* Footer */
footer { margin-top: 3rem; }

/* Map custom markers (override Leaflet default) */
.leaflet-marker-icon.custom-marker,
.leaflet-marker-icon.custom-marker-icon,
.leaflet-marker-icon.runner-marker-icon {
    background: none !important;
    border: none !important;
}
.leaflet-marker-icon.custom-marker img {
    display: none !important;
}
.leaflet-marker-icon.runner-marker-icon {
    transform-origin: center center;
}
.runner-marker-icon .runner-inner {
    transform-origin: center center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .countdown-item { min-width: 70px; padding: 0.75rem 1rem; }
    .countdown-item span { font-size: 1.5rem; }
    .navbar-logo { height: 32px; }
}
