/* ==========================================================================
   SCOPED STYLESHEET - RESEARCH & INNOVATION MODULE (ASP.NET RAZOR)
   CRITICAL CONSTRAINT: NO GLOBAL SELECTORS (*, html, body) USED.
   All styles are strictly scoped under .research-root and component classes.
   ========================================================================== */

/* Scoped Container Root & Variables */
.research-root {
  --res-navy: #012555;
  --res-navy-dark: #011736;
  --res-navy-light: #012555;
  --res-navy-soft: #edf2f9;

  --res-gold: #FA971E;
  --res-gold-hover: #FA971E;
  --res-gold-light: #fff9e6;
  --res-gold-border: #FBAC4B;
  --res-gold-text: #AF6A15;

  --res-text-main: #1e293b;
  --res-text-muted: #475569;
  --res-text-light: #64748b;
  --res-bg-page: #f8fafc;
  --res-bg-surface: #ffffff;
  --res-border: #e2e8f0;
  --res-border-subtle: #f1f5f9;

  --res-success: #10b981;
  --res-success-bg: #ecfdf5;
  --res-success-text: #065f46;
  --res-info: #012555;
  --res-info-bg: #E3E3FB;

  --res-font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --res-font-devanagari: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, sans-serif;

  --res-radius-sm: 4px;
  --res-radius-md: 8px;
  --res-radius-lg: 12px;
  --res-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --res-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --res-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --res-shadow-dropdown: 0 12px 28px -4px rgba(1, 23, 54, 0.18), 0 4px 10px -2px rgba(1, 23, 54, 0.08);

  font-family: var(--res-font-sans);
  color: var(--res-text-main);
  background-color: var(--res-bg-page);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.research-root .font-marathi {
  font-family: var(--res-font-devanagari);
}

.research-root a {
  color: var(--res-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

.research-root a:hover {
  color: var(--res-gold-text);
}

/* ==========================================================================
   TOPBAR UTILITY
   ========================================================================== */
.research-topbar {
  background-color: var(--res-navy);
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
}

.research-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.research-topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.research-topbar-links a {
  color: #cbd5e1;
}

.research-topbar-links a:hover {
  color: var(--res-gold);
}

.research-font-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.research-font-controls button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.2;
}

.research-font-controls button.active,
.research-font-controls button:hover {
  background-color: var(--res-gold);
  color: #fff;
  border-color: var(--res-gold);
  font-weight: 700;
}

/* ==========================================================================
   BRAND ROW
   ========================================================================== */
.research-brand-row {
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid var(--res-border);
}

.research-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.research-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--res-gold);
  background: #ffffff;
  padding: 2px;
  box-shadow: var(--res-shadow-sm);
  flex-shrink: 0;
}

.research-brand-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--res-navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.research-brand-name .marathi-title {
  font-size: 16px;
  font-weight: 700;
  color: #AF6A15;
  margin-left: 6px;
}

.research-brand-tagline {
  font-size: 12px;
  color: var(--res-text-light);
  font-weight: 500;
  margin-top: 2px;
}

.research-accred-badge {
  background: linear-gradient(135deg, #012555 0%, #012555 100%);
  border: 1.5px solid var(--res-gold);
  border-radius: var(--res-radius-sm);
  padding: 4px 10px;
  text-align: center;
  box-shadow: var(--res-shadow-sm);
}

.research-accred-top {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--res-gold);
  letter-spacing: 0.5px;
}

.research-accred-grade {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* ==========================================================================
   NAVIGATION BAR & DROPDOWN (EXACT SCREENSHOT MATCH)
   ========================================================================== */
.research-navbar {
  background-color: var(--res-navy) !important;
  border-bottom: 2px solid var(--res-gold);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(1, 23, 54, 0.15);
}

.research-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.research-nav-item {
  position: relative;
}

.research-nav-link {
  color: #e2e8f0 !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 14px !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.research-nav-link:hover {
  color: var(--res-gold) !important;
}

/* Active navigation item - yellow text and underline */
.research-nav-item.active .research-nav-link,
.research-nav-item.dropdown-active .research-nav-link {
  color: var(--res-gold) !important;
}

.research-nav-item.active .research-nav-link::after,
.research-nav-item.dropdown-active .research-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--res-gold);
  border-radius: 2px 2px 0 0; color: #fff;
}

/* Dropdown Menu - Gold top accent stripe */
.research-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid var(--res-border);
  border-top: 3.5px solid var(--res-gold);
  border-radius: 0 0 var(--res-radius-md) var(--res-radius-md);
  box-shadow: var(--res-shadow-dropdown);
  padding: 8px 0;
  min-width: 260px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1050;
}

.research-nav-item:hover .research-dropdown-menu,
.research-dropdown-menu.show {
  display: block;
}

.research-dropdown-item {
  display: block;
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  transition: all 0.15s ease;
}

.research-dropdown-item:hover {
  background-color: #f8fafc;
  color: var(--res-navy);
  padding-left: 26px;
}

.research-dropdown-item.active {
  color: var(--res-gold-text);
  background-color: var(--res-gold-light);
  border-left: 3px solid var(--res-gold);
  font-weight: 700;
}

/* ==========================================================================
   PAGE HERO SECTION
   ========================================================================== */
.research-hero {
  background: linear-gradient(135deg, #011736 0%, #012555 55%, #012555 100%);
  color: #ffffff;
  padding: 38px 0 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--res-gold);
}

.research-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #ffffff;
}

.research-hero .lead-in {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 720px;
  margin-bottom: 0;
  line-height: 1.55;
}

.research-hero .breadcrumb {
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  list-style: none;
  padding: 0;
  gap: 8px;
}

.research-hero .breadcrumb a {
  color: #94a3b8;
}

.research-hero .breadcrumb a:hover {
  color: var(--res-gold);
}

.research-hero .breadcrumb .active {
  color: var(--res-gold);
  font-weight: 600;
}

.research-hero .breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* Abstract Decorative Rings */
.research-abs-field {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.research-abs-ring {
  position: absolute;
  border: 2px dashed rgba(250,151,30, 0.25);
  border-radius: 50%;
  animation: resSpinSlow 30s linear infinite;
}

.research-abs-dots {
  position: absolute;
  background-image: radial-gradient(rgba(250,151,30, 0.3) 1px, transparent 1px);
  background-size: 12px 12px;
}

@keyframes resSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   STAT CARDS & COMPONENTS
   ========================================================================== */
.research-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.research-stat-card {
  background: #ffffff;
  border: 1px solid var(--res-border);
  border-left: 4px solid var(--res-gold);
  border-radius: var(--res-radius-sm);
  padding: 16px;
  box-shadow: var(--res-shadow-sm);
}

.research-stat-card .val {
  font-size: 24px;
  font-weight: 800;
  color: var(--res-navy);
  line-height: 1.1;
  margin-bottom: 2px;
}

.research-stat-card .lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--res-text-muted);
}

/* Institutional Cards */
.research-card {
  background: #ffffff;
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-md);
  box-shadow: var(--res-shadow-sm);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--res-shadow-md);
  border-color: var(--res-gold);
}

.research-card .card-title {
  color: var(--res-navy);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.research-card .card-desc {
  color: var(--res-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.research-table-wrap {
  background: #ffffff;
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-md);
  overflow-x: auto;
  box-shadow: var(--res-shadow-sm);
  margin-bottom: 24px;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.research-table thead th {
  background-color: #f8fafc;
  color: var(--res-navy);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--res-border);
  white-space: nowrap;
}

.research-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--res-border);
  color: var(--res-text-main);
  vertical-align: middle;
}

.research-table tbody tr:last-child td {
  border-bottom: none;
}

.research-table tbody tr:hover td {
  background-color: #fbfdff;
}

/* Badges */
.res-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.res-badge.ongoing { background-color: #E3E3FB; color: #012555; }
.res-badge.completed { background-color: #dcfce7; color: #15803d; }
.res-badge.sanctioned { background-color: #FEE7C7; color: #AF6A15; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.research-form-card {
  background: #ffffff;
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-md);
  padding: 24px;
  box-shadow: var(--res-shadow-sm);
  margin-bottom: 24px;
}

.research-form-card .form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--res-text-main);
  margin-bottom: 6px;
  display: block;
}

.research-form-card .form-control,
.research-form-card .form-select {
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-sm);
  font-size: 14px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.research-form-card .form-control:focus,
.research-form-card .form-select:focus {
  border-color: var(--res-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(250,151,30, 0.2);
}

.research-btn-primary {
  background-color: var(--res-navy);
  color: var(--res-gold);
  border: 1px solid var(--res-gold);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--res-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.research-btn-primary:hover {
  background-color: var(--res-gold);
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.research-footer {
  background-color: var(--res-navy-dark);
  color: #94a3b8;
  border-top: 3px solid var(--res-gold);
  margin-top: auto;
}

.research-footer-main {
  padding: 48px 0 32px;
}

.research-footer-heading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 6px;
}

.research-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--res-gold); color: #fff;
}

.research-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.research-footer-links a {
  color: #cbd5e1;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.research-footer-links a:hover {
  color: var(--res-gold);
  padding-left: 4px;
}
