/* --- Footer Grid Layout Adjustment --- */
/* --- Footer Grid Layout Adjustment --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.3fr 1.1fr; /* Updated to 4 elegantly proportioned columns */
  gap: 30px;
}
/* --- Beautified Social Icons Styling --- */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(227, 17, 29, 0.4);
}

.socials svg {
  display: block;
}

/* --- Quick Links 2-Column Grid Styling --- */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links-grid li a {
  transition: color 0.2s ease;
}

.quick-links-grid li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Responsive Layout Rules --- */
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
  }
}
/* Practo Label Formatting */
.socials a.practo-btn {
  font-weight: 800;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Individual Brand Hover Colors */
.socials a[aria-label="Facebook"]:hover { background-color: #1877F2; border-color: #1877F2; }
.socials a[aria-label="Twitter"]:hover { background-color: #000000; border-color: #000000; }
.socials a[aria-label="Instagram"]:hover { background-color: #E4405F; border-color: #E4405F; }
.socials a[aria-label="YouTube"]:hover { background-color: #FF0000; border-color: #FF0000; }

/* Practo Blue Hover Effect */
.socials a[aria-label="Practo"]:hover { 
  background-color: #28328c; 
  border-color: #28328c; 
  box-shadow: 0 6px 14px rgba(40, 50, 140, 0.4);
}

/* --- Beautified Contact Us Section --- */
.footer-contact-enhanced {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Space between each contact item */
}

.footer-contact-enhanced li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Stylish Boxed Icons */
.contact-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12); /* Soft transparent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px; /* Modern squared look with rounded corners */
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-icon:hover {
  background: var(--red); /* Uses your existing global red variable */
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 17, 29, 0.3);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.2;
  fill: none;
}

/* Bold Headings and Clean Typography */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-details strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.contact-details span, 
.contact-details a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.desktop-hidden {
  display: block;
  margin: 0 0 12px;
}

/* Responsive Hide for the Spacer */
@media (max-width: 820px) {
  .desktop-hidden {
    display: none;
  }
}