/**
 * Wayanad News Daily - Master Custom Footer Stylesheet
 * Responsive, Modern, Premium News Portal Footer
 */

/* Universal Font Application */
.wnd-master-footer,
.wnd-master-footer * {
  font-family: 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-sizing: border-box;
}

/* ==========================================================================
   MASTER FOOTER CONTAINER
   ========================================================================== */
.wnd-master-footer {
  background: #080d1a;
  background: linear-gradient(180deg, #0f172a 0%, #070b14 100%);
  color: #94a3b8;
  position: relative;
  margin-top: 40px;
  border-top: 3px solid #dc2626;
  font-size: 14px;
  line-height: 1.6;
}

.wnd-master-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wnd-master-footer a:hover {
  color: #ffffff;
}

/* ==========================================================================
   1. TOP NEWSLETTER / SUBSCRIBE BAR
   ========================================================================== */
.wnd-footer-newsletter-bar {
  background: #0b1329;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.wnd-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wnd-newsletter-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wnd-newsletter-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 22px;
  flex-shrink: 0;
}

.wnd-newsletter-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.wnd-newsletter-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.wnd-newsletter-form-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  width: 100%;
}

.wnd-newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wnd-newsletter-input:focus {
  border-color: #ef4444;
  background: rgba(255, 255, 255, 0.1);
}

.wnd-newsletter-btn {
  background: #dc2626;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.wnd-newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

/* ==========================================================================
   2. MAIN 4-COLUMN FOOTER WIDGET AREA
   ========================================================================== */
.wnd-footer-main {
  padding: 46px 0 34px;
}

.wnd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
}

.wnd-footer-col {
  display: flex;
  flex-direction: column;
}

.wnd-footer-col-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: 0.2px;
}

.wnd-footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: #dc2626;
  border-radius: 2px;
}

/* Column 1: Brand Info */
.wnd-footer-brand-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.wnd-footer-brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.wnd-footer-about-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 18px;
}

.wnd-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.wnd-footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.wnd-footer-contact-list li svg {
  width: 15px;
  height: 15px;
  fill: #ef4444;
  flex-shrink: 0;
}

/* Social Media Pill Buttons */
.wnd-footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wnd-footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1 !important;
  transition: all 0.2s ease;
}

.wnd-footer-social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

.wnd-footer-social-btn.wnd-yt:hover { background: #ff0000; border-color: #ff0000; }
.wnd-footer-social-btn.wnd-fb:hover { background: #1877f2; border-color: #1877f2; }
.wnd-footer-social-btn.wnd-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.wnd-footer-social-btn.wnd-wa:hover { background: #25d366; border-color: #25d366; }
.wnd-footer-social-btn.wnd-tg:hover { background: #0088cc; border-color: #0088cc; }
.wnd-footer-social-btn.wnd-x:hover  { background: #000000; border-color: #334155; }

/* Columns 2 & 3: Category Links */
.wnd-footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wnd-footer-links-list li {
  margin-bottom: 9px;
}

.wnd-footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.wnd-footer-links-list a::before {
  content: "›";
  color: #dc2626;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.wnd-footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Column 4: Recent / Trending Posts in Footer */
.wnd-footer-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wnd-footer-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wnd-footer-post-thumb-link {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  display: block;
}

.wnd-footer-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  display: block;
}

.wnd-footer-post-item:hover .wnd-footer-post-thumb {
  transform: scale(1.08);
}

.wnd-footer-post-content {
  flex: 1;
  min-width: 0;
}

.wnd-footer-post-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.wnd-footer-post-title a {
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wnd-footer-post-title a:hover {
  color: #f87171;
}

.wnd-footer-post-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   3. MIDDLE TOPICS / TAGS BAR
   ========================================================================== */
.wnd-footer-tags-bar {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
}

.wnd-footer-tags-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wnd-footer-tags-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wnd-footer-tags-label span {
  color: #ef4444;
}

.wnd-footer-tag-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1 !important;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.wnd-footer-tag-pill:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. BOTTOM BAR: COPYRIGHT, LEGAL LINKS & BACK TO TOP
   ========================================================================== */
.wnd-footer-bottom {
  background: #050811;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}

.wnd-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wnd-footer-copy-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wnd-footer-copy {
  color: #64748b;
  margin: 0;
  font-size: 12.5px;
}

.wnd-footer-dev {
  color: #64748b;
  margin: 0;
  font-size: 11.5px;
}

.wnd-footer-dev a {
  color: #f59e0b !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.wnd-footer-dev a:hover {
  color: #fbbf24 !important;
}

.wnd-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.wnd-footer-legal-links a {
  color: #94a3b8;
  font-size: 12.5px;
}

.wnd-footer-legal-links a:hover {
  color: #ffffff;
}

.wnd-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.wnd-back-to-top-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE FOOTER STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .wnd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .wnd-newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .wnd-newsletter-form-wrap {
    max-width: 100%;
  }

  .wnd-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .wnd-footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .wnd-footer-legal-links {
    justify-content: center;
  }
}
