        :root {
            --primary-color: #2c3e50;
            --primary-deep: #0B2A4A;
            --primary-soft: #1C3E62;
            --secondary-color: #3498db;
            --accent-color: #1abc9c;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #333;
            padding-top: 65px; /* To account for fixed navbar */
        }
        
        /* Header Styles */
        .navbar-brand {
            font-weight: 700;
            font-size: 1.8rem;
            color: var(--accent-color) !important;
        
          display: flex;
          align-items: center;   /* perfect vertical alignment */
          gap: 10px;             /* spacing between logo & text */
          line-height: 1.5;        /* baseline issues gone */
        }

        .navbar {
            background-color: var(--primary-color) !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .navbar-nav .nav-link {
            font-weight: 500;
            color: white !important;
            margin: 0 3px;
            transition: all 0.3s;
        }
        
        .navbar-nav .nav-link:hover {
            color: var(--accent-color) !important;
        }
        
        .brand-logo{
          height: 34px;          /* 36 thora heavy lag raha; 34 smoother */
          width: auto;           /* logo stretch nahi hogi */
          display: block;        /* inline baseline issue gone */
        }
        
        .brand-text{
          font-family: 'Syne', sans-serif;
          font-weight: 600;
          letter-spacing: .1px;
        }
        
        /* Dropdown Styles */
        .dropdown-menu {
            background-color: white;
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-radius: 8px;
            padding: 10px 0;
            margin-top: 8px;
        }
        
        .dropdown-item {
            color: var(--dark-color);
            font-weight: 500;
            padding: 8px 20px;
            transition: all 0.2s;
        }
        
        .dropdown-item:hover {
            background-color: rgba(26, 188, 156, 0.1);
            color: var(--accent-color);
        }
        
        /* Nested Dropdown Styles */
        .dropdown-submenu {
            position: relative;
        }
        
        .dropdown-submenu .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -10px;
            margin-left: 0;
            display: none;
        }
        
        .dropdown-submenu:hover .dropdown-menu {
            display: block;
        }
        
        .dropdown-submenu > .dropdown-item::after {
            content: '\f054';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            float: right;
            margin-top: 5px;
            font-size: 0.8rem;
        }
        
        /* Home Page Hero Section */
        .home-hero{
          background: radial-gradient(900px 500px at 10% 10%, rgba(26,188,156,.18), transparent 55%),
                      radial-gradient(900px 500px at 90% 30%, rgba(52,152,219,.18), transparent 55%),
                      linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
          color:#fff;
          padding: 80px 0 60px;
          margin-bottom: 60px;
          position: relative;
          overflow:hidden;
        }
        
/* Canvas behind everything */
#network-bg-home{
  position: absolute;
  inset: 0;          /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all hero content stays above */
.home-hero > .container,
.home-hero .hero-flow{
  position: relative;
  z-index: 2;
}
        
        .home-hero .badge{
          background: rgba(255,255,255,.12);
          border: 1px solid rgba(255,255,255,.18);
          font-weight: 600;
          padding: .55rem .9rem;
          border-radius: 999px;
        }
        .home-hero-title{
          font-family: 'Syne', sans-serif;
          font-weight: 500;
          letter-spacing: .1px;
          font-size: clamp(1.8rem, 4vw, 3.0rem);
          line-height: 1.1;
          margin: 14px 0 14px;
        }
        .home-hero-subtitle{
          opacity: .92;
          font-size: 1.1rem;
          max-width: 60ch;
        }
    
        .home-hero-card{
          background: rgba(255,255,255,.08);
          border: 1px solid rgba(255,255,255,.14);
          border-radius: 16px;
          padding: 22px;
          box-shadow: 0 20px 60px rgba(0,0,0,.25);
          backdrop-filter: blur(10px);
        }
        
        
/* SEIPID and Alif Index Home pages Hero */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f6a6a, #0c4b4b);
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
    overflow: hidden;
}

/* Alif Index Database pages Hero */
.dhero-section{
  position: relative;
  background: linear-gradient(135deg, #0f6a6a, #0c4b4b);
  color: #fff;
  padding: 90px 0 70px;
  overflow: hidden;
}

#network-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}

.hero-content{
  position: relative;
  z-index: 2;
}

.ghero-title{
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 18px 0; /* FIX */
}

.ghero-subtitle{
  font-size: 1.05rem;
  opacity: .92;
  margin: 18px 0 0 0; /* FIX */
}

/* Tag above search */
.hero-tag-wrap{
  margin: 0 0 10px 0;
}
.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

/* Search wrapper */
.search-wrapper{
  max-width: 760px;
  margin: 0 auto;
}

.search-form{
  display:flex;
  flex-direction: column;
  gap: 14px; /* ensures no overlap */
}

.search-box{
  display:flex;
  align-items:center;
  background:#fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.search-input{
  flex:1;
  border:0;
  padding: 14px 18px;
  font-size: 1.05rem;
  background: transparent;
  border-radius: 999px;
  outline: none;
}

.search-input:focus{
  box-shadow:none;
  border:0;
}

.search-btn{
  background: var(--primary, #0d6efd);
  color:#fff;
  border:0;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  min-width: 54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.search-btn:hover{
  background: var(--primary-dark, #0b5ed7);
  color:#fff;
}

/* Filters as modern chips */
.filter-options{
  color:#fff;
}

.filter-wrap{
  display:flex;
  flex-wrap: wrap;               /* KEY */
  justify-content:center;
  gap: 10px 12px;                /* KEY */
}

.filter-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  cursor:pointer;
  user-select:none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  font-size: .95rem;
  line-height: 1;
}

.filter-radio{
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.65);
  background: transparent;
  display:inline-block;
}

.filter-radio:checked{
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}

.filter-chip:has(.filter-radio:checked){
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.30);
}

@media (max-width: 768px){
  .dhero-section{ padding: 70px 0 55px; }
  .search-wrapper{ max-width: 92vw; }
  .search-input{ padding: 12px 14px; font-size: 1rem; }
  .search-btn{ padding: 10px 14px; }
  .filter-chip{ font-size: .85rem; padding: 7px 10px; }
  .ghero-subtitle{ font-size: .98rem; }
}


/* Only for THIS page hero logo transition(scoped by #alif-hero) */
#alif-hero .hero-logo {
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}

#alif-hero .hero-logo.is-fading {
  opacity: 0;
  transform: scale(.98);
}

/* Canvas behind everything */
#network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Content always above */
.hero-content {
    position: relative;
    z-index: 2;
}
        
        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 20px;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 30px;
        }
        
        .hero-logo{
            max-width: 380px;
            width: 100%;
            height: auto;
            opacity: 0.85;
            filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
        }
        
        

/* 9:16 image block (responsive on ALif Page) */
.why-portrait{
  width: 100%;
  max-width: 420px;          /* controls size on desktop */
  margin-left: auto;         /* aligns right on large screens */
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
  aspect-ratio: 9 / 16;      /* keeps 9:16 */
}

/* image always fits nicely */
.why-portrait-img{
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fill frame without distortion */
  display: block;
}

/* Mobile: center it + make it not too tall */
@media (max-width: 991.98px){
  .why-portrait{
    margin: 0 auto;          /* centers on mobile */
    max-width: 360px;
  }
}

@media (max-width: 576px){
  .why-portrait{
    max-width: 320px;
    border-radius: 16px;
  }
}

/* Right column video wrapper (16:9, responsive, not too tall) */
.why-video{
  width: 100%;
  max-width: 520px;          /* keeps it neat in side column */
  margin-left: auto;         /* right align on desktop */
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
  aspect-ratio: 16 / 9;      /* forces 16:9 */
}

/* Video fills the frame properly */
.why-video-el{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Mobile: center it */
@media (max-width: 991.98px){
  .why-video{
    margin: 0 auto;
    max-width: 600px;        /* a bit wider on mobile */
  }
}

/* ===== HERO FLOW STRIP ===== */
.hero-flow{
  position: relative;
  z-index: 2;
}

.fhero-flow-wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  padding: 14px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.fflow-step{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .85rem;
  white-space: nowrap;
  transition: all .3s ease;
}

.hero-flow-wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  background: teal;
  border: 1px solid rgba(255,255,255,.14);
  padding: 14px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.flow-step{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 12px;
  border-radius: 999px;
  color:white;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .3s ease;
}

.flow-step:hover{
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}

.flow-num{
  width: 22px;
  height: 22px;
  background: #1abc9c;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
}

/* MOBILE STACK */
@media(max-width: 768px){
  .fhero-flow-wrap{
    flex-direction: column;
    align-items: stretch;
  }

  .fflow-step{
    justify-content: center;
  }
  
  .hero-flow-wrap{
    flex-direction: column;
    align-items: stretch;
  }

  .flow-step{
    justify-content: auto;
  }
}

        /* Other Pages Hero */
        .restpage-hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
            color: white;
            padding: 80px 0 60px;
            margin-bottom: 40px;
        }  
        
        .restpage-title {
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 15px;
        }
        
        .restpage-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
        }
        
        /* Alif & SEPID restPages Hero */
        .alifpage-hero {
            position: relative;
            background: linear-gradient(135deg, #0f6a6a, #0c4b4b);
            color: white;
            padding: 80px 0 60px;
            margin-bottom: 45px;
            overflow: hidden;
        }
        
        
        .alifpage-title {
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 15px;
        }
        
        .alifpage-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
        }



/* At a Glance Section */
.glance-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    background: white;
}

.glance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: rgba(var(--primary-rgb), 0.1);
}

.glance-icon span {
    font-size: 2.5rem;
    line-height: 1;
}

/* Condensed Reset Grid */
.reset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .reset-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== GLOBAL SECTION SPACING ===== */
.main-wrap > section{
  margin-top: 3rem;      /* increase/decrease */
  margin-bottom: 3rem;   /* increase/decrease */
}

/* optional: first section doesn't need extra top space */
.main-wrap > section:first-child{
  margin-top: 0;
}

/* optional: last section doesn't need extra bottom space */
.main-wrap > section:last-child{
  margin-bottom: 0;
}

/* mobile tighter spacing */
@media (max-width: 576px){
  .main-wrap > section{
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

        
        /* Content Sections */
        .section-title {
            color: var(--primary-color);
            font-weight: 700;
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--accent-color);
        }
        
        .feature-card {
            border: none;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
            height: 100%;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
        .feature-icon {
            background-color: rgba(26, 188, 156, 0.1);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--accent-color);
            font-size: 1.8rem;
        }
        
        /* ALIF Index Highlight */
        .alif-highlight .alif-wrap{
          border-radius: 18px;
          padding: 28px;
          background: linear-gradient(180deg, rgba(26,188,156,.10), rgba(26,188,156,.04));
          border: 1px solid rgba(0,0,0,.06);
          box-shadow: 0 10px 30px rgba(0,0,0,.04);
        }
        
        .alif-badge{
          display: inline-flex;
          align-items: center;
          padding: 8px 12px;
          border-radius: 999px;
          font-size: .90rem;
          font-weight: 650;
          background: rgba(26,188,156,.14);
          border: 1px solid rgba(26,188,156,.25);
        }
        
        .alif-title{
          font-family: 'Syne', sans-serif;
          font-weight: 600;
          letter-spacing: -.02em;
          margin: 0 0 10px;
        }
        
        .alif-subtitle{
          margin: 0;
          opacity: .92;
          line-height: 1.7;
        }
        
        .alif-grid{
          display: grid;
          grid-template-columns: 1fr;
          gap: 12px;
        }
        
        .alif-point{
          display: flex;
          gap: 12px;
          padding: 14px 14px;
          border-radius: 14px;
          background: rgba(255,255,255,.72);
          border: 1px solid rgba(0,0,0,.06);
        }
        
        .alif-point h5{
          margin: 0 0 4px;
          font-size: 1.02rem;
          font-weight: 750;
        }
        
        .alif-point p{
          margin: 0;
          font-size: .95rem;
          opacity: .88;
          line-height: 1.55;
        }
        
        .alif-ico{
          width: 40px;
          height: 40px;
          border-radius: 12px;
          display: grid;
          place-items: center;
          background: rgba(26,188,156,.12);
          border: 1px solid rgba(26,188,156,.22);
          flex: 0 0 40px;
        }
        
        .alif-ico i{
          font-size: 1.05rem;
        }
        
        .alif-mini-note{
          display: flex;
          align-items: center;
          gap: 8px;
          padding: 10px 12px;
          border-radius: 12px;
          background: rgba(0,0,0,.03);
          border: 1px dashed rgba(0,0,0,.14);
          font-size: .92rem;
          opacity: .92;
        }
        
        /* Responsive enhancement */
        @media (min-width: 992px){
          .alif-grid{
            grid-template-columns: 1fr 1fr;
          }
        }


/* RESET GRID (Modern Comparison Cards) */
.reset-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reset-card{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.reset-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  border-color: rgba(26,188,156,.28);
}

.reset-old,
.reset-new{
  padding: 16px 16px 14px;
  min-height: 140px;
}

.reset-old{
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,0) 100%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.reset-new{
  background: linear-gradient(180deg, rgba(26,188,156,.12) 0%, rgba(255,255,255,1) 100%);
}

.reset-old h6,
.reset-new h6{
  margin:0 0 8px;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}

.reset-new h6{
  opacity: 1;
  color: rgba(26,188,156,.95);
}

.reset-old p,
.reset-new p{
  margin:0;
  line-height: 1.45;
  font-size: .98rem;
}

.reset-tagline{
  display:inline-block;
  padding:.6rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 991.98px){
  .reset-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px){
  .reset-grid{ grid-template-columns: 1fr; }
  .reset-old, .reset-new{ min-height: auto; }
}


/* Why SEIPID  */
.seipid-intro .lead{ font-size:1.05rem; line-height:1.6; }

.intro-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

.intro-badge{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  background: rgba(26,188,156,.12);
  border: 1px solid rgba(26,188,156,.22);
  color: #0f6f5c;
  font-weight:700;
  padding:.45rem .75rem;
  border-radius:999px;
  font-size:.9rem;
}

.intro-list{
  list-style:none;
  padding:0;
  margin:12px 0 10px;
}
.intro-list li{
  display:flex;
  gap:.55rem;
  align-items:flex-start;
  padding:8px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
.intro-list li:last-child{ border-bottom:none; }

.intro-mini{
  font-size:.9rem;
  margin-top:8px;
}





/* SEIPID Highlight (match ALIF modern style) */
.seipid-highlight { margin-top: 2.5rem; margin-bottom: 2.5rem; }

.seipid-wrap{
  border-radius: 18px;
  padding: 28px;
  background: rgba(26, 188, 156, 0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.seipid-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(26, 188, 156, 0.16);
  border: 1px solid rgba(26, 188, 156, 0.25);
}

.seipid-title{
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.seipid-subtitle{
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.seipid-actions .btn{ border-radius: 12px; }

.seipid-grid{
  display: grid;
  gap: 14px;
}

.seipid-point{
  display: flex;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.seipid-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 188, 156, 0.18);
  border: 1px solid rgba(26, 188, 156, 0.28);
  flex: 0 0 44px;
}

.seipid-point h5{
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: 1rem;
}

.seipid-point p{
  margin: 0;
  opacity: 0.9;
  line-height: 1.55;
}

@media (max-width: 576px){
  .seipid-wrap{ padding: 18px; }
  .seipid-title{ font-size: 1.35rem; }
  .seipid-point{ padding: 12px; }
}



/* Impact Snapshot (Modern + Counter) */
.impact-section { margin-top: 2.5rem; margin-bottom: 2.5rem; }

.impact-wrap{
  border-radius: 18px;
  padding: 28px;
  background: rgba(26, 188, 156, 0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.impact-head{ text-align: left; }

.impact-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(26, 188, 156, 0.16);
  border: 1px solid rgba(26, 188, 156, 0.25);
  margin-bottom: 10px;
}

.impact-title{
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.impact-subtitle{
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

.impact-card{
  height: 100%;
  border-radius: 16px;
  padding: 16px 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.impact-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.impact-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 188, 156, 0.18);
  border: 1px solid rgba(26, 188, 156, 0.28);
  margin-bottom: 10px;
}

.impact-num{
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.impact-label{
  opacity: 0.85;
  font-size: 0.95rem;
}

.impact-note{
  opacity: 0.8;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 576px){
  .impact-wrap{ padding: 18px; }
  .impact-title{ font-size: 1.35rem; }
  .impact-num{ font-size: 1.35rem; }
}


        /* Back to Top Button */
        .back-to-top-btn{
          position: fixed;
          right: 20px;
          bottom: 20px;
          width: 44px;
          height: 44px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          background: teal;
          color: #fff;
          z-index: 9999;
          opacity: 0;
          visibility: hidden;
          transform: translateY(10px);
          transition: all .25s ease;
          text-decoration: none;
        }
        
        .back-to-top-btn.show{
          opacity: 1;
          visibility: visible;
          transform: translateY(0);
        }
        
        .back-to-top-btn:hover{
          color:#fff;
          opacity: .95;
        }


        /* Footer */
        .footer {
            background-color: var(--primary-color);
            color: white;
            padding: 60px 0 20px;
        }
        
        .footer-heading {
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--accent-color);
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--accent-color);
        }
        
        .copyright {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            margin-top: 40px;
            text-align: center;
            color: #aaa;
            font-size: 0.9rem;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.2rem;
            }
            
            .hero-section {
                padding: 70px 0;
            }
            
            body {
                padding-top: 70px;
            }
            
            /* Adjust nested dropdown for mobile */
            .dropdown-submenu .dropdown-menu {
                position: static;
                float: none;
                width: auto;
                margin-top: 0;
                background-color: transparent;
                border: 0;
                box-shadow: none;
                padding-left: 15px;
            }
            
            .dropdown-submenu > .dropdown-item::after {
                display: none;
            }
        }
        
        /* SEIPID Work Flow Centered, responsive 16:9 image block */
  .ecosystem-flow-wrap{
    width: 100%;
    max-width: 1100px;          /* controls how big it gets on large screens */
    margin: 0 auto;             /* centers */
    border-radius: 18px;
    overflow: hidden;
    background: #fff;           /* keeps edges clean for transparent PNGs */
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: clamp(10px, 2vw, 18px);
  }

  .ecosystem-flow-img{
    width: 100%;
    height: auto;               /* keeps original ratio (your 16:9 stays 16:9) */
    display: block;
    border-radius: 12px;
  }

  /* Optional: slightly tighter on very small screens */
  @media (max-width: 576px){
    .ecosystem-flow-wrap{
      padding: 10px;
      border-radius: 14px;
    }
    .ecosystem-flow-img{
      border-radius: 10px;
    }
  }
  
  
  
/* ===== ALIF Index Landing Page ===== */
/* Hero Carousel */
.alif-hero {
    height: 80vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.alif-hero .carousel,
.alif-hero .carousel-inner,
.alif-hero .carousel-item {
    height: 100%;
}

.alif-hero .carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.alif-hero .carousel-item {
    background: none;
}

.alif-hero .carousel-item .container {
    height: 100%;
    position: relative;
    z-index: 2;
}

.alif-hero .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

.alif-hero .carousel-control-prev,
.alif-hero .carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.alif-hero .carousel-control-prev:hover,
.alif-hero .carousel-control-next:hover {
    opacity: 1;
}



/* Vision & Mission Cards */
.vision-card, .mission-card {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.vision-card .icon-box, .mission-card .icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    color: var(--primary);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.feature-icon {
    color: var(--primary);
}

/* How It Works Steps */
.step-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-number {
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-box {
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .alif-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .alif-hero .display-4 {
        font-size: 2rem;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
}

/* ===== ALIF Category Zig-Zag Blocks ===== */
.alif-cat{ position: relative; }

.alif-row{ --circleSize: 260px; }
@media (max-width: 1199.98px){ .alif-row{ --circleSize: 240px; } }
@media (max-width: 991.98px){ .alif-row{ --circleSize: 220px; } }
@media (max-width: 576px){ .alif-row{ --circleSize: 200px; } }

/* Flip on desktop only (image left, text right) */
@media (min-width: 992px){
  .alif-row--flip{ flex-direction: row-reverse; }
}

/* Media wrapper */
.alif-media{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Perfect circle badge container */
.alif-circle{
  width: var(--circleSize);
  height: var(--circleSize);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
  display: grid;
  place-items: center;
}

/* Make image auto-fit inside circle */
.alif-circle img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* no cropping; keeps full badge */
  display: block;
  padding: 14px;       /* breathing space */
}

/* Mobile ordering: Title + Lead + Image + Rest paragraphs */
@media (max-width: 991.98px){
  .alif-lead{ margin-bottom: 14px !important; }
  .alif-media{ margin: 8px 0 10px; }
}

/* ===== reveal animation ===== */
.reveal-on-scroll{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-on-scroll.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Optional: subtle hover on circle (desktop only) */
@media (hover:hover){
  .alif-circle{ transition: transform .25s ease, box-shadow .25s ease; }
  .alif-circle:hover{
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(0,0,0,.16);
  }
}





/* Article Page Styles */

/* Pages Hero */
        .articlepage-hero {
            position: relative;
            background: linear-gradient(135deg, #0f6a6a, #0c4b4b);
            color: white;
            padding: 70px 0 15px;
            margin-bottom: 2px;
            overflow: hidden;
        }
        
.article-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Article Header */
.article-meta .badge {
    font-weight: 550;
    letter-spacing: 0.3px;
}
.vol-issue {
   font-size: 0.8rem;
    color: white; 
}
.article-title {
    line-height: 1.2;
    font-size: 2.0rem;
    color: white;
}

/* Authors */
.author {
    font-size: 0.9rem;
}

.author-name {
    color: #FACC15;
}

.author-orcid, .author-email {
    color: yellow;
    transition: color 0.2s;
}

.author-orcid:hover, .author-email:hover {
    color: #0d6efd;
}

/* Journal Info */
.journal-info {
    font-size: 0.99rem;
    color: #CCFBF1;
}

/* DOI Badges */
.doi-info .badge {
    font-weight: 400;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Abstrct Info */
.abstract-text {
    font-size: 1.1rem;
    
}

/* References */
.references ul {
    padding-left: 0;
}

.references li {
    padding-left: 2rem;
    text-indent: -2rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #495057;
}

.references li em {
    font-style: italic;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.sidebar-sticky .card {
    border-radius: 1rem;
    border: none;
    transition: transform 0.2s;
}

.sidebar-sticky .card:hover {
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #0d6efd;
}

.card-title i {
    opacity: 0.8;
}

/* Metrics */
.d-flex.justify-content-between {
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.d-flex.justify-content-between:last-child {
    border-bottom: none;
}

/* Citation Code */
code {
    font-size: 0.8rem;
    word-break: break-word;
    white-space: normal;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Buttons */
.btn-outline-primary {
    border-color: #dee2e6;
    color: #495057;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.1rem;
    }
    
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
}



/* Journal Page Styles */

/* Tier Badge Colors */
.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}
.tier-l1 { background-color: #0d6efd; }
.tier-l2 { background-color: #6f42c1; }
.tier-l3 { background-color: #198754; }
.tier-pre { background-color: #6c757d; }

.issn {
    font-size: 0.8rem;
    color: #CCFBF1;
}
.journal-title {
    line-height: 1.2;
    font-size: 1.6rem;
    color: white;
}

/* Metric Cards */

.metric-card{
    padding: .55rem .6rem !important;
    border-radius: .75rem !important;
    transition: .2s;
}

.metric-value{
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    line-height: 1;
    margin-bottom: 2px;
}

.metric-label{
    font-size: .87rem;
    opacity: .75;
    margin:0;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* Tabs Styling */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
}
.nav-tabs .nav-link.active {
    color: var(--primary, #0d6efd);
    border-bottom: 3px solid var(--primary, #0d6efd);
    background: transparent;
}

/* Journal Cover Placeholder */
.journal-cover-placeholder {
    border: 2px dashed #dee2e6;
}


/* Make table inside accordion cleaner */
.accordion-body .table {
    margin-bottom: 0;
    border: none;
}
.accordion-body .table th {
    border-top: none;
    background-color: #f8f9fa;
}
.accordion-body .table td {
    vertical-align: middle;
}
/* Ensure badge consistency */
.badge.bg-light {
    background-color: #e9ecef !important;
    color: #212529;
    font-weight: 400;
}

/* Responsive */
/* Tablets */
@media (max-width: 992px) {
    .metric-value{
        font-size: clamp(.9rem, 2vw, 1.1rem);
    }
    .metric-label{
        font-size: .65rem;
    }
    .metric-card{
        padding: .45rem .5rem !important;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    .metric-value{
        font-size: .9rem;
    }
    .metric-label{
        font-size: .6rem;
    }
    .metric-card{
        padding: .35rem .45rem !important;
        border-radius: .6rem !important;
    }
}




/* Evaluation page Accordion container (light wide box) */
.alif-accordion-wrap{
  max-width: 980px;          /* wide */
  margin-left: auto;
  margin-right: auto;
}

.alif-accordion{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

/* Each item */
.alif-item{
  border-bottom: 1px dashed rgba(0,0,0,.12);
}
.alif-item:last-child{ border-bottom: 0; }

/* Question row */
.alif-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.alif-q-title{
  font-size: 1.25rem;
  font-weight: 650;
  color: #b055ff;            /* purple like screenshot */
}

/* Arrow */
.alif-arrow{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #b055ff;
  background: rgba(176,85,255,.10);
  border: 1px solid rgba(176,85,255,.18);
  flex: 0 0 auto;
  transition: transform .25s ease;
}

/* Answer wrapper */
.alif-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.alif-a-inner{
  padding: 0 18px 18px;
  color: #333;
  line-height: 1.2;
  font-size: 1rem;
}

/* Open state */
.alif-item.is-open .alif-a{
  max-height: 850px; /* enough for content; can be increased */
}
.alif-item.is-open .alif-arrow{
  transform: rotate(180deg);
}

/* Mobile */
@media (max-width: 768px){
  .alif-accordion-wrap{ max-width: 100%; }
  .alif-q{ padding: 14px 14px; }
  .alif-q-title{ font-size: 1.05rem; }
  .alif-arrow{ width: 38px; height: 38px; }
  .alif-a-inner{ padding: 0 14px 14px; font-size: .98rem; }
}


/* L2 Metrics Table (Bootstrap-friendly) */
.alif-table-wrap{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.alif-metrics-table{
  margin: 0;
}

.alif-metrics-table thead th{
  font-weight: 700;
  font-size: .85rem;
  background: rgba(13,110,253,.06);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: .75rem .75rem;
  vertical-align: middle;
}

.alif-metrics-table tbody td{
  font-size: .9rem;
  padding: .7rem .75rem;
  vertical-align: middle;
  border-top: 1px solid rgba(0,0,0,.06);
}

.alif-metrics-table tbody tr:hover{
  background: rgba(0,0,0,.02);
}

/* Keep numbers tight */
.alif-metrics-table td:nth-child(2),
.alif-metrics-table td:nth-child(3),
.alif-metrics-table td:nth-child(4),
.alif-metrics-table td:nth-child(5){
  white-space: nowrap;
}

/* Mobile tuning */
@media (max-width: 576px){
  .alif-metrics-table thead th,
  .alif-metrics-table tbody td{
    padding: .3rem .3rem;
  }
  .alif-metrics-table thead th{ font-size: .75rem; }
  .alif-metrics-table tbody td{ font-size: .75rem; }
}


/* Dual Service Showcase */
.dual-service-showcase {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.02) 0%, rgba(255,255,255,1) 100%);
    position: relative;
    overflow: hidden;
}

.service-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), #6f42c1);
}

.service-pid::before {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

.service-alif::before {
    background: linear-gradient(90deg, #198754, #20c997);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.service-pid .service-icon {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.service-alif .service-icon {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.service-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 1rem;
}

.service-desc {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

.service-features li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.service-pid .service-features li i {
    color: #0d6efd;
}

.service-alif .service-features li i {
    color: #198754;
}

.service-link {
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-pid .service-link {
    color: #0d6efd;
}

.service-alif .service-link {
    color: #198754;
}

.service-link:hover {
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1.5rem;
    }
    .service-title {
        font-size: 1.75rem;
    }
}