/* =============================================================================
   GLOBAL NAVIGATION COMPONENT (navbar.css)
   Contains: Topbar, Navbar, Mega Menu, Search Overlay, Language Toggle
   ============================================================================= */

:root {
    --primary-red: #e41f26;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.05);
}

/* =========================
   GLOBAL RESET & BASE
   ========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: clip;
}

/* --- TOP BAR --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 40px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

.topbar a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.topbar a:hover {
    color: var(--white);
    opacity: 1;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-contact-item a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- SIMPLE LANGUAGE DROPDOWN --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0 0;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 10px, 0);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 10002;
    will-change: transform, opacity;
}

.lang-list.show {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    z-index: 10002;
}

.lang-list li {
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.lang-list li:hover {
    background: #f5f5f5;
    color: var(--primary-red);
}

/* Active language indicator (Phase 8) - subtle, matches the existing
   hover treatment's color language rather than introducing a new visual
   pattern. A small leading dot keeps it readable without adding weight. */
.lang-list li.active-lang {
    color: var(--primary-red);
    font-weight: 600;
    position: relative;
}

.lang-list li.active-lang::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-red);
    margin-right: 8px;
    vertical-align: middle;
}

[dir="rtl"] .lang-list li.active-lang::before {
    margin-right: 0;
    margin-left: 8px;
}

/* RTL Mode Support */
body.rtl-mode {
    direction: rtl;
    text-align: right;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 80px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    isolation: auto;
}

/* Frosted glass effect via pseudo-element so backdrop-filter
   does NOT create a containing block for fixed children */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    margin-top: -10px;
    margin-bottom: -10px;
    position: relative;
    z-index: 1005;
}

/* --- NAVIGATION --- */
.menu {
    display: flex;
    align-items: center;
    padding: 0 0 0 40px;
}

.nav-item {
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item-header {
    display: flex;
    align-items: center;
    height: 100%;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.nav-link-text {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nav-chevron-trigger {
    display: none !important;
}

.desktop-chevron {
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.6;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), color var(--transition-smooth);
    vertical-align: middle;
    display: inline-block;
}

.nav-item:hover .desktop-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary-red);
}

.lang-btn .fa-chevron-down {
    font-size: 13px;
}

.nav-link-text span {
    position: relative;
    display: inline-block;
    padding: 3px 0;
}

.nav-link-text span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #e41f26;
    opacity: 1 !important;
    border-radius: 2px;
    transition: width 0.25s ease;
}

/* Active page has no underline by default */
.nav-item.active-nav .nav-link-text span::after {
    width: 0;
}

/* Hovering over ANY nav link (active or non-active) expands the red underline */
.nav-item:hover .nav-link-text span::after {
    width: 100% !important;
    display: block !important;
}

/* Ensure Header Icons (e.g. desktop dropdown chevrons) have NO underline on hover or active */
.desktop-chevron,
.desktop-chevron::after,
.nav-link-text i,
.nav-link-text i::after,
.search-trigger i,
.search-trigger i::after,
.lang-btn i,
.lang-btn i::after {
    text-decoration: none !important;
    border-bottom: none !important;
}

.desktop-chevron::after,
.nav-link-text i::after {
    display: none !important;
    content: none !important;
}

.nav-item.active-nav .nav-link-text,
.nav-item.active-nav {
    color: #e41f26 !important;
    font-weight: 700;
}

/* --- MEGA MENU CONTAINER --- */
.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate3d(-50%, 15px, 0);
    width: auto;
    max-width: 95vw;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    border-top: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    z-index: 101;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.mega-menu-wrapper.active {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    pointer-events: auto;
}

.mega-menu-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.mega-content {
    display: none;
    padding: 32px 36px;
    gap: 24px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    width: 1080px;
    max-width: 95vw;
    min-height: 380px;
    box-sizing: border-box;
    animation: contentFadeIn 0.3s ease forwards;
}

.mega-content.active {
    display: flex;
}

#content-about,
#content-services,
#content-events,
#content-insights {
    width: 1080px;
    max-width: 95vw;
    min-height: 380px;
    box-sizing: border-box;
}

#content-about {
    justify-content: center;
    gap: 24px;
}

#content-about .insight-card {
    max-width: 320px;
}

#content-about .insight-card,
#content-insights .insight-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#content-about .insight-card:hover,
#content-insights .insight-card:hover {
    background: #ffffff;
    border-color: var(--border-light, #e2e8f0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: none;
}

#content-about .insight-card:hover h4,
#content-insights .insight-card:hover h4 {
    color: var(--primary-red);
}

#content-about .insight-card img,
#content-insights .insight-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #e2e8f0;
}

#content-about .insight-card h4,
#content-insights .insight-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-dark, #0f172a);
    line-height: 1.3;
    transition: color 0.2s ease;
}

#content-about .insight-card:hover h4,
#content-insights .insight-card:hover h4 {
    color: var(--primary-red, #e41f26);
}

#content-about .insight-card p,
#content-insights .insight-card p {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
    margin: 0;
    flex-grow: 1;
}

#content-services .column.dynamic-links,
#content-events .column.dynamic-links {
    flex: 1 1 0;
    min-width: 0;
}

#content-services .column.highlight,
#content-events .column.highlight {
    flex: 0 0 260px;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.column {
    width: 220px;
    flex-shrink: 0;
}

.column h4 {
    margin-bottom: 15px;
    font-size: 15px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 8px;
    color: var(--text-dark);
}

.column h4 a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition-smooth), padding-left var(--transition-smooth);
}

.column h4 a:hover {
    color: var(--primary-red);
}

.column h4 a i {
    transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.column h4 a:hover i {
    color: var(--primary-red);
}

.column a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin: 10px 0;
    font-size: 13px;
    transition: color 0.2s;
}

.column a:hover {
    color: var(--primary-red);
}

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

.bullet-list li {
    margin: 0;
    padding: 0;
}

.highlight {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    flex-shrink: 0;
}

.highlight-content-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    transition: opacity 0.3s, transform 0.3s;
    will-change: transform, opacity;
}

.highlight img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: cover;
    background: #e5e5e5;
}

.highlight strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.highlight p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.insight-card {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.insight-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #e5e5e5;
}

.insight-card h4 {
    font-size: 16px;
    margin: 0 0 5px;
    color: var(--text-dark);
}

.insight-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.insight-card:hover h4 {
    color: var(--primary-red);
}

.nav-right-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.search-trigger {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    justify-content: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    overflow: hidden;
}

.search-trigger i {
    font-size: 13px;
    flex-shrink: 0;
}

.search-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* Rotating "type-writer" suggestion inside the desktop search bar.
   JS (search-typewriter.js -> SearchTypingManager) isko fill karta hai. */
.search-typed {
    color: var(--text-muted);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.search-caret {
    display: inline-block;
    width: 1px;
    height: 15px;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--text-muted);
    animation: searchCaretBlink 1s steps(1, end) infinite;
}

@keyframes searchCaretBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-caret {
        animation: none;
        opacity: 0;
    }
}

.search-trigger:hover {
    color: var(--primary-red);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* --- BUTTONS --- */
/* Visitor / Partner: desktop navbar se hidden.
   Mobile drawer mein ye .mobile-actions ke through ab bhi dikhte hain. */
.actions {
    display: none;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-dark {
    background: var(--text-dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-red);
}

.btn-light {
    background: #f1f1f1;
    color: #333;
}

.btn-light:hover {
    background: #ddd;
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 30px;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-red);
    transform: rotate(90deg);
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 30px;
    text-align: center;
}

.search-box {
    position: relative;
    margin-bottom: 40px;
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    border-bottom: 3px solid var(--text-dark);
    padding: 15px 65px 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
    transition: 0.3s;
}

.search-box input::placeholder {
    color: #ccc;
}

.search-box input:focus {
    border-bottom-color: var(--primary-red);
}

/* Search overlay input: red focus ring (outline + outline-offset) hataya gaya.
   Focus indicator ab neeche wali red border-bottom hai, jo pehle se mojood thi
   aur keyboard users ke liye kaafi visible hai. */
.search-box input:focus,
.search-box input:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.search-icon-inner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-dark);
}

.search-suggestions {
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.search-overlay.active .search-suggestions {
    opacity: 1;
    transform: translateY(0);
}

.search-suggestions h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 20px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.suggestion-tags span {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}

.suggestion-tags span:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

/* Clear Button in Search Input */
.search-clear-btn {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    color: var(--primary-red);
    background: rgba(0, 0, 0, 0.05);
}

/* =============================================================================
   LIVE SEARCH RESULTS CONTAINER & CARDS
   ============================================================================= */
.search-results-mount {
    text-align: left;
    max-height: 58vh;
    overflow-y: auto;
    padding: 10px 4px 20px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.search-results-mount::-webkit-scrollbar {
    width: 6px;
}
.search-results-mount::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.search-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.search-results-group {
    margin-bottom: 24px;
}

.search-group-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-red, #dc2626);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-group-title i {
    font-size: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #fff5f5;
    border-color: #fecaca;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}

.search-result-item .sri-thumb {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.search-result-item .sri-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--primary-red, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.search-result-item .sri-body {
    flex: 1;
    min-width: 0;
}

.search-result-item .sri-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item:hover .sri-title,
.search-result-item.selected .sri-title {
    color: var(--primary-red, #dc2626);
}

.search-result-item mark {
    background: #fef08a;
    color: #854d0e;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 800;
}

.search-result-item .sri-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.search-result-item .sri-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e2e8f0;
    color: #334155;
}

.search-result-item .sri-badge--event {
    background: #fee2e2;
    color: #991b1b;
}

.search-result-item .sri-badge--article {
    background: #dbeafe;
    color: #1e40af;
}

.search-result-item .sri-badge--media {
    background: #fef3c7;
    color: #92400e;
}

.search-result-item .sri-badge--video {
    background: #f3e8ff;
    color: #6b21a8;
}

.search-result-item .sri-badge--service {
    background: #dcfce7;
    color: #166534;
}

.search-result-item .sri-arrow {
    font-size: 14px;
    color: #94a3b8;
    margin-left: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.search-result-item:hover .sri-arrow,
.search-result-item.selected .sri-arrow {
    color: var(--primary-red, #dc2626);
    transform: translateX(4px);
}

/* Empty Search State */
.search-no-results {
    text-align: center;
    padding: 36px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 10px 0;
}

.search-no-results i {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.search-no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.search-no-results p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* Mobile Header Right Icons */
.mobile-header-right {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-search-trigger {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-dark, #0f172a);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-search-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-red, #dc2626);
}

/* --- MOBILE-ONLY ELEMENTS: hidden by default on desktop --- */
.nav-toggle,
.mobile-actions,
.mobile-submenu,
.mobile-mega-panel,
.mobile-menu-subheader {
    display: none;
}

/* KEYBOARD ACCESSIBILITY: Visible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
}

/* =============================================================================
   RESPONSIVE  single consolidated breakpoint set
   (The original code had this same @media(max-width:1024px) block duplicated
   twice with slightly different, conflicting values  e.g. .topbar-left had
   overflow:hidden in one copy and overflow:visible in the other, which broke
   the text-ellipsis truncation. Merged into one clean block below.)
   ============================================================================= */

/* =============================================================================
   DESKTOP NAVBAR RESPONSIVE STYLING (min-width: 1136px)
   ============================================================================= 
   Ensures logo, menu items, search trigger, and action buttons fit gracefully
   without breaking, wrapping, or overflowing on all desktop viewports (1136px+).
   Mobile navbar activates at <=1135px.
   ============================================================================= */
@media screen and (min-width: 1136px) {

    .topbar {
        padding: 0 30px;
    }

    .navbar {
        padding: 0 30px;
    }

    .menu {
        padding-left: 20px;
    }

    .nav-item {
        padding: 0 10px;
        font-size: 13.5px;
    }

    .nav-right-icons {
        gap: 15px;
    }

    .search-trigger {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        padding: 6px 12px;
    }

    .actions {
        gap: 8px;
    }

    .actions .btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .mega-content,
    #content-about,
    #content-services,
    #content-events,
    #content-insights {
        width: 1080px;
        max-width: 95vw;
        gap: 20px;
        padding: 28px 32px;
        min-height: 360px;
    }

    .column {
        width: 170px;
    }

    .highlight {
        width: 220px;
    }
}

/* Extra breathing room on wide desktop displays (>= 1500px) */
@media screen and (min-width: 1500px) {

    .topbar {
        padding: 0 50px;
    }

    .navbar {
        padding: 0 50px;
    }

    .menu {
        padding-left: 30px;
    }

    .nav-item {
        padding: 0 14px;
        font-size: 14px;
    }

    .nav-right-icons {
        gap: 20px;
    }

    .search-trigger {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

@media screen and (max-width: 1135.98px) {

    .topbar {
        padding: 0 16px;
        height: 38px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
        overflow: hidden;
    }

    .topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 11.5px;
        white-space: nowrap;
        flex-shrink: 1;
    }

    .topbar-right {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        width: auto;
        flex-shrink: 0;
    }

    .topbar-right a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--white);
        opacity: 0.9;
        transition: opacity 0.2s ease;
    }

    .topbar-right a:hover {
        opacity: 1;
    }

    .topbar-right .lang-btn {
        display: none !important;
    }

    .nav-item.dropdown {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nav-chevron-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 18px;
        margin-left: auto;
        font-size: 14px;
        cursor: pointer;
        color: inherit;
        transition: transform 0.25s ease, color 0.2s ease;
    }

    .nav-chevron-trigger:hover {
        color: var(--primary-red);
    }

    .navbar {
        padding: 0 15px;
        height: 70px;
        width: 100%;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 2500;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1001;
    }

    .logo-img {
        height: 80px;
        width: auto;
        display: block;
        margin: 0;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
        transition: transform 0.3s ease;
    }

    /* MOBILE ICON CIRCLES
       Hamburger aur search dono ko ek hi shakl di gayi hai: transparent
       circle with a 0.5px hairline grey outline, deliberately lighter than
       the icon itself so the ring reads as a subtle container rather than
       competing with the glyph. */
    .nav-toggle,
    .search-trigger {
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0.5px solid rgb(179 179 179);
        border-radius: 50%;
        background: none;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .nav-toggle {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        z-index: 2501;
        font-size: 18px;
        cursor: pointer;
        color: var(--text-dark);
    }

    .search-trigger {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        font-size: 18px;
        z-index: 2501;
        color: var(--text-dark);
        /* desktop-only field styling yahan reset — mobile par sirf icon rehta hai */
        min-width: 0;
    }

    /* Base .search-trigger:hover mobile par grey pill wapas le aata tha;
       circle ko transparent rakhne ke liye yahan neutralise kiya gaya.
       Ring apne hairline grey par hi rehta hai, sirf icon red hota hai. */
    .nav-toggle:hover,
    .nav-toggle:active,
    .search-trigger:hover,
    .search-trigger:active {
        background: none;
        border-color: rgb(179 179 179);
        color: var(--primary-red);
    }

    .search-text {
        display: none;
    }

    .actions {
        display: none !important;
    }

    .mega-menu-wrapper {
        display: none !important;
    }

    .menu {
        position: fixed;
        top: 70px;
        /* fallback  JS overrides with navbar.getBoundingClientRect().bottom */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px 20px;
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 2000;
        border-top: 1px solid var(--border-light);
        overflow-y: auto;
        align-items: flex-start;
        transform: translateX(-100%);
        transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
        will-change: transform, opacity;
        backface-visibility: hidden;
    }

    .menu.mobile-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }



    /* AWS-style utility row: language selector (left) + Socials + Contact us (right) */
    .mobile-menu-subheader {
        display: flex !important;
        width: 100%;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border-light);
        overflow: hidden;
        /* Prevent overflow vertical cropping */
        flex-shrink: 0;
        /* Extremely important: stops flex layout of .menu from squishing it */
    }

    .mobile-subheader-scroll-wrapper {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        overflow-x: auto;
        /* Handle horizontal scrolling here */
        white-space: nowrap;
        padding: 4px 0 16px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-subheader-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }


    .mobile-lang-btn {
        display: flex;
        align-items: center;
        gap: 7px;
        background: none;
        border: none;
        padding: 0;
        font-family: inherit;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text-dark);
        cursor: pointer;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .mobile-lang-btn i.fa-globe {
        font-size: 13px;
        opacity: 0.8;
    }

    .mobile-lang-btn i.fa-chevron-down {
        font-size: 10px;
        opacity: 0.55;
    }

    .mobile-subheader-socials {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .mobile-subheader-socials a {
        color: var(--text-muted);
        font-size: 14.5px;
        text-decoration: none;
        transition: color 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
    }

    .mobile-subheader-socials a:hover {
        color: var(--primary-red);
    }

    .mobile-subheader-links {
        display: none !important;
    }

    .contact-item {
        display: none !important;
    }

    .nav-item {
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        transition: background 0.3s;
        letter-spacing: 0.1px;
    }

    .desktop-chevron {
        display: none !important;
    }

    .nav-item-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
        border-bottom: 1px solid var(--border-light) !important;
        position: relative;
        background: transparent !important;
    }

    .nav-link-text {
        display: flex !important;
        align-items: center !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        padding: 14px 0 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        white-space: nowrap !important;
    }

    .nav-item:not(.dropdown) .nav-link-text {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .nav-link-text span {
        font-size: 15px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }

    .nav-chevron-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        padding: 14px 4px 14px 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        color: #777 !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    .nav-chevron-trigger:focus,
    .nav-chevron-trigger:active,
    .nav-chevron-trigger:hover {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        color: var(--primary-red) !important;
    }

    .nav-chevron-trigger i {
        font-size: 13px !important;
        transition: transform 0.25s ease;
    }

    .nav-chevron-trigger:hover {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        color: var(--primary-red) !important;
    }

    .nav-chevron-trigger i {
        font-size: 13px !important;
        transition: transform 0.25s ease;
    }

    /* Remove the hover underline effect from spans on mobile */
    .nav-item span::after {
        display: none !important;
    }

    /* Keep the active nav color highlight but remove underline */
    .nav-item.active-nav {
        color: var(--primary-red);
    }

    .nav-item.active-nav span {
        color: var(--primary-red);
    }

    .nav-item.dropdown span i.fa-chevron-down::before {
        content: "\f054";
        /* FontAwesome chevron-right icon */
    }

    .nav-item.dropdown span i {
        transition: transform 0.3s;
    }

    .nav-item.dropdown.mobile-open span i {
        transform: rotate(90deg);
        /* Rotates right chevron to point downwards when active */
        color: var(--primary-red);
    }

    .nav-item.mobile-open {
        background: rgba(228, 31, 38, 0.02);
    }

    .mobile-submenu {
        display: none;
        list-style: none;
        padding: 5px 0 10px 20px;
        margin: 0;
        width: 100%;
        background: transparent;
    }

    .mobile-open .mobile-submenu {
        display: block !important;
        animation: slideInLeft 0.3s ease;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-submenu li a {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 400;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        transition: 0.2s;
    }

    .mobile-submenu li a:hover {
        color: var(--primary-red);
    }

    .mobile-submenu li:last-child a {
        border-bottom: none;
    }

    .mobile-actions {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
        width: 100%;
        align-items: center;
    }

    .mobile-actions .btn {
        width: 78% !important;
        max-width: 100%;
    }

    .search-container {
        padding: 0 20px;
    }

    .search-box input {
        font-size: 24px;
        padding: 12px 45px 12px 0;
    }

    /* =========================================================
       MOBILE FULL-CANVAS MEGA MENU
       Slides in on top of .menu (same top offset, header untouched)
       when a dropdown item (Services / Events / Insights) is tapped.
       ========================================================= */
    .mobile-mega-panel {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        /* fallback  JS overrides with navbar.getBoundingClientRect().bottom */
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        /* fallback */
        height: calc(100dvh - 70px);
        /* Modern mobile viewport height */
        width: 100%;
        background: var(--white);
        z-index: 2000;
        transform: translate3d(100%, 0, 0);
        transition: transform var(--transition-smooth);
        will-change: transform;
        backface-visibility: hidden;
        overflow: hidden;
    }

    .mobile-mega-panel.open {
        transform: translate3d(0, 0, 0);
    }

    .mmp-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
    }

    .mmp-back {
        background: none;
        border: none;
        font-size: 18px;
        /* Slightly larger back arrow to match hamburger size */
        color: var(--text-dark);
        cursor: pointer;
        width: auto;
        height: auto;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: color 0.2s;
    }

    .mmp-back:active {
        color: var(--primary-red);
    }

    .mmp-title {
        font-size: 17px;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0;
    }

    .mmp-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 20px 40px;
    }

    @keyframes mmpSlideInRight {
        from {
            opacity: 0.4;
            transform: translate3d(50px, 0, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes mmpSlideInLeft {
        from {
            opacity: 0.4;
            transform: translate3d(-50px, 0, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    .mmp-slide-in-right {
        animation: mmpSlideInRight 0.28s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        will-change: transform, opacity;
    }

    .mmp-slide-in-left {
        animation: mmpSlideInLeft 0.28s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        will-change: transform, opacity;
    }

    .mmp-section+.mmp-section {
        margin-top: 22px;
    }

    .mmp-section-title {
        font-size: 12.5px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        font-weight: 700;
        margin: 0 0 6px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f5f5f5;
    }

    .mmp-section-title-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        color: var(--text-dark);
        padding: 12px 14px;
        background: #f0f2f5;
        border-left: 4px solid var(--primary-red);
        border-radius: 8px;
        margin-bottom: 10px;
        transition: all 0.2s ease;
    }

    .mmp-section-title-link:hover,
    .mmp-section-title-link:active {
        background: rgba(228, 31, 38, 0.08);
        color: var(--primary-red);
    }

    .mmp-parent-arrow {
        font-size: 12px;
        color: var(--primary-red);
        transition: color 0.2s ease;
    }

    .mmp-section-title-link:hover .mmp-parent-arrow {
        color: var(--primary-red);
    }

    .mmp-sublinks-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-left: 6px;
        margin-bottom: 18px;
    }

    .mmp-item.mmp-subitem {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-decoration: none;
        padding: 10px 14px;
        background: #fafafa;
        border: 1px solid rgba(0, 0, 0, 0.04);
        border-radius: 8px;
        margin-bottom: 0;
        transition: all 0.2s ease;
    }

    .mmp-item.mmp-subitem:hover,
    .mmp-item.mmp-subitem:active {
        background: #ffffff;
        border-color: var(--primary-red);
        box-shadow: 0 4px 12px rgba(228, 31, 38, 0.08);
    }

    .mmp-subitem-arrow {
        font-size: 11px;
        color: #999;
        transition: color 0.2s;
    }

    .mmp-item.mmp-subitem:hover .mmp-subitem-arrow {
        color: var(--primary-red);
    }

    .mmp-item.mmp-card-item {
        display: flex;
        gap: 14px;
        align-items: center;
        text-decoration: none;
        padding: 12px 14px;
        background: #ffffff;
        border-radius: 12px;
        margin-bottom: 12px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        transition: all 0.2s ease;
    }

    .mmp-item.mmp-card-item:hover,
    .mmp-item.mmp-card-item:active {
        border-color: var(--primary-red);
        box-shadow: 0 6px 16px rgba(228, 31, 38, 0.1);
        transform: translateY(-2px);
    }

    .mmp-thumb-icon {
        width: 28px;
        height: 28px;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 10px;
        flex-shrink: 0;
        vertical-align: middle;
    }

    .mmp-level3-desc {
        font-size: 12px;
        color: var(--text-muted);
        margin: 4px 0 12px 0;
        padding: 0 4px;
        line-height: 1.4;
    }

    .mmp-item {
        display: flex;
        gap: 14px;
        align-items: center;
        text-decoration: none;
        padding: 12px 14px;
        background: #f7f7f7;
        border-radius: 12px;
        margin-bottom: 10px;
        border: 1px solid rgba(0, 0, 0, 0.03);
        transition: background 0.2s, transform 0.2s;
    }

    .mmp-item:last-child {
        margin-bottom: 0;
    }

    .mmp-item:active {
        background: #f0f0f0;
        transform: scale(0.98);
    }

    .mmp-item img {
        width: 54px;
        height: 54px;
        object-fit: cover;
        border-radius: 10px;
        flex-shrink: 0;
        background: #f2f2f2;
    }

    .mmp-item-text {
        flex: 1;
        min-width: 0;
    }

    .mmp-item-title {
        font-size: 13.5px;
        font-weight: 500;
        color: var(--text-dark);
        margin: 0 0 4px;
    }

    .mmp-item-desc {
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
    }

    .mmp-highlight {
        margin-top: 18px;
        border-radius: 14px;
        overflow: hidden;
        background: #f9f9f9;
        border: 1px solid var(--border-light);
    }

    .mmp-highlight img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

    .mmp-highlight-body {
        padding: 14px 16px;
    }

    .mmp-highlight-body strong {
        display: block;
        font-size: 13.5px;
        font-weight: 500;
        margin-bottom: 6px;
        color: var(--text-dark);
    }

    .mmp-highlight-body p {
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
    }
}

/* SMALL TABLET / LARGE PHONE */
@media screen and (max-width: 600px) {
    .topbar {
        padding: 0 10px;
    }

    .topbar-left {
        font-size: 11px;
        gap: 8px;
    }

    .topbar-right .lang-btn {
        display: none !important;
    }

    .topbar-right {
        gap: 8px;
    }

    .topbar-right a {
        display: inline-flex !important;
        font-size: 12px;
    }

    .search-box input {
        font-size: 19px;
    }

    .search-close {
        top: 20px;
        right: 20px;
        font-size: 24px;
        width: 42px;
        height: 42px;
    }

    .suggestion-tags span {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* SMALL PHONE */
@media screen and (max-width: 360px) {
    .topbar {
        padding: 0 10px;
    }

    .logo-img {
        height: 80px;
    }

    .nav-toggle,
    .search-trigger {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.social-icons-slider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* VERTICAL SCROLL TICKER FOR TOPBAR CONTACT BELOW 480PX */
@media screen and (max-width: 480px) {
    .topbar-left {
        position: relative;
        height: 24px;
        overflow: hidden;
        display: block !important;
        min-width: 145px;
    }

    .topbar-contact-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
        pointer-events: none;
    }

    .topbar-contact-item.topbar-active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .topbar-contact-item.topbar-exit-up {
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
    }

    /* VERTICAL SCROLL TICKER FOR SOCIAL ICONS (3 ICONS PER BATCH) BELOW 400PX */
    .social-icons-slider {
        position: relative;
        height: 24px;
        overflow: hidden;
        display: block !important;
        min-width: 65px;
    }

    .social-group {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        opacity: 0;
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
        pointer-events: none;
    }

    .social-group.social-group-active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .social-group.social-group-exit-up {
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
    }

    .social-group a {
        display: inline-flex !important;
        font-size: 12px;
        color: var(--white);
    }
}