/* --- Custom Footer matching the Screenshot Structure, but Brand Colors --- */

.custom-footer {
  background-color: #1A041A; /* Brand deep plum-black */
  color: #D6C2D6; /* Brand soft lavender-gray text */
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-family: var(--font-secondary);
  border-top: 3px solid var(--primary-purple); /* Bring back the top border */
}

.custom-footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr; /* 4 columns */
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Headings */
.footer-heading {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-teal); /* Brand teal */
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Column 1: Logo, Bio, Socials --- */
.footer-col-bio {
  display: flex;
  flex-direction: column;
}

.footer-logo-block {
  margin-bottom: 1.5rem;
}

.logo-box {
  background-color: var(--primary-purple); /* Brand purple */
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-icon {
  font-size: 2.5rem;
  color: var(--bg-white);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  color: var(--bg-white);
}

.logo-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-degree, .logo-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-bio-text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #D6C2D6; /* Brand lavender */
  margin-bottom: 2rem;
}

.footer-social-boxes {
  display: flex;
  gap: 10px;
}

.social-box {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.06); /* Subtle brand box */
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-box:hover {
  background-color: var(--accent-teal); /* Brand hover */
  color: #1A041A;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(72, 192, 192, 0.3);
}

/* --- Columns 2 & 3: Lists --- */
.custom-footer-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-footer-list a {
  color: #D6C2D6;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.custom-footer-list a i {
  font-size: 0.8rem;
  color: rgba(72, 192, 192, 0.5); /* Faint teal bullet */
  transition: var(--transition-fast);
}

.custom-footer-list a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.custom-footer-list a:hover i {
  color: var(--accent-teal);
  transform: translateX(2px);
}

/* --- Column 4: Recent Posts --- */
.footer-col-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recent-post-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.recent-post-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recent-post-info {
  display: flex;
  flex-direction: column;
}

.recent-post-date {
  color: var(--accent-teal); /* Brand teal date */
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.recent-post-title {
  color: var(--bg-white);
  font-family: var(--font-primary); /* Swapped back from serif to brand font */
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.recent-post-title:hover {
  color: var(--accent-teal);
}

/* --- Bottom Copyright Bar --- */
.custom-footer-bottom {
  max-width: 800px; /* Constrain width to look like a centered box */
  margin: 0 auto;
  background-color: #f4f6f9; /* Light grayish white background */
  padding: 1.25rem 2rem;
  text-align: center;
  border-radius: 2px;
}

.custom-footer-bottom p {
  margin: 0;
  font-family: 'Times New Roman', Times, serif; /* Serif font as seen in screenshot */
  font-size: 0.85rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-footer-bottom a {
  color: var(--primary-purple); /* Brand purple for agency link */
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.custom-footer-bottom a:hover {
  color: var(--accent-teal); /* Hover to teal */
}

/* --- Floating Elements --- */
.whatsapp-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 80px;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-chat-widget:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.whatsapp-chat-widget i {
  font-size: 1.35rem;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-purple);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-teal);
  transform: translateY(-3px);
  color: #1A041A;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .custom-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .custom-footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .recent-post-item {
    align-items: flex-start;
  }
}
