/* ================================================
   Bharat Railway Corporation Services Solutions Ltd
   Main Stylesheet - indiaprojectservices.com
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2440;
    --primary-light: #2a5a8c;
    --secondary: #e67e22;
    --secondary-dark: #cf6d17;
    --accent: #27ae60;
    --accent-dark: #1e8449;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-grey: #ecf0f1;
    --white: #ffffff;
    --border: #dee2e6;
    --gov-saffron: #f39c12;
    --gov-green: #27ae60;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
}

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

.top-bar i {
    margin-right: 5px;
    color: var(--secondary);
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.1rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.navbar-brand .brand-icon {
    background: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.navbar-brand .brand-text {
    line-height: 1.2;
}

.navbar-brand .brand-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 20px 15px !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 260px;
    border-top: 3px solid var(--secondary);
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--secondary);
    padding-left: 25px;
}

.dropdown-item i {
    margin-right: 8px;
    color: var(--secondary);
    width: 16px;
}

/* ---------- Hero / Page Banner ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,128C672,107,768,117,864,149.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-hero h1 {
    color: var(--white);
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb {
    position: relative;
    z-index: 1;
    background: none;
    padding: 0;
    margin-bottom: 0;
}

.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb-item.active {
    color: var(--secondary);
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Home Hero Slider ---------- */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    height: 50vh;
    min-height: 50vh;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
    min-height: 50vh;
}

.hero-slide-item {
    height: 50vh;
    min-height: 50vh;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    display: flex;
    align-items: center;
    padding: 25px 0;
}

.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 42, 0.90) 0%, rgba(26, 58, 92, 0.82) 55%, rgba(15, 34, 54, 0.88) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(230, 126, 34, 0.2);
    border: 1px solid rgba(230, 126, 34, 0.5);
    color: #f39c12;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.hero-slide-item h1 {
    color: var(--white);
    font-weight: 700;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-slide-item h1 span {
    color: var(--secondary);
}

.hero-slide-item p.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 620px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Right Card */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 22px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Custom Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0.85;
    transition: all 0.3s ease;
    z-index: 5;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

#heroCarousel .carousel-indicators {
    bottom: 18px;
    margin-bottom: 0;
    z-index: 5;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 5px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators .active {
    width: 48px;
    background-color: var(--secondary);
}

.home-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.home-hero h1 {
    color: var(--white);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.home-hero h1 span {
    color: var(--secondary);
}

.home-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.home-hero .btn-primary-custom {
    background: var(--secondary);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.home-hero .btn-primary-custom:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
}

.home-hero .btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.home-hero .btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ---------- Section Styles ---------- */
.section {
    padding: 80px 0;
}

.section-grey {
    background: var(--bg-light);
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary);
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

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

.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 700px;
}

.section-title.text-center p {
    margin: 0 auto;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-card h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---------- Info Card ---------- */
.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: auto%;
    border-left: 4px solid var(--secondary);
}

.info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.info-card h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* ---------- Project Card ---------- */
.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.project-card .card-body {
    padding: 25px;
}

.project-card .card-title {
    font-weight: 600;
    color: var(--primary);
}

.project-card .badge-status {
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Content Images */
.content-img-box {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    background: #fff;
}

.content-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-img-box:hover img {
    transform: scale(1.02);
}

.content-img-box .caption {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    font-style: italic;
    margin-bottom: 0;
}

/* ---------- Stats Section ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    color: var(--secondary);
}

.stat-item .stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* ---------- Team Card ---------- */
.team-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-card .team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

.team-card h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-card .designation {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ---------- Content Section ---------- */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.content-section h3 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h4 {
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

.content-section p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section ul li {
    padding: 5px 0;
    color: var(--text-dark);
    position: relative;
}

.content-section ul.custom-list {
    list-style: none;
    padding-left: 0;
}

.content-section ul.custom-list li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.content-section ul.custom-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.75rem;
    top: 12px;
}

/* ---------- Tables ---------- */
.table-styled {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    background: var(--white);
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.table-styled thead th {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}

.table-styled tbody td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-top: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-bottom: none;
    vertical-align: middle;
    color: var(--text-dark);
}

.table-styled tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-styled tbody tr:hover {
    background: rgba(230, 126, 34, 0.06);
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 10;
}

.sidebar .sidebar-menu {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar .sidebar-menu .menu-title {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
}

.sidebar .sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.sidebar .sidebar-menu a:last-child {
    border-bottom: none;
}

.sidebar .sidebar-menu a:hover,
.sidebar .sidebar-menu a.active {
    background: var(--bg-light);
    color: var(--secondary);
    padding-left: 25px;
}

.sidebar .sidebar-menu a i {
    margin-right: 8px;
    color: var(--secondary);
    width: 16px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer .footer-links li {
    list-style: none;
    padding: 6px 0;
}

.footer .footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer .footer-links li a i {
    color: var(--secondary);
    font-size: 0.7rem;
}

.footer .contact-info li {
    list-style: none;
    padding: 8px 0;
    display: flex;
    gap: 12px;
}

.footer .contact-info li i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--secondary);
}

/* ---------- Contact Form ---------- */
.contact-form .form-control {
    border: 2px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.15);
}

.contact-form .btn-submit {
    background: var(--secondary);
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
}

/* ---------- Buttons ---------- */
.btn-custom {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: none;
    padding: 8px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-custom {
    background: var(--secondary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--white) !important;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
    color: var(--white) !important;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--white) !important;
    display: inline-block;
    transition: all 0.3s ease;
    background: transparent;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary) !important;
}

/* Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-shadow: none;
}

.badge-operational {
    background: #27ae60 !important;
    color: #fff !important;
}

.badge-ongoing {
    background: var(--secondary) !important;
    color: #fff !important;
}

.badge-approved {
    background: #8e44ad !important;
    color: #fff !important;
}

.badge-dpr {
    background: #2980b9 !important;
    color: #fff !important;
}

.badge-proposed {
    background: #7f8c8d !important;
    color: #fff !important;
}

/* ---------- Career Section ---------- */
.career-highlights .highlight-box {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary);
    height: 100%;
}

.career-highlights .highlight-box i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.career-highlights .highlight-box h5 {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Accordion ---------- */
.accordion-custom .accordion-button {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    box-shadow: none;
    border: 1px solid var(--border);
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--white);
}

.accordion-custom .accordion-button:focus {
    box-shadow: none;
}

.accordion-custom .accordion-body {
    border: 1px solid var(--border);
    border-top: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
}

.back-to-top:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .sidebar {
        position: static !important;
        margin-top: 30px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .home-hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-slider-section,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item,
    .hero-slide-item {
        height: auto;
        min-height: 50vh;
    }

    .hero-slide-item {
        padding: 55px 0 50px;
    }

    .hero-slide-item h1 {
        font-size: 2.1rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        display: none;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 50px 0;
    }

    .home-hero h1 {
        font-size: 1.8rem;
    }

    .hero-slider-section,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item,
    .hero-slide-item {
        height: auto;
        min-height: 50vh;
    }

    .hero-slide-item {
        padding: 45px 0 40px;
    }

    .hero-slide-item h1 {
        font-size: 1.7rem;
    }

    .hero-slide-item p.hero-desc {
        font-size: 0.95rem;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    .top-bar .text-end {
        display: none;
    }
}

/* ---------- Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Loader ---------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.page-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sidebar and widget compatibility for corporate railway theme */
.gov-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.gov-sidebar .sidebar-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gov-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.gov-sidebar-list a:hover,
.gov-sidebar-list a.active {
    background: var(--bg-light);
    color: var(--secondary);
    padding-left: 25px;
}

.gov-sidebar-list a i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.gov-notice-box {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gov-notice-box h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.gov-notice-box p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.btn-gov-primary {
    background: var(--secondary);
    color: var(--white) !important;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gov-primary:hover {
    background: var(--secondary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-gov-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gov-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}