/* ==========================================================================
   NCRTC MAIN CORPORATE WEBSITE STYLES
   Adhering to NCRTC Brand Guidelines (Speed, Modern Infrastructure, Trust)
   ========================================================================== */

/* ==========================================================================
   DROPDOWN NAVIGATION (Desktop)
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .nav-item i.fa-chevron-down {
    font-size: 0.72rem;
    margin-left: 4px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.7;
}

.nav-dropdown:hover .nav-item i.fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--secondary-orange);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #FFFFFF;
    min-width: 270px;
    box-shadow: 0 16px 36px rgba(6, 29, 58, 0.12);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    transform: rotate(45deg);
    border-top: 1px solid var(--border-subtle);
    border-left: 1px solid var(--border-subtle);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 0.65rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
}

.dropdown-content a:hover {
    background-color: var(--bg-blue-tint);
    color: var(--primary-blue);
    padding-left: 1.25rem;
    font-weight: 600;
}

/* ==========================================================================
   HERO SECTION (High Speed, Clean Mobility, Authority)
   ========================================================================== */
.hero-main {
    position: relative;
    height: 78vh;
    min-height: 520px;
    max-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 29, 58, 0.94) 0%, rgba(10, 49, 97, 0.88) 50%, rgba(16, 76, 145, 0.85) 100%),
                url('assets/real_train_highres.jpg') center/cover no-repeat;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.15;
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 29, 58, 0.75) 0%, rgba(10, 49, 97, 0.6) 60%, rgba(6, 29, 58, 0.9) 100%);
    z-index: 1;
}

.hero-dot-motif {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 0 2rem;
    animation: heroFadeUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-transform: uppercase;
}

.hero-badge i {
    color: var(--secondary-orange);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-tagline-hindi {
    display: block;
    font-size: 0.65em;
    font-weight: 700;
    color: var(--secondary-orange);
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 2.25rem;
    line-height: 1.6;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-pill);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   STATS RIBBON (Key Metrics Grid)
   ========================================================================== */
.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    background: #FFFFFF;
    padding: 1.75rem 2rem;
    margin: -45px auto 1.5rem auto;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(6, 29, 58, 0.08);
    max-width: 1200px;
    border: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SECTION STRUCTURE & HEADERS
   ========================================================================== */
.section-padding {
    padding: 2.75rem 2rem;
}

.section-padding-sm {
    padding: 3.5rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.25rem;
}

.section-title.text-left {
    text-align: left;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-title.text-left p {
    margin: 0;
}

/* ==========================================================================
   "WHO WE ARE" CARDS GRID
   ========================================================================== */
.who-we-are-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

.identity-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.identity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 49, 97, 0.15);
}

.identity-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.identity-card-accent.blue { background: var(--primary-blue-gradient); }
.identity-card-accent.orange { background: var(--secondary-orange-gradient); }
.identity-card-accent.navy { background: var(--primary-dark); }

.identity-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-blue-tint);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.identity-card-icon.orange-bg {
    background: var(--secondary-orange-light);
    color: var(--secondary-orange);
}

.identity-card h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.identity-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   NAMO BHARAT ROUTE & CORRIDOR PREVIEW COMPONENT
   (Replaces broken nested iframe on homepage)
   ========================================================================== */
.corridor-preview-section {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.corridor-preview-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}

.corridor-details h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.corridor-details .lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
}

.corridor-details p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.corridor-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.corridor-feat-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.corridor-feat-item i {
    color: var(--secondary-orange);
    font-size: 1.1rem;
}

/* Corridor Visualizer Card */
.corridor-visualizer-card {
    background: var(--primary-dark-gradient);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    color: white;
    box-shadow: 0 16px 40px rgba(6, 29, 58, 0.2);
    position: relative;
    overflow: hidden;
}

.corridor-visualizer-card .visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.25rem;
}

.corridor-visualizer-card .visualizer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.corridor-visualizer-card .visualizer-header i {
    color: var(--secondary-orange);
}

/* Station Route Line in Visualizer (Perfect line and dot alignment) */
.visualizer-route-track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 36px;
    margin-bottom: 2rem;
}

.visualizer-route-track::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: linear-gradient(180deg, #64748B 0%, #10B981 35%, #10B981 75%, #64748B 100%);
    border-radius: 2px;
    z-index: 1;
}

.vis-station-node {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
}

.vis-station-node::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #061D3A;
    border: 3px solid #94A3B8;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: all 0.25s ease;
}

.vis-station-node.active::before {
    border-color: #FFFFFF;
    background: var(--secondary-orange);
    box-shadow: 0 0 0 4px rgba(243, 108, 33, 0.35), 0 0 12px var(--secondary-orange);
}

.vis-station-node.operational::before {
    border-color: #FFFFFF;
    background: var(--status-operational);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.vis-station-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.vis-station-status {
    font-size: 0.76rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.vis-station-status.op {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.vis-station-status.up {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   EVENTS, NOTICES & NEWS HUBS
   ========================================================================== */
.news-hub-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 3rem;
}

.events-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.event-card-img-wrapper {
    height: 150px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.event-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-img-wrapper img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.event-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
}

/* Notices List */
.notices-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.notice-entry-card {
    background: #FFFFFF;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid var(--primary-blue);
}

.notice-entry-card.highlight {
    border-left-color: var(--secondary-orange);
}

.notice-entry-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(10, 49, 97, 0.2);
}

.notice-entry-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.notice-entry-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* News Articles Grid */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.news-card-item {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(10, 49, 97, 0.2);
}

.news-source-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.news-card-item h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   PASSENGER CTA BANNER
   ========================================================================== */
.passenger-banner {
    background: var(--primary-dark-gradient);
    border-radius: var(--radius-xl);
    padding: 4rem 3.5rem;
    margin: 3rem auto;
    max-width: 1240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: var(--shadow-glow-blue);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.passenger-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 2px);
    background-size: 24px 24px;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.banner-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.banner-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
}

.banner-action {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* ==========================================================================
   INITIATIVES PARTNER LOGOS
   ========================================================================== */
.initiatives-section {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
}

.initiatives-logo-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
}

.initiative-logo-item {
    height: 52px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.initiative-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.06);
}

/* ==========================================================================
   CORPORATE SUBPAGES (About, Projects, Policies, Tenders, Media)
   ========================================================================== */
.subpage-header {
    background: var(--primary-dark-gradient);
    color: white;
    padding: 3.5rem 2rem 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.subpage-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    pointer-events: none;
}

.subpage-header-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.subpage-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.subpage-breadcrumbs a:hover {
    color: var(--secondary-orange);
}

.subpage-header h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subpage-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 0.5rem;
    max-width: 700px;
}

.subpage-wrapper {
    max-width: 1240px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Subpage Clean Card Container */
.subpage-main-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .corridor-preview-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .news-hub-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    background: #FFFFFF;
    padding: 1.75rem 2rem;
    margin: -45px auto 1.5rem auto;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(6, 29, 58, 0.08);
    max-width: 1200px;
    border: 1px solid var(--border-subtle);
}
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .passenger-banner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .subpage-main-card {
        padding: 2rem 1.5rem;
    }
}


/* ==========================================================================
   NCRTC NEW HOMEPAGE SECTIONS: RIDERSHIP, DISCOVERIES, DPI, COMMERCIAL, CHARTER
   Adhering to NCRTC Design Language System (AGENTS.md)
   ========================================================================== */

/* Ridership Metrics Ribbon */
.ridership-highlight-band {
    background: linear-gradient(135deg, #061D3A 0%, #0A3161 60%, #0F427F 100%);
    color: #FFFFFF;
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ridership-highlight-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(243, 108, 33, 0.12) 1.5px, transparent 1.5px),
                      radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    pointer-events: none;
}

.ridership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.ridership-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.ridership-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(243, 108, 33, 0.4);
}

.ridership-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.ridership-val.orange { color: #F36C21; }
.ridership-val.green { color: #10B981; }

.ridership-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* First Time Discoveries & Innovations Grid */
.discovery-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 30px rgba(6, 29, 58, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.discovery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(6, 29, 58, 0.08);
    border-color: var(--secondary-orange);
}

.badge-world-first {
    background: linear-gradient(135deg, #F36C21 0%, #D85611 100%);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(243, 108, 33, 0.3);
}

.badge-india-first {
    background: linear-gradient(135deg, #0A3161 0%, #061D3A 100%);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(10, 49, 97, 0.25);
}

/* Spaces Available & Commercial Opportunities */
.space-listing-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(6, 29, 58, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.space-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(6, 29, 58, 0.08);
    border-color: var(--primary-blue);
}

.space-header {
    background: var(--bg-main);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space-meta-badge {
    background: rgba(10, 49, 97, 0.08);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.space-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Train Charter Booking Showcase */
.charter-banner {
    background: linear-gradient(135deg, #0A3161 0%, #061D3A 100%);
    border-radius: var(--radius-xl);
    color: #FFFFFF;
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(6, 29, 58, 0.15);
}

.charter-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(243, 108, 33, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.charter-price-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: inline-block;
}

/* Consultancy Card */
.consultancy-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 8px 30px rgba(6, 29, 58, 0.04);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.25s ease;
}

.consultancy-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-blue);
}

/* Achievement Pill Grid */
.achievement-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 6px 20px rgba(6, 29, 58, 0.04);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.25s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-orange);
}

.achievement-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(10, 49, 97, 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.achievement-icon.orange {
    background: rgba(243, 108, 33, 0.1);
    color: var(--secondary-orange);
}

.achievement-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}



/* Responsive behavior for new sections */
@media (max-width: 900px) {
    .dpi-grid-wrap {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    
    .charter-grid-wrap {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .consultancy-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .ridership-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    .charter-banner {
        padding: 2rem 1.5rem !important;
    }
}

/* White Outline Button for Dark Backgrounds */
.btn-outline-white {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: none !important;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}


/* ==========================================================================
   NCRTC STANDARDIZED DESIGN SYSTEM STYLES (Apple / DB / GOV.UK Transit Standard)
   Strictly following AGENTS.md Brand Identity Guidelines
   ========================================================================== */

/* Standard Section Spacing & Hierarchy */
.ncrtc-section {
    padding: 5rem 0;
    position: relative;
}

.ncrtc-section.bg-white {
    background: #FFFFFF;
}

.ncrtc-section.bg-subtle {
    background: #F8FAFC;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
    text-align: left;
    margin-left: 0;
}

.section-header .dot-badge {
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Standardized Card Container */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Polished Standard Card */
.ncrtc-pro-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(6, 29, 58, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ncrtc-pro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10, 49, 97, 0.09);
    border-color: rgba(243, 108, 33, 0.4);
}

.ncrtc-pro-card.dark-theme {
    background: linear-gradient(135deg, #0A3161 0%, #061D3A 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ncrtc-pro-card.dark-theme h3,
.ncrtc-pro-card.dark-theme h4 {
    color: #FFFFFF;
}

.ncrtc-pro-card.dark-theme p {
    color: rgba(255, 255, 255, 0.8);
}

/* Balanced Services 2-Column Split */
.services-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .services-split-grid {
        grid-template-columns: 1fr;
    }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   SHADCN-GRADE RESPONSIVE GRIDS & REFINED CARDS
   Eliminates all orphan layout breaks, inconsistent wrapping, and visual errors
   ========================================================================== */

/* 3-Column Grid: Exact 3 columns on desktop, 2 on tablet, 1 on mobile */
.grid-3-col {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2rem !important;
}

@media (max-width: 1024px) {
    .grid-3-col {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .grid-3-col {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* 4-Column Grid: Exact 4 columns on desktop, 2 on tablet, 1 on mobile */
.grid-4-col {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1100px) {
    .grid-4-col {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 580px) {
    .grid-4-col {
        grid-template-columns: 1fr !important;
    }
}

/* 2-Column Grid */
.grid-2-col {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5rem !important;
    align-items: stretch !important;
}

@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Symmetrical Services 2-Column Grid */
.services-split-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    align-items: stretch !important;
}

@media (max-width: 992px) {
    .services-split-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Corridor Preview Grid */
.corridor-preview-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

@media (max-width: 1024px) {
    .corridor-preview-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* Card Equal Height & Inner Layout */
.ncrtc-pro-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ncrtc-pro-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 30px -4px rgba(10, 49, 97, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04) !important;
    border-color: #CBD5E1 !important;
}

/* Dark Theme Pro Card for Train Charter */
.ncrtc-pro-card.dark-theme {
    background: linear-gradient(135deg, #0A3161 0%, #061D3A 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 32px rgba(6, 29, 58, 0.2) !important;
}

.ncrtc-pro-card.dark-theme h3,
.ncrtc-pro-card.dark-theme h4,
.ncrtc-pro-card.dark-theme h5 {
    color: #FFFFFF !important;
}

.ncrtc-pro-card.dark-theme p {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Stats Ribbon Polish */
.stats-ribbon {
    margin: -50px auto 2.5rem auto !important;
    box-shadow: 0 20px 45px -10px rgba(10, 49, 97, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
}

@media (max-width: 900px) {
    .stats-ribbon {
        grid-template-columns: repeat(2, 1fr) !important;
        margin: -35px 1rem 2rem 1rem !important;
        padding: 1.5rem !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 500px) {
    .stats-ribbon {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   OFFICIAL NCRTC IMPACT HERO BANNER & ROTATING CAROUSEL
   Matches https://ncrtc.in/ Exact Layout, Video Background & Typography
   ========================================================================== */
.hero-main {
    position: relative;
    height: 75vh;
    min-height: 560px;
    max-height: 700px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    overflow: hidden;
    background: #061D3A;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.95 !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 29, 58, 0.88) 0%, rgba(6, 29, 58, 0.68) 45%, rgba(6, 29, 58, 0.22) 100%);
    z-index: 1;
}

.hero-dot-motif {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 780px;
    text-align: left;
    margin: 0;
    padding: 0;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary-orange, #F36C21);
    background: rgba(243, 108, 33, 0.12);
    border: 1px solid rgba(243, 108, 33, 0.35);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.hero-impact-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1.15 !important;
    margin: 0 0 1.25rem 0 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5) !important;
}

.hero-slides-wrapper {
    position: relative;
    min-height: 145px;
    margin-bottom: 1.25rem;
}

.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

.hero-impact-pill {
    background: #005696 !important;
    color: #FFFFFF !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 1rem !important;
    border-radius: 4px !important;
    display: inline-block !important;
    margin-bottom: 0.85rem !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.01em !important;
}

.hero-impact-desc {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem) !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 720px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.hero-cta {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-dots-nav {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.15);
}

.hero-dot.active {
    background: var(--secondary-orange, #F36C21);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(243, 108, 33, 0.65);
}

.hero-corner-tagline {
    position: absolute;
    bottom: 2.25rem;
    right: 2.5rem;
    text-align: right;
    pointer-events: none;
    z-index: 2;
}

.hero-corner-tagline .hindi-tagline {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
    letter-spacing: 0.5px;
}

/* Floating Vertical Social Sidebar */
.hero-social-sidebar {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 5;
}

.hero-social-sidebar a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(6, 29, 58, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-social-sidebar a:hover {
    background: var(--secondary-orange, #F36C21);
    color: #FFFFFF;
    border-color: var(--secondary-orange, #F36C21);
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(243, 108, 33, 0.4);
}

@media (max-width: 900px) {
    .hero-social-sidebar {
        display: none;
    }
    .hero-corner-tagline {
        position: static;
        margin-top: 1.5rem;
        text-align: left;
    }
    .hero-main {
        height: auto;
        padding: 5rem 0 3.5rem 0;
    }
}
