/* =========================================
   1. RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  margin: 0 auto;
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  color: #1e293b;
}

/* =========================================
   2. TOP NAVIGATION BAR (RAMSA pages)
   ========================================= */
.bg-dark,
.topbar-bg {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #4f46e5;
}

.bg-dark a,
.topbar-bg a {
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.bg-dark a:hover,
.topbar-bg a:hover {
  color: #a5b4fc !important;
}

.topbar-brand {
  transition: all 0.25s ease;
}

.topbar-brand:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

.topbar-icon {
  color: #a5b4fc;
  transition: transform 0.25s ease, color 0.25s ease;
}

.topbar-brand:hover .topbar-icon {
  transform: scale(1.1);
  color: #ec4899;
}

.topbar-logo-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.topbar-logo-badge:hover {
  background: rgba(79, 70, 229, 0.3);
  border-color: #4f46e5;
}

/* =========================================
   3. MAIN NAVBAR (JIIT / homepage)
   ========================================= */
.navbar-brand {
  text-align: center;
  display: inline-block;
  float: none;
  font-size: 18px;
  height: 100%;
  padding: 0;
  vertical-align: middle;
}

.fixed-top.scrolled {
  background-color: white !important;
  transition: background-color 200ms linear;
}

#navbarNavDropdown {
  background-color: white;
}

.navbar {
  flex-wrap: wrap;
}

.navbar-logo img {
  max-height: 30px;
}

.navbar-title {
  font-size: 18px;
  text-align: left;
  width: 100%;
}

.nav-btn-bar {
  background: linear-gradient(-45deg, #00a3e0, #2e3192, #1e2066, #00a3e0);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  width: 100%;
  z-index: 999;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-btn-bar .btn {
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.nav-btn-bar .btn:hover {
  background-color: #ffffff !important;
  color: #1e1b4b !important;
  border-color: #ffffff !important;
}

.announcement-inside-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #2e3192 100%);
  color: #fff;
  font-weight: bold;
  padding: 5px;
}

.logo {
  width: 100px;
  height: 50px;
  position: absolute;
  top: 10px;
  left: 5px;
}

.logo2 {
  width: 100px;
  height: 50px;
  position: absolute;
  top: 10px;
  left: 30px;
}

.footer-link {
  color: white;
  text-decoration: none;
}

.footer-link:hover {
  color: #a5b4fc;
}

/* =========================================
   4. HERO SECTION & ANIMATIONS
   ========================================= */
.hero-container {
  width: 100%;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 5%;
  background: linear-gradient(-45deg, #f0f8ff, #dceeff, #97adfa, #f0f8ff);
  background-size: 400% 400%;
  animation: heroGradientFlow 12s ease infinite;
  overflow: hidden;
}

@keyframes heroGradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.overlay-text {
  position: relative;
  z-index: 2;
  text-align: left;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 100%;
  min-height: 450px;
  background: url("../img/340.jpeg") no-repeat center bottom;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: panBackground 18s ease-in-out infinite alternate;
}

@keyframes panBackground {
  0%   { background-position: left bottom; }
  100% { background-position: right bottom; }
}

.animated-boxes {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  z-index: 3;
}

.box {
  background: linear-gradient(135deg, #2e3192 0%, #4a4fc4 50%, #00a3e0 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  animation: floatBox 1s ease-in-out infinite alternate;
  box-shadow: 0 4px 14px rgba(46, 49, 146, 0.35);
  width: 180px;
}

@keyframes floatBox {
  0%   { transform: translateY(0); }
  100% { transform: translateY(12px); }
}

.tba-glow {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-top: 20px;
  animation: pulseGlow 1.4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 10px rgba(0, 163, 224, 0.2);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.7), 0 0 20px rgba(0, 163, 224, 0.6), 0 0 28px rgba(236, 72, 153, 0.4);
  }
}

.hero-area {
  margin-top: 100px;
  height: auto;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-img-jiit {
  width: auto;
  height: 17vh;
  margin: auto;
}

.hero-head { font-size: 1.1rem; }
.hero-subhead-1 { font-size: 1rem; }
.hero-subhead-2 { font-size: 0.75rem; }

/* =========================================
   5. TYPOGRAPHY & HEADINGS
   ========================================= */
.title-header-container {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
}

.category-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  margin-bottom: 12px;
}

.main-page-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem) !important;
  font-weight: 900 !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.1;
  filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.15));
}

.title-underline {
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  border-radius: 10px;
  margin: 16px auto 0 auto;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

.redHead,
.redHead2,
.redHead3,
.readHeadVb,
.section-head {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
}

.redHead { font-size: 1.1rem; }
.redHead3 { font-size: 1.25rem; }
.readHeadVb { font-size: 2rem; }
.section-head { font-size: 1.5rem; }

hr.w-25 {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, transparent, #4f46e5, transparent);
  opacity: 0.8;
  border-radius: 4px;
  margin-top: 15px;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.borderLine2 {
  border-left: thick solid #4f46e5;
}

.borderLine {
  border-left: thick solid #111;
}

.speaker-chip {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
}

/* =========================================
   6. TRANSLUCENT GLASS CARDS
   ========================================= */
.translucent-box {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.65));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.translucent-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.translucent-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.25);
}

.translucent-box:hover::before {
  opacity: 1;
}

.translucent-box h4 {
  color: #1e1b4b;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  margin-bottom: 0.3rem !important;
}

.translucent-box p {
  color: #475569 !important;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

/* =========================================
   7. IMAGE CONTAINERS
   ========================================= */
/* Speakers — uniform portraits */
.img-align-bottom {
  height: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.img-align-bottom img {
  height: 100%;
  width: 220px;
  max-width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #f1f5f9;
}

.translucent-box:hover .img-align-bottom img {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

/* Patrons / Chief Patrons */
.patron-align-bottom {
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.patron-align-bottom img {
  max-height: 100%;
  width: auto;
  border-radius: 12px;
  border: 3px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.translucent-box:hover .patron-align-bottom img {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Group / committee image */
.committeeImg {
  border-radius: 20px !important;
  border: 4px solid white;
  box-shadow: 0 15px 40px rgba(30, 27, 75, 0.15) !important;
  transition: transform 0.4s ease;
  max-height: 70vh;
  margin: 7% 5%;
}

.committeeImg:hover {
  transform: scale(1.02);
}

.messageImg { height: 20vh; }
.speakerImg {
  width: auto;
  height: 200px;
  border-radius: 12px;
}

.prevConfImg {
  max-height: 30vh;
  margin: 7% 5%;
  object-fit: contain;
}

.contain-fit {
  object-fit: contain;
  background-color: #fff;
}

/* =========================================
   8. COMMITTEE TABLE
   ========================================= */
.table-responsive {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(30, 27, 75, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: white;
}

.committee-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.committee-table th {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem !important;
  padding: 18px !important;
  border: none;
}

.committee-table td {
  border-bottom: 1px solid #f1f5f9;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 16px !important;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.committee-table tbody tr:nth-child(even) {
  background-color: #fafaf9;
}

.committee-table tbody tr:hover td {
  background-color: #f1f5f9;
  color: #4f46e5;
}

.committee-table tbody tr:hover td.fw-bold {
  transform: translateX(5px);
}

/* =========================================
   9. PREVIOUS CONFERENCES
   ========================================= */
#previousConferences {
  margin: 1.5rem auto 2.5rem;
  max-width: 960px;
  min-height: auto;
  padding: 0 1rem;
}

.conf-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.conf-card:hover {
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.conf-year {
  display: inline-block;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 60%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.conf-card p {
  color: #475569;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 1.25rem;
}

.btn-proceedings {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.btn-proceedings:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.prevConfImg2 {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  margin-bottom: 0.75rem;
  background: #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prevConfImg2.contain-fit {
  object-fit: contain;
  background: #fff;
}

.prevConfImg2:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

/* =========================================
   10. MISC / LEGACY HELPERS
   ========================================= */
.nav-link { text-align: center; }

.tbu {
  animation: blinker 2.5s linear infinite;
  font-size: 1.5rem;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.blink-text {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.multi-color {
  animation: colors 1.5s linear infinite;
}

@keyframes colors {
  0%, 100% { color: #4f46e5; }
  25%      { color: #7c3aed; }
  50%      { color: #ec4899; }
  75%      { color: #00a3e0; }
}

.oval-text-box {
  position: absolute;
  top: 120px;
  left: 20px;
  width: 160px;
  padding: 20px;
  border-radius: 50px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #ff9900;
  z-index: 900;
}

.frame {
  height: 70vh;
  width: 90vw;
}

.about-box-1,
.news-box-1,
.author-box-1 {
  margin: 1% 2%;
  padding: 5%;
  min-height: auto;
}

.gallery-img {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.gallery-img img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.prev-conf { list-style-type: none; }
.prev-conf li a {
  text-decoration: none;
  color: #1e293b;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}
.prev-conf li a:hover { color: #4f46e5; }

/* =========================================
   11. LOADERS
   ========================================= */
#preLoader {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#postLoader {
  display: none;
}

.lds-grid {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-grid div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f46e5;
  animation: lds-grid 1.2s linear infinite;
}

.lds-grid div:nth-child(1) { top: 8px;  left: 8px;  animation-delay: 0s;   background: #4f46e5; }
.lds-grid div:nth-child(2) { top: 8px;  left: 32px; animation-delay: -0.4s; background: #7c3aed; }
.lds-grid div:nth-child(3) { top: 8px;  left: 56px; animation-delay: -0.8s; background: #ec4899; }
.lds-grid div:nth-child(4) { top: 32px; left: 8px;  animation-delay: -0.4s; background: #7c3aed; }
.lds-grid div:nth-child(5) { top: 32px; left: 32px; animation-delay: -0.8s; background: #ec4899; }
.lds-grid div:nth-child(6) { top: 32px; left: 56px; animation-delay: -1.2s; background: #00a3e0; }
.lds-grid div:nth-child(7) { top: 56px; left: 8px;  animation-delay: -0.8s; background: #ec4899; }
.lds-grid div:nth-child(8) { top: 56px; left: 32px; animation-delay: -1.2s; background: #00a3e0; }
.lds-grid div:nth-child(9) { top: 56px; left: 56px; animation-delay: -1.6s; background: #1e1b4b; }

@keyframes lds-grid {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media only screen and (min-width: 768px) {
  #navbarNavDropdown {
    background-color: transparent;
  }

  .navbar-light .navbar-brand {
    text-align: right;
    display: inline-block;
    float: none;
    color: #003366 !important;
    font-weight: 700;
    font-size: 1.1rem;
    height: 100%;
    padding: 0;
    vertical-align: middle;
  }

  .navbar {
    background-color: #ffffff;
    border-bottom: 4px solid #2e3192;
    padding: 8px 15px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1030;
  }

  .navbar-logo img {
    max-height: 70px;
    height: auto;
    width: auto;
  }

  .logo-img {
    height: 70px !important;
    max-height: 70px !important;
  }

  .navbar-title {
    font-size: 20px;
    font-weight: bold;
  }

  .navbar-nav .nav-link {
    color: #eee !important;
    padding: 8px 15px;
    transition: color 0.2s ease-in-out;
    text-align: right;
  }

  .navbar-light .navbar-nav .nav-link {
    color: #003366 !important;
  }

  .navbar-light .navbar-nav .nav-link:hover {
    color: #4f46e5 !important;
  }

  .navbar-nav .nav-link:hover {
    color: #ffd700 !important;
  }

  .navbar.scrolled {
    background-color: rgba(0, 51, 102, 0.95) !important;
  }

  .navbar-left {
    display: flex;
    align-items: center;
  }

  .navbar-left img {
    height: 80px;
    margin-right: 15px;
  }

  .navbar-right {
    display: flex;
    align-items: center;
  }

  .institute-info { color: #0078d7; }
  .institute-info h1 {
    font-size: 20px;
    color: #00a3e0;
    margin-bottom: 0;
  }
  .institute-info p {
    font-size: 13px;
    color: #333;
  }

  .custom-bg {
    background-color: #ffffff;
    border-bottom: 4px solid #2e3192;
  }

  .oval-text-box {
    right: 20px;
    left: auto;
    background-color: #c9b06d;
  }

  .hero-img-jiit { height: 35vh; }
  .hero-head { font-size: 2rem; }
  .hero-subhead-1 { font-size: 1.5rem; }
  .hero-subhead-2 { font-size: 1.5rem; }
  .redHead { font-size: 2.25rem; }
  .section-head { font-size: 2rem; }
  .readHeadVb { font-size: 2rem; }
  .frame { width: 40vw; }
  .messageImg { height: 45vh; }

  .prevConfImg {
    max-height: 50vh;
    object-fit: cover;
  }

  .committeeImg { max-height: 70vh; }

  .about-box-1 {
    min-height: 65vh;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 40px 5%;
  }

  .overlay-text {
    text-align: center;
  }

  .overlay-text .d-flex {
    justify-content: center;
  }

  .image-wrapper,
  .hero-banner {
    min-height: 320px;
  }

  .animated-boxes {
    right: 15px;
    left: auto;
  }
}

@media (max-width: 768px) {
  .navbar-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-right {
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
  }

  .search-box {
    margin-bottom: 10px;
  }

  .oval-text-box {
    left: 20px;
  }

  .conf-card {
    padding: 1.25rem 1rem;
  }

  .prevConfImg2 {
    max-height: 220px;
  }

  .main-page-title {
    letter-spacing: 2px;
  }

  .animated-boxes {
    grid-template-columns: 1fr;
  }

  .box {
    width: 150px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .img-align-bottom {
    height: 220px;
  }

  .img-align-bottom img {
    width: 200px;
  }

  .patron-align-bottom {
    height: 240px;
  }

  .hero-container {
    padding: 28px 4%;
    gap: 24px;
  }
}