body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: 'Poppins', Arial, sans-serif;
}

html, body {
  background: #fff;
  overflow-x: hidden;
}

.footer {
  width: 100vw;
  background: #274472;
  color: #fff;
  padding: 0;
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  position: relative;
  z-index: 10; /* Ensure footer stays above hero */
  /* border-radius: 18px 18px 0 0; */
  /* Add top border-radius for rounded corners */
  box-shadow: 0 0 0 1px #274472;
  min-height: 240px;
}

.footer__container {
  max-width: 100vw;
  width: 100vw;
  margin: 0;
  padding: 16px 40px 0px 40px;
  gap: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.footer__left {
  width: 370px;
  min-width: 370px;
  max-width: 370px;
  padding: 12px 0px 0 0;
  color: #274472;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  min-height: 162px;
  margin-left: 100px;
  margin-right: 0;
  box-shadow: 0 2px 12px rgba(39,68,114,0.04);
  /* background: #fff; */
  /* Ensure IITGNRP box is white */
  height: 100%;
  padding-left: 0;
}

.footer__logo-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 12px 16px;
  width: auto; /* Auto width to fit content */
  min-width: 220px; /* Minimum width for proper layout */
  max-width: 280px; /* Maximum width to prevent excessive expansion */
  min-height: 70px; /* Reduced height */
  gap: 12px;
  margin-bottom: 16px;
  /* Ensure rectangular shape and prevent shrinking */
  flex-shrink: 0;
  flex-grow: 0;
}
.footer__logo {
  width: 50px; /* Reduced from 65px */
  height: 50px; /* Reduced from 90px */
  object-fit: contain;
  border-radius: 8px;
  background: white;
  flex-shrink: 0;
}

/* Brand text wrapper */
.footer__logo-box > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.footer__brand-main {
  font-size: 24px; /* Reduced from 32px */
  font-weight: 700;
  color: #D2042D;
  background: #fff;
  padding: 4px 6px; /* Reduced padding */
  border-radius: 6px;
  display: inline-block;
  line-height: 1.1;
  white-space: nowrap;
}

.footer__brand-sub {
  font-size: 14px; /* Reduced from 18px */
  font-weight: 600;
  background: #fff;
  padding: 0 6px; /* Reduced padding */
  line-height: 1.1;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
  white-space: nowrap;
}

.footer__desc {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  width: 334px;
  color: #fff;
  background: #274472;
  margin: 12px 0 18px 0;
  opacity: 1;
  display: block;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  height: auto;
}
.footer__cta {
  display: inline-block;
  background: #274472;
  color: #E63946;
  border: 3px solid #E63946;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  padding: 8px 32px;
  text-decoration: none;
  margin-top: 16px;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
}
.footer__cta:hover {
  background: #D2042D;
  color: #fff;
}
.footer__center, .footer__right {
  background: #274472;
  border: none;
  border-radius: 0;
  padding: 0 40px 0 0;
  color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.footer__center {
  width: 188px;
  min-width: 150px;
  max-width: 188px;
  height: 286px;
  margin-right: 0;
}
.footer__right {
  width: 206px;
  min-width: 150px;
  max-width: 206px;
  height: 241px;
}
.footer__contact-col {
  width: 340px;
  min-width: 200px;
  max-width: 340px;
  height: 245px;
  padding-left: 0;
  padding-right: 0;
  background: #274472;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
  height: 100%;
}
.footer__contact-col .footer__contact {
  white-space: pre-line;
  /* Allows line breaks in address */
}

.footer__contact-col .footer__contact {
  display: block;
  max-width: 310px;
}

.footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  white-space: normal;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 24px;
}
.footer__contact-row img, .footer__contact-row svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__contact-row span, .footer__contact-row a {
  display: inline-block;
  vertical-align: top;
  color: #fff;
  font-size: 16px;
  font-family: 'Poppins', Arial, sans-serif;
  text-decoration: none;
  word-break: break-word;
  white-space: normal;
  flex: 1;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Keep phone number on one line */
.footer__contact-row a[href^="tel:"] {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Keep email on one line */
.footer__contact-row a[href^="mailto:"] {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.footer__heading {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.footer__center .footer__heading, .footer__right .footer__heading {
  color: #fff;
  white-space: nowrap;
}
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.footer__links li {
  margin-bottom: 20px;
  white-space: nowrap;
}
.footer__links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: #D2042D;
}
.footer__contact {
  font-size: 17px;
  margin-bottom: 18px;
  color: #fff;
  line-height: 1.5;
}
.footer__contact a {
  color: #fff;
  text-decoration: underline;
}
.footer__contact-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 2px;
  flex-shrink: 0;
}
.footer__socials {
  margin-left:-20px;
  display: flex;
  margin-top: auto;
  align-items: flex-end;
  gap: 0px;
}
.footer__socials img,
.footer__social-icon-bg {
  width: 60px;
  height: 55px;
  background:transparent;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(39,68,114,0.08);
  object-fit: contain;
  transition: box-shadow 0.2s, border 0.2s;
  display: inline-block;
}
.footer__socials img:hover,
.footer__social-icon-bg:hover {
  box-shadow: 0 4px 16px rgba(210,4,45,0.15);
}
.footer__divider, .footer__divider-line, .footer__divider-x {
  display: none !important;
}
.footer__bottom {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.1em;
  vertical-align: middle;
  opacity: 1;
  padding: 8px 0 35px 0;
  background: #274472;
  border-radius: 0 0 10px 10px;
  margin-top: 8px;
  height: 34px;
}

/* Large Screen Optimizations */
@media (min-width: 1600px) {
  .footer__container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 50px 0px 50px;
    gap: 60px;
  }
  
  .footer__socials img,
  .footer__social-icon-bg {
    width: 70px;
    height: 65px;
    padding: 10px;
  }
  
  .footer__contact-row span, .footer__contact-row a {
    font-size: 18px;
  }
  
  .footer__contact-row img, .footer__contact-row svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .footer__container {
    padding: 20px 30px 0 30px;
    gap: 30px;
    max-width: 100%;
    overflow: hidden;
  }
  
  .footer__left {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
  }
  
  .footer__center, .footer__right {
    width: 180px;
    min-width: 160px;
    max-width: 180px;
  }
  
  .footer__contact-col {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
  
  .footer__socials {
    gap: 6px;
    margin-left: 0;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: flex-start;
  }
  
  .footer__socials img,
  .footer__social-icon-bg {
    width: 50px;
    height: 46px;
    padding: 6px;
  }
  
  .footer__contact-row span, .footer__contact-row a {
    font-size: 15px;
    line-height: 1.3;
  }
}

@media (max-width: 1200px) {
  .footer__container {
    flex-wrap: wrap;
    padding: 32px 8px 0 8px;
    gap: 60px;
  }
  .footer__left, .footer__center, .footer__right, .footer__contact-col {
    min-width: 200px;
    max-width: 100%;
  }
  .footer__socials {
    gap: 4px;
    margin-left: 0;
    flex-shrink: 1;
    flex-wrap: nowrap;
    width: auto;
  }
  .footer__socials img,
  .footer__social-icon-bg {
    width: 45px;
    height: 42px;
    padding: 6px;
    min-width: 32px;
    min-height: 32px;
    box-sizing: border-box;
  }
  .footer__contact-col {
    max-width: 220px;
    min-width: 120px;
    width: auto;
  }
}
@media (max-width: 1200px) {
  .footer__container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer__left, .footer__center, .footer__right, .footer__contact-col {
    min-width: 220px;
    padding: 16px 8px;
  }
}
@media (max-width: 1100px) {
  .footer__container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 4vw 0 4vw;
  }
  .footer__left, .footer__center, .footer__right, .footer__contact-col {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    height: auto;
  }
  .footer__socials {
    width: 100%;
    justify-content: flex-start;
    gap: 2vw;
  }
  .footer__socials img,
  .footer__social-icon-bg {
    width: 38px;
    height: 36px;
    padding: 4px;
  }
}
@media (max-width: 1000px) {
  .footer__container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 8vw 0 8vw;
  }
  .footer__left, .footer__center, .footer__right, .footer__contact-col {
    min-width: unset;
    width: 100%;
    margin-bottom: 12px;
    padding: 16px 0;
  }
}
@media (max-width: 900px) {
  .footer {
    min-height: 120px;
    padding: 0 0 16px 0;
  }
  .footer__container {
    flex-direction: column;
    padding: 12px 8vw 0 8vw;
    gap: 16px;
    align-items: flex-start;
  }
  .footer__left, .footer__right, .footer__center {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    font-size: 15px;
  }
  .footer__logo-box {
    width: auto;
    min-width: 200px;
    max-width: 95vw;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 12px;
    min-height: 60px;
  }
  .footer__logo {
    width: 40px;
    height: 40px;
  }
  .footer__contact-row span, .footer__contact-row a {
    font-size: 14px;
    line-height: 1.3;
  }
  
  .footer__contact-row img, .footer__contact-row svg {
    width: 18px;
    height: 18px;
  }
  .footer__copyright {
    font-size: 13px;
    text-align: center;
    width: 100%;
  }
  .footer__brand-main {
    font-size: 20px;
    padding: 4px;
  }
  .footer__brand-sub {
    font-size: 14px;
    padding: 0 4px;
  }
}
@media (max-width: 700px) {
  .footer__left, .footer__right, .footer__center {
    font-size: 12px;
  }
  .footer__copyright {
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .footer__container {
    padding: 24px 2vw 0 2vw;
  }
  .footer__logo {
    width: 36px; /* Reduced from 56px to maintain compact design */
    height: 36px;
  }
  .footer__brand-main {
    font-size: 18px; /* Reduced from 22px */
  }
  .footer__brand-sub {
    font-size: 12px; /* Reduced from 14px */
  }
  .footer__heading {
    font-size: 18px;
  }
  .footer__bottom {
    font-size: 14px;
    padding: 16px 0 8px 0;
  }
  .footer__socials img {
    width: 32px;
    height: 32px;
  }
  .footer__socials img,
  .footer__social-icon-bg {
    width: 48px;
    height: 44px;
    padding: 6px;
    min-width: 32px;
    min-height: 32px;
  }
}

/* Ultra small mobile devices (350px and below) */
@media (max-width: 350px) {
  .footer {
    padding: 20px 0 16px 0;
  }
  
  .footer__container {
    padding: 16px 1vw 0 1vw;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer__top {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .footer__left, .footer__center, .footer__right {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .footer__logo {
    width: 48px;
    height: auto;
  }
  
  .footer__brand-main {
    font-size: 18px;
    line-height: 1.2;
  }
  
  .footer__brand-sub {
    font-size: 12px;
    line-height: 1.2;
  }
  
  .footer__heading {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .footer__link {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  
  .footer__bottom {
    font-size: 11px;
    padding: 12px 0 6px 0;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
  
  .footer__socials {
    gap: 4px;
    justify-content: center;
  }
  
  .footer__socials img,
  .footer__social-icon-bg {
    width: 28px;
    height: 28px;
    padding: 4px;
    min-width: 28px;
    min-height: 28px;
  }
  
  .footer__copyright {
    font-size: 10px;
    text-align: center;
  }
}
@media (min-width: 1700px) {
  .footer {
    min-height: 350px;
    padding-bottom: 60px;
  }
  .footer__container {
    padding: 40px 60px 0px 60px;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
  }
  .footer__left {
    width: 450px;
    min-width: 450px;
    max-width: 450px;
    margin-left: 0;
  }
  .footer__center {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
  }
  .footer__right {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
  .footer__contact-col {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
  }
  .footer__left, .footer__right, .footer__center, .footer__copyright {
    font-size: 20px;
    line-height: 1.4;
  }
  .footer__link {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .footer__heading {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .footer__logo-box {
    min-width: 280px;
    max-width: 320px;
    padding: 16px 20px;
  }
  .footer__brand-main {
    font-size: 22px;
  }
  .footer__brand--subtitle {
    font-size: 18px;
  }
}
@media (min-width: 2000px) {
  .footer {
    min-height: 400px;
    padding-bottom: 80px;
  }
  .footer__container {
    padding: 50px 80px 0px 80px;
    gap: 80px;
    max-width: 1800px;
    margin: 0 auto;
  }
  .footer__left {
    width: 550px;
    min-width: 550px;
    max-width: 550px;
    margin-left: 0;
  }
  .footer__center {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }
  .footer__right {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
  }
  .footer__contact-col {
    width: 450px;
    min-width: 450px;
    max-width: 450px;
  }
  .footer__left, .footer__right, .footer__center, .footer__copyright {
    font-size: 24px;
    line-height: 1.5;
  }
  .footer__link {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .footer__heading {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .footer__logo-box {
    min-width: 320px;
    max-width: 380px;
    padding: 20px 24px;
  }
  .footer__brand-main {
    font-size: 26px;
  }
  .footer__brand--subtitle {
    font-size: 20px;
  }
}

/* Ultra Large screens 2400px+ */
@media (min-width: 2400px) {
  .footer {
    min-height: 480px;
    padding-bottom: 100px;
  }
  .footer__container {
    padding: 60px 100px 0px 100px;
    gap: 100px;
    max-width: 2200px;
    margin: 0 auto;
  }
  .footer__left {
    width: 650px;
    min-width: 650px;
    max-width: 650px;
  }
  .footer__center {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
  }
  .footer__right {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
  }
  .footer__contact-col {
    width: 520px;
    min-width: 520px;
    max-width: 520px;
  }
  .footer__left, .footer__right, .footer__center, .footer__copyright {
    font-size: 28px;
    line-height: 1.5;
  }
  .footer__link, .footer__links a {
    font-size: 26px;
    margin-bottom: 12px;
  }
  .footer__heading {
    font-size: 36px;
    margin-bottom: 24px;
  }
  .footer__logo-box {
    min-width: 380px;
    max-width: 450px;
    padding: 24px 28px;
  }
  .footer__logo {
    width: 70px;
    height: 70px;
  }
  .footer__brand-main {
    font-size: 32px;
  }
  .footer__brand-sub {
    font-size: 24px;
  }
  .footer__desc {
    font-size: 22px;
    line-height: 1.6;
  }
  .footer__cta {
    font-size: 20px;
    padding: 14px 28px;
  }
  .footer__contact-row span, .footer__contact-row a {
    font-size: 20px;
  }
  .footer__contact-row img {
    width: 26px;
    height: 26px;
  }
  .footer__social-icon-bg {
    width: 44px;
    height: 44px;
  }
  .footer__bottom {
    font-size: 18px;
    padding: 20px;
  }
}

/* Extra Ultra Large screens 2800px+ */
@media (min-width: 2800px) {
  .footer {
    min-height: 560px;
    padding-bottom: 120px;
  }
  .footer__container {
    padding: 80px 120px 0px 120px;
    gap: 120px;
    max-width: 2600px;
    margin: 0 auto;
  }
  .footer__left {
    width: 780px;
    min-width: 780px;
    max-width: 780px;
  }
  .footer__center {
    width: 420px;
    min-width: 420px;
    max-width: 420px;
  }
  .footer__right {
    width: 450px;
    min-width: 450px;
    max-width: 450px;
  }
  .footer__contact-col {
    width: 620px;
    min-width: 620px;
    max-width: 620px;
  }
  .footer__left, .footer__right, .footer__center, .footer__copyright {
    font-size: 34px;
    line-height: 1.5;
  }
  .footer__link, .footer__links a {
    font-size: 30px;
    margin-bottom: 16px;
  }
  .footer__heading {
    font-size: 44px;
    margin-bottom: 30px;
  }
  .footer__logo-box {
    min-width: 450px;
    max-width: 540px;
    padding: 30px 36px;
  }
  .footer__logo {
    width: 90px;
    height: 90px;
  }
  .footer__brand-main {
    font-size: 40px;
  }
  .footer__brand-sub {
    font-size: 30px;
  }
  .footer__desc {
    font-size: 26px;
    line-height: 1.6;
  }
  .footer__cta {
    font-size: 24px;
    padding: 18px 36px;
  }
  .footer__contact-row span, .footer__contact-row a {
    font-size: 24px;
  }
  .footer__contact-row img {
    width: 32px;
    height: 32px;
  }
  .footer__social-icon-bg {
    width: 56px;
    height: 56px;
  }
  .footer__bottom {
    font-size: 22px;
    padding: 28px;
  }
}

.footer__brand--subtitle {
  font-size: 22px;
  color: #274472;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
}