/* =========================================
   RPGI Custom Overrides
   ========================================= */

/* ------------------------------------------
   OUR INSTITUTES — redesigned professional cards
   ------------------------------------------ */
   @font-face {
  font-family: 'Font Awesome 6 Free';
  font-display: swap;
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-display: swap;
}
   
#instr-sec .instr-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px !important;
  border: 1px solid #e4eaf2 !important;
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(16, 52, 86, 0.06) !important;
  transition: box-shadow 0.32s ease, transform 0.32s ease !important;
  position: relative !important;
}
/* Gradient top accent bar */
#instr-sec .instr-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-color) 0%, var(--sky-blue-color) 50%, var(--purple-color) 100%);
  border-radius: 14px 14px 0 0;
  z-index: 2;
  transition: height 0.32s ease;
}
#instr-sec .instr-card:hover {
  box-shadow: 0 16px 48px rgba(16, 52, 86, 0.14) !important;
  transform: translateY(-7px);
}
#instr-sec .instr-card:hover::before {
  height: 6px;
}
/* Logo area */
#instr-sec .instr-card .instr-img {
  height: 210px !important;
  min-height: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 36px 32px !important;
  background: #f6f9fc !important;
  flex-shrink: 0;
  border-bottom: 1px solid #edf1f6;
  transition: background 0.3s ease;
}
#instr-sec .instr-card:hover .instr-img {
  background: #eef4fb !important;
}
#instr-sec .instr-card .instr-img img {
  width: auto !important;
  height: auto !important;
  max-height: 110px !important;
  max-width: 78% !important;
  object-fit: contain !important;
  transition: transform 0.32s ease;
}
#instr-sec .instr-card:hover .instr-img img {
  transform: scale(1.05);
}
/* Content area */
#instr-sec .instr-card .box-content {
  position: static !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 20px 20px !important;
  background: #fff !important;
  border-radius: 0 !important;
  filter: none !important;
  -webkit-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
#instr-sec .instr-card .box-content::before,
#instr-sec .instr-card .box-content::after {
  display: none !important;
}
/* Institute name */
#instr-sec .instr-card .box-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 7px !important;
  color: var(--title-color) !important;
}
#instr-sec .instr-card .box-title a {
  color: var(--title-color) !important;
  text-decoration: none !important;
  transition: color 0.22s ease !important;
}
/* Program pill badge */
#instr-sec .instr-card .instr-desig {
  display: inline-block !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--purple-color) !important;
  background: rgba(82, 10, 148, 0.09) !important;
  padding: 3px 11px !important;
  border-radius: 20px !important;
  letter-spacing: 0.2px !important;
  transition: background 0.22s ease, color 0.22s ease !important;
}
/* Globe link — circular border button */
#instr-sec .instr-card .th-social.style3 a {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  border: 1.5px solid #dce4ed !important;
  background: transparent !important;
  color: var(--body-color) !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
}
/* Hover states */
#instr-sec .instr-card:hover .box-title a {
  color: var(--theme-color) !important;
}
#instr-sec .instr-card:hover .instr-desig {
  background: rgba(34, 125, 204, 0.1) !important;
  color: var(--sky-blue-color) !important;
}
#instr-sec .instr-card:hover .th-social.style3 a {
  background: var(--purple-color) !important;
  border-color: var(--purple-color) !important;
  color: #fff !important;
}

/* ------------------------------------------
   FIX: Follow Us — no box artefacts around links
   ------------------------------------------ */
.rpgi-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rpgi-social-list li {
  margin-bottom: 13px;
}
.rpgi-social-list li:last-child {
  margin-bottom: 0;
}
.rpgi-social-list a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  color: var(--body-color);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s;
  /* Override any .th-social a width/height/border */
  width: auto !important;
  height: auto !important;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  line-height: 1.5 !important;
  font-weight: 500;
}
.rpgi-social-list a:hover {
  color: var(--theme-color) !important;
  background: none !important;
}
.rpgi-social-list .icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.3s;
}
.rpgi-social-list a:hover .icon {
  background: var(--sky-blue-color);
  color: #fff;
}
/* In sidemenu (light background) */
.sidemenu-wrapper .rpgi-social-list a {
  color: var(--title-color);
}
.sidemenu-wrapper .rpgi-social-list .icon {
  background: var(--smoke-color);
}
.sidemenu-wrapper .rpgi-social-list a:hover {
  color: var(--purple-color) !important;
}

/* Accent Utilities for new colors */
.text-purple { color: var(--purple-color) !important; }
.text-sky { color: var(--sky-blue-color) !important; }
.bg-purple { background-color: var(--purple-color) !important; }
.bg-sky { background-color: var(--sky-blue-color) !important; }
.th-btn.th-btn-sky { background-color: var(--sky-blue-color) !important; border-color: var(--sky-blue-color) !important; color: #fff !important; }
.th-btn.th-btn-sky:before { background-color: var(--purple-color) !important; }
