* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #222;
  background: #eef3f8;
}

header {
  background: linear-gradient(135deg, #06283d, #0b3d5c);
  color: white;
  padding: 28px 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

header h1 {
  font-size: 36px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

header p {
  font-size: 18px;
  opacity: 0.95;
}

header p:last-child {
  font-size: 15px;
  margin-top: 4px;
  color: #d9ecff;
}

nav {
  background: #041c2c;
  padding: 14px 8%;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
}

nav a:hover {
  background: #f4a261;
  color: #06283d;
}

nav a.highlight-link {
  background: #f4a261;
  color: #06283d;
  box-shadow: 0 0 10px rgba(244, 162, 97, 0.65);
}

nav a.apply-now-link {
  background: #ffcc00;
  color: #041c2c;
  font-weight: 900;
  font-size: 16px;
  padding: 9px 18px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 14px rgba(255, 204, 0, 0.75);
}

nav a.apply-now-link:hover {
  background: #ffffff;
  color: #0b3d5c;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,255,255,0.8);
}

/* ================= HERO RIGHT-TO-LEFT MOVING BACKGROUND ================= */

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 120px 20px;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  width: 700%;
  height: 100%;
  animation: moveRightToLeft 60s linear infinite;
}

.hero-slider img {
  width: calc(100% / 7);
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 25px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 18px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.65);
}

.hero p {
  font-size: 21px;
  max-width: 850px;
  margin: auto;
  color: #f1f7ff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.55);
}

@keyframes moveRightToLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-75%);
  }
}

/* ================= COMMON SECTION STYLE ================= */

section {
  padding: 55px 8%;
  background: white;
  margin: 28px auto;
  max-width: 1250px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  scroll-margin-top: 90px;
}

section h2 {
  color: #0b3d5c;
  margin-bottom: 24px;
  font-size: 31px;
  border-left: 6px solid #f4a261;
  padding-left: 14px;
  line-height: 1.2;
}

section p {
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 25px;
}

.card {
  background: linear-gradient(180deg, #f8fbff, #eef4fa);
  padding: 26px;
  border-radius: 14px;
  border-top: 5px solid #0b3d5c;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.13);
}

.card h3 {
  color: #06283d;
  margin-bottom: 10px;
  font-size: 21px;
}

/* ================= DIRECTOR AND HOD SECTION ================= */

.director-box,
.hod-box {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 35px;
  align-items: center;
  margin-top: 20px;
}

.director-box img,
.hod-box img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.bhajneet-hod-photo {
  width: 250px !important;
  height: 300px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff;
  padding: 8px;
  border-radius: 16px;
  border: 5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.director-message,
.hod-message {
  background: #f8fbff;
  padding: 28px;
  border-radius: 14px;
  border-left: 5px solid #f4a261;
}

.director-message h3,
.hod-message h3 {
  color: #06283d;
  font-size: 25px;
  margin-bottom: 6px;
}

.designation {
  color: #0b3d5c;
  font-weight: bold;
  margin-bottom: 16px;
}

.director-message p,
.hod-message p {
  margin-bottom: 12px;
  text-align: justify;
}

/* ================= PLACEMENT SECTION ================= */

.placement-intro,
.alumni-intro,
.lab-intro {
  max-width: 900px;
  margin-bottom: 25px;
}

.placement-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 25px 0 30px;
}

.placement-stat-box {
  background: linear-gradient(135deg, #0b3d5c, #115d86);
  color: white;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.placement-stat-box h3 {
  font-size: 27px;
  margin-bottom: 4px;
  color: #ffd166;
}

.placement-stat-box p {
  color: white;
  font-size: 14px;
}

/* ================= RECRUITING COMPANIES LOGO SECTION ================= */

.recruiters-section {
  margin: 28px 0 34px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  border-radius: 16px;
  border: 1px solid #d7e3ee;
  box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.recruiters-section h3 {
  color: #06283d;
  font-size: 22px;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 800;
}

.recruiter-logo-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.recruiter-logo-card {
  height: 68px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #d7e3ee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.recruiter-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0,0,0,0.13);
}

.recruiter-logo-card img {
  width: auto !important;
  height: auto !important;
  max-width: 105px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  display: block;
}

/* Individual logo corrections */
.recruiter-logo-card img[alt="Blue Star Logo"] {
  max-width: 115px !important;
  max-height: 36px !important;
}

.recruiter-logo-card img[alt="Larsen and Toubro Logo"],
.recruiter-logo-card img[alt="JLL Logo"] {
  max-width: 95px !important;
  max-height: 40px !important;
}

.recruiter-logo-card img[alt="Godrej Logo"] {
  max-width: 100px !important;
  max-height: 40px !important;
}

.recruiter-logo-card img[alt="Bosch Logo"] {
  max-width: 105px !important;
  max-height: 38px !important;
}

/* ================= PLACEMENT CARDS ================= */

.placement-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  width: 100%;
}

.placement-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.11);
  border: 1px solid #e1e8ef;
  transition: all 0.35s ease;
  position: relative;
  width: 100%;
}

.placement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.placement-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}

.placement-content {
  padding: 14px 10px 16px;
  background: linear-gradient(180deg, #ffffff, #f5f9fd);
}

.placement-card h3 {
  color: #06283d;
  font-size: 16px;
  margin-bottom: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company {
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.ctc {
  display: inline-block;
  margin-top: 8px;
  background: #0b3d5c;
  color: white;
  padding: 6px 11px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
}

.top-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f4a261;
  color: #06283d;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ================= ALUMNI SECTION ================= */

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  width: 100%;
}

.alumni-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.11);
  border: 1px solid #e1e8ef;
  border-top: 5px solid #0b3d5c;
  transition: all 0.35s ease;
  position: relative;
  width: 100%;
}

.alumni-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.alumni-photo-box {
  width: 100%;
  height: 230px;
  background: #f3f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid #e1e8ef;
}

.alumni-photo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.alumni-content {
  padding: 16px 12px 18px;
  background: linear-gradient(180deg, #ffffff, #f5f9fd);
}

.alumni-card h3 {
  color: #06283d;
  font-size: 17px;
  margin-bottom: 8px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alumni-company {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alumni-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f4a261;
  color: #06283d;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* ================= FACULTY SECTION ================= */

#faculty {
  max-width: 1380px;
  padding-left: 4%;
  padding-right: 4%;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  width: 100%;
  align-items: stretch;
}

.faculty-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 15px 8px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  border: 1px solid #d7e3ee;
  border-top: 5px solid #f4a261;
  transition: all 0.3s ease;
  width: 100%;
  overflow: visible;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.faculty-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.faculty-card img {
  width: 138px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0;
  border: 4px solid #ffffff;
  box-shadow: 0 5px 14px rgba(0,0,0,0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.faculty-zoom-out {
  width: 138px !important;
  height: 168px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff;
  padding: 4px;
}

.profile-round-button {
  position: absolute;
  right: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  background: #0b3d5c;
  color: #ffffff;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
  z-index: 10;
  transition: all 0.3s ease;
}

.profile-round-button:hover {
  background: #f4a261;
  color: #06283d;
  transform: translateY(-50%) scale(1.08);
}

.view-profile-link {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 6px 14px;
  background: #0b3d5c;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
  transition: all 0.3s ease;
}

.view-profile-link:hover {
  background: #f4a261;
  color: #06283d;
  transform: translateY(-2px);
}

.faculty-card h3 {
  color: #06283d;
  font-size: 19px;
  margin-bottom: 9px;
  line-height: 1.22;
}

.faculty-card p {
  font-size: 13.5px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.faculty-card p strong {
  color: #0b3d5c;
  font-weight: 800;
}

.faculty-card p:nth-of-type(1),
.faculty-card p:nth-of-type(2),
.faculty-card p:nth-of-type(3),
.faculty-card p:nth-of-type(4) {
  background: #eef5fb;
  padding: 6px 6px;
  border-radius: 7px;
  text-align: left;
}

.faculty-card p:last-child {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: -0.2px;
}

/* ================= LAB SECTION ================= */

.lab-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  width: 100%;
}

.lab-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.11);
  border: 1px solid #e1e8ef;
  border-top: 5px solid #0b3d5c;
  transition: all 0.3s ease;
  width: 100%;
}

.lab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.lab-photo-box {
  width: 100%;
  height: 220px;
  background: #f3f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-bottom: 1px solid #e1e8ef;
}

.lab-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.lab-content {
  padding: 20px;
}

.lab-content h3 {
  color: #06283d;
  font-size: 21px;
  margin-bottom: 10px;
}

.lab-content p {
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}

.lab-list-title {
  margin-top: 28px;
  color: #06283d;
  font-size: 22px;
  border-left: 5px solid #f4a261;
  padding-left: 12px;
}

.lab-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.lab-list-item {
  background: #eef5fb;
  padding: 9px 10px;
  border-radius: 10px;
  border-left: 4px solid #0b3d5c;
  box-shadow: 0 3px 8px rgba(0,0,0,0.07);
  font-size: 13px;
  font-weight: 700;
  color: #06283d;
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.lab-list-item:hover {
  transform: translateY(-2px);
  background: #fff7ef;
  border-left-color: #f4a261;
  box-shadow: 0 5px 12px rgba(0,0,0,0.10);
}

/* ================= EVENTS SECTION ================= */

ul {
  margin-left: 24px;
  margin-top: 10px;
}

ul li {
  margin-bottom: 8px;
}

/* ================= CONTACT SECTION WITH GOOGLE MAP ================= */

#contact {
  max-width: 1250px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 25px;
}

.contact-info {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 30px;
  border-radius: 16px;
  border-left: 5px solid #f4a261;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.contact-info p {
  font-size: 17px;
  color: #333;
  margin-bottom: 13px;
  line-height: 1.6;
}

.contact-info p strong {
  color: #0b3d5c;
}

.map-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border: 1px solid #e1e8ef;
  min-height: 340px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 12px;
  display: block;
}

/* ================= FOOTER ================= */

footer {
  background: #041c2c;
  color: white;
  text-align: center;
  padding: 28px;
  margin-top: 35px;
}

footer p {
  font-size: 14px;
  color: #e6eef6;
}

/* ================= RESPONSIVE DESIGN ================= */

@media (max-width: 1200px) {
  .faculty-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .placement-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .alumni-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lab-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-list-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .placement-card img {
    height: 200px;
  }

  .alumni-photo-box {
    height: 230px;
  }

  .lab-photo-box {
    height: 210px;
  }
}

@media (max-width: 1000px) {
  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .director-box,
  .hod-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .director-box img,
  .hod-box img {
    margin: auto;
  }

  .director-message p,
  .hod-message p {
    text-align: left;
  }

  .placement-grid,
  .alumni-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recruiter-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lab-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .map-box iframe {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 25px;
  }

  header p {
    font-size: 15px;
  }

  nav a {
    margin: 5px;
    font-size: 14px;
  }

  nav a.apply-now-link {
    font-size: 14px;
    padding: 8px 14px;
  }

  .hero {
    padding: 80px 18px;
    min-height: 360px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  section {
    padding: 38px 6%;
    margin: 20px 12px;
  }

  section h2 {
    font-size: 25px;
  }

  .placement-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placement-grid,
  .alumni-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placement-card img {
    height: 220px;
  }

  .alumni-photo-box {
    height: 250px;
  }

  .lab-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info {
    padding: 24px;
  }

  .contact-info p {
    font-size: 15.5px;
  }

  .map-box iframe {
    min-height: 290px;
  }
}

@media (max-width: 600px) {
  .faculty-grid,
  .placement-grid,
  .alumni-grid,
  .placement-stats,
  .lab-feature-grid,
  .lab-list-grid {
    grid-template-columns: 1fr;
  }

  .recruiter-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .recruiter-logo-card {
    height: 64px;
  }

  .recruiter-logo-card img {
    max-width: 95px !important;
    max-height: 38px !important;
  }

  .profile-round-button {
    right: -30px;
    width: 52px;
    height: 52px;
    font-size: 8.8px;
  }

  .placement-card img {
    height: 260px;
  }

  .alumni-photo-box {
    height: 280px;
  }

  .lab-photo-box {
    height: 270px;
  }

  .faculty-card h3 {
    font-size: 20px;
  }

  .faculty-card p {
    font-size: 13.5px;
  }

  .faculty-card p:last-child {
    font-size: 12.5px;
    white-space: normal;
  }

  .contact-container {
    gap: 22px;
  }

  .map-box {
    min-height: 280px;
  }
}
