/* ===============================
   FOOTER MAIN
================================ */

.clinic-footer {
    background: linear-gradient(180deg, #0d1f38 0%, #0a1828 100%);
    color: #ffffff;
    border-top: 4px solid #d4af37;
    font-size: 14px;
    overflow: hidden;
    position: relative;
  }
  
  /* Subtle background texture overlay */
  .clinic-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle at 20% 50%,
        rgba(212, 175, 55, 0.04) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 20%,
        rgba(212, 175, 55, 0.03) 0%,
        transparent 40%
      );
    pointer-events: none;
    z-index: 0;
  }
  
  .footer-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 60px 44px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }
  
  /* ===============================
     SCROLL-TRIGGERED FADE-IN ANIMATION
  ================================ */
  
  @keyframes footerFadeUp {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .footer-animate {
    opacity: 0;
    animation: footerFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
    animation-play-state: paused;
  }
  
  .footer-animate.visible {
    animation-play-state: running;
  }
  
  @media (prefers-reduced-motion: reduce) {
    .footer-animate {
      opacity: 1;
      animation: none;
    }
  }
  
  /* ===============================
     BRAND ROW
  ================================ */
  
  .footer-brand-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
    padding: 0;
  }
  
  /* Logo */
  .footer-logo {
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Strong white glow blob behind logo */
  .footer-logo::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.25) 35%,
      rgba(255, 255, 255, 0.08) 60%,
      transparent 75%
    );
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: logoPulse 2.5s ease-in-out infinite;
  }
  
  @keyframes logoPulse {
    0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
    50%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1;    }
    100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
  }
  
  .footer-logo img {
    height: 115px;
    width: auto;
    filter: none;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
  }
  
  .footer-logo img:hover {
    transform: scale(1.05);
  }
  
  /* Description — justified alignment */
  .footer-description {
    flex: 1;
  }
  
  .footer-description p {
    color: #b0bbc8;
    line-height: 1.8;
    margin: 0;
    font-size: 14px;
    text-align: justify;
    text-justify: inter-word;
    letter-spacing: 0.01em;
  }
  
  .footer-description p strong {
    color: #d4af37;
    font-weight: 700;
  }
  
  /* ===============================
     HORIZONTAL DIVIDER
  ================================ */
  
  .footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(212, 175, 55, 0.5),
      transparent
    );
    margin-bottom: 36px;
  }
  
  /* ===============================
     GRID
  ================================ */
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.8fr 1fr;
    gap: 0;
    align-items: start;
  }
  
  /* ===============================
     COLUMNS — equal inner spacing
  ================================ */
  
  .footer-column {
    padding: 0 30px;
    box-sizing: border-box;
  }
  
  .footer-column:first-child {
    padding-left: 0;
  }
  
  .footer-column:last-child {
    padding-right: 0;
  }
  
  /* ===============================
     TITLES
  ================================ */
  
  .footer-title {
    color: #d4af37;
    font-size: 15px;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  /* Full underline base */
  .footer-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(212, 175, 55, 0.15);
  }
  
  /* Animated gold accent line */
  .footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #d4af37, #f0d060);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .clinic-footer:hover .footer-title::after {
    width: 40px;
  }
  
  /* ===============================
     NAVIGATION LINKS
  ================================ */
  
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  .footer-column ul li a {
    color: #9aa5b4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    font-size: 13.5px;
    transition: color 0.25s ease, gap 0.25s ease, letter-spacing 0.25s ease;
  }
  
  /* Arrow indicator on hover */
  .footer-column ul li a::before {
    content: "›";
    color: #d4af37;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-right: 0px;
  }
  
  .footer-column ul li a:hover {
    color: #d4af37;
    gap: 6px;
    letter-spacing: 0.01em;
  }
  
  .footer-column ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
    margin-right: 4px;
  }
  
  /* ===============================
     EXPERTISE BULLETS
  ================================ */
  
  .expertise-list li {
    color: #9aa5b4;
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    font-size: 13.5px;
    transition: color 0.25s ease, padding-left 0.25s ease;
  }
  
  .expertise-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #d4af37;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .expertise-list li:hover {
    color: #d4af37;
    padding-left: 20px;
  }
  
  .expertise-list li:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
  }
  
  /* ===============================
     CONTACT
  ================================ */
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #9aa5b4;
    font-size: 13.5px;
    line-height: 1.6;
  }
  
  .contact-item i {
    color: #d4af37;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 14px;
  }
  
  /* Email box */
  .email-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    color: #c8d0da;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.01em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
      box-shadow 0.3s ease;
  }
  
  .email-box i {
    color: #d4af37;
  }
  
  .email-box:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12);
  }
  
  /* ===============================
     LOGIN BUTTON
  ================================ */
  
  .doctor-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 50%, #bfa020 100%);
    color: #0c1c35;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }
  
  .doctor-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
    filter: brightness(1.1);
  }
  
  .doctor-login:active {
    transform: translateY(0px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  }
  
  /* ===============================
     SOCIAL ICON GRID
  ================================ */
  
  .social-grid {
    display: grid;
    grid-template-columns: repeat(2, 64px);
    gap: 14px;
    margin-top: 8px;
  }
  
  .social-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #aab4c2;
    text-decoration: none;
    font-size: 22px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease,
      box-shadow 0.3s ease;
  }
  
  /* Shine sweep on hover */
  .social-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );
    transition: left 0.4s ease;
  }
  
  .social-box:hover::before {
    left: 150%;
  }
  
  /* Gold fill background on hover */
  .social-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4af37, #c9a227);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
  }
  
  .social-box i {
    position: relative;
    z-index: 1;
  }
  
  .social-box:hover {
    color: #0c1c35;
    border-color: #d4af37;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
  }
  
  .social-box:hover::after {
    opacity: 1;
  }
  
  /* ===============================
     COPYRIGHT BAR
  ================================ */
  
  .footer-bottom {
    background: #07111f;
    padding: 14px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    position: relative;
    z-index: 1;
  }
  
  .footer-bottom p {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    text-align: right;
    color: #5a6472;
    font-size: 12.5px;
    letter-spacing: 0.03em;
  }
  
  .footer-bottom p span {
    color: #d4af37;
  }
  
  
  
  
  /* ===============================
     DESKTOP — hide inline social duplicate
  ================================ */
  
  .footer-social-inline {
    display: none;
  }
  
  .footer-inner-row {
    display: block;
  }
  
  
  /* ===============================
     TABLET — max-width: 1024px
  ================================ */
  
  @media (max-width: 1024px) {
  
    .footer-container {
      padding: 44px 40px 36px;
    }
  
    .footer-brand-row {
      gap: 28px;
    }
  
    .footer-logo img {
      height: 95px;
    }
  
    .footer-description p {
      font-size: 13.5px;
      line-height: 1.75;
      text-align: justify;
    }
  
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 0;
      row-gap: 32px;
    }
  
    .footer-column {
      padding: 0 20px;
    }
  
    .footer-column:first-child {
      padding-left: 0;
    }
  
    .footer-column:last-child {
      padding-right: 0;
    }
  
    .footer-column:nth-child(3) {
      grid-column: 1 / -1;
      padding: 0;
      border-top: 1px solid rgba(212, 175, 55, 0.12);
      padding-top: 24px;
    }
  
    .footer-column:nth-child(4) {
      padding-right: 0;
    }
  
    .social-grid {
      grid-template-columns: repeat(4, 54px);
    }
  
    .footer-bottom {
      padding: 13px 40px;
    }
  
  }
  
  
  /* ===============================
     MOBILE LARGE — max-width: 768px
  ================================ */
  
  @media (max-width: 768px) {
  
    .clinic-footer {
      border-top: 3px solid #d4af37;
    }
  
    /* ---- CONTAINER ---- */
    .footer-container {
      padding: 30px 20px 26px;
    }
  
    /* ---- BRAND ROW ---- */
    .footer-brand-row {
      flex-direction: row;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 22px;
    }
  
    .footer-logo {
      flex-shrink: 0;
    }
  
    .footer-logo img {
      height: 70px;
    }
  
    /* Full description — NO line clamp */
    .footer-description p {
      font-size: 12.5px;
      line-height: 1.7;
      text-align: justify;
      overflow: visible;
      display: block;
      -webkit-line-clamp: unset;
      -webkit-box-orient: unset;
    }
  
    .footer-divider {
      margin-bottom: 22px;
    }
  
    /* ---- GRID: 2 columns top, contact full width bottom ---- */
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 0;
      row-gap: 0;
    }
  
    /* Col 1: Navigation */
    .footer-column:nth-child(1) {
      padding: 0 12px 20px 0;
      border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
  
    /* Col 2: Expertise */
    .footer-column:nth-child(2) {
      padding: 0 0 20px 12px;
      border-bottom: 1px solid rgba(212, 175, 55, 0.1);
      border-left: 1px solid rgba(212, 175, 55, 0.1);
    }
  
    /* Col 3: Contact — full width */
    .footer-column:nth-child(3) {
      grid-column: 1 / -1;
      padding: 20px 0 0 0;
      border-top: none;
    }
  
    /* Col 4: Follow Us standalone — hidden on mobile */
    .footer-column:nth-child(4) {
      display: none;
    }
  
    /* ---- INNER ROW: contact + social stacked vertically ---- */
    .footer-inner-row {
      display: flex !important;
      flex-direction: column;       /* ✅ stacked so social gets full width */
      gap: 16px;
    }
  
    .footer-contact-left {
      width: 100%;
    }
  
    /* ---- INLINE SOCIAL — shown below contact ---- */
    .footer-social-inline {
      display: flex !important;
      flex-direction: column;
      align-items: flex-start;
    }
  
    .footer-social-inline .footer-title {
      text-align: left;
      white-space: nowrap;
    }
  
    /* 4 icons in a single row */
    .footer-social-inline .social-grid {
      display: grid;
      grid-template-columns: repeat(4, 46px);   /* ✅ 1 row, 4 columns */
      gap: 8px;
      margin-top: 6px;
    }
  
    .footer-social-inline .social-box {
      width: 46px;
      height: 46px;
      font-size: 17px;
      border-radius: 7px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(212, 175, 55, 0.25);
      color: #aab4c2;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      transition: background 0.3s ease, color 0.3s ease,
                  transform 0.3s ease, box-shadow 0.3s ease;
    }
  
    .footer-social-inline .social-box i {
      position: relative;
      z-index: 1;
    }
  
    .footer-social-inline .social-box::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #d4af37, #c9a227);
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 0;
    }
  
    .footer-social-inline .social-box:hover {
      color: #0c1c35;
      border-color: #d4af37;
      transform: translateY(-3px) scale(1.06);
      box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    }
  
    .footer-social-inline .social-box:hover::after {
      opacity: 1;
    }
  
    /* ---- TITLES ---- */
    .footer-title {
      font-size: 12.5px;
      margin-bottom: 12px;
      padding-bottom: 8px;
      letter-spacing: 0.05em;
    }
  
    /* ---- NAV LIST ---- */
    .footer-column ul li {
      margin-bottom: 7px;
    }
  
    .footer-column ul li a {
      font-size: 12.5px;
    }
  
    /* ---- EXPERTISE ---- */
    .expertise-list li {
      font-size: 12.5px;
      margin-bottom: 7px;
      padding-left: 13px;
    }
  
    /* ---- CONTACT ITEMS ---- */
    .contact-item {
      font-size: 12px;
      margin-bottom: 8px;
      line-height: 1.55;
    }
  
    .contact-item i {
      font-size: 13px;
    }
  
    /* Email + Login side by side */
    .email-box {
      margin-top: 10px;
      padding: 6px 10px;
      font-size: 12px;
    }
  
    .doctor-login {
      margin-top: 8px;
      margin-left: 8px;
      padding: 7px 13px;
      font-size: 12px;
    }
  
    /* ---- COPYRIGHT ---- */
    .footer-bottom {
      padding: 10px 20px;
    }
  
    .footer-bottom p {
      text-align: right;
      font-size: 11.5px;
    }
  
  }
  
  
  /* ===============================
     MOBILE SMALL — max-width: 480px
  ================================ */
  
  @media (max-width: 480px) {
  
    .footer-container {
      padding: 26px 16px 22px;
    }
  
    .footer-brand-row {
      gap: 12px;
      margin-bottom: 18px;
    }
  
    .footer-logo img {
      height: 60px;
    }
  
    .footer-description p {
      font-size: 12px;
      line-height: 1.65;
    }
  
    .footer-divider {
      margin-bottom: 18px;
    }
  
    .footer-column:nth-child(1) {
      padding: 0 10px 18px 0;
    }
  
    .footer-column:nth-child(2) {
      padding: 0 0 18px 10px;
    }
  
    .footer-column:nth-child(3) {
      padding-top: 18px;
    }
  
    .footer-inner-row {
      gap: 14px;
    }
  
    .footer-title {
      font-size: 12px;
      margin-bottom: 10px;
    }
  
    .footer-column ul li a,
    .expertise-list li {
      font-size: 11.5px;
    }
  
    .footer-column ul li {
      margin-bottom: 6px;
    }
  
    .expertise-list li {
      margin-bottom: 6px;
    }
  
    .contact-item {
      font-size: 11.5px;
      margin-bottom: 7px;
    }
  
    /* Email full width */
    .email-box {
      display: flex;
      width: 100%;
      box-sizing: border-box;
      font-size: 11.5px;
      padding: 6px 10px;
      margin-top: 8px;
    }
  
    /* Login full width below email */
    .doctor-login {
      display: flex;
      justify-content: center;
      width: 100%;
      box-sizing: border-box;
      margin-left: 0;
      margin-top: 8px;
      font-size: 11.5px;
      padding: 7px 12px;
    }
  
    /* 4 icons single row — slightly smaller */
    .footer-social-inline .social-grid {
      grid-template-columns: repeat(4, 42px);   /* ✅ fits small screens */
      gap: 7px;
    }
  
    .footer-social-inline .social-box {
      width: 42px;
      height: 42px;
      font-size: 15px;
    }
  
    .footer-bottom {
      padding: 9px 16px;
    }
  
    .footer-bottom p {
      font-size: 11px;
    }
  
  }
  