* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer-dark-bg {
  background: linear-gradient(135deg, #3e6084 0%, #26486d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: none;
}

.footer-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.footer-shape-1,
.footer-shape-2,
.footer-shape-3 {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.footer-shape-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.footer-shape-2 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: -75px;
  animation-delay: 2s;
}

.footer-shape-3 {
  width: 100px;
  height: 100px;
  bottom: -50px;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.footer-dark-bg .container {
  position: relative;
  z-index: 2;
}

.footer-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand-section {
  margin-bottom: 2rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.footer-brand-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.footer-newsletter .input-group {
  max-width: 300px;
}

.footer-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 25px 0 0 25px;
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: none;
}

.footer-newsletter button {
  background: #ffffff;
  color: #007bff;
  border: 1px solid #ffffff;
  border-radius: 0 25px 25px 0;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-newsletter button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Navigation Links */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.footer-contact-info {
  flex: 1;
}

.footer-contact-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact-value {
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
}

.footer-contact-arrow {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-arrow {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-social-icon {
  font-size: 1.2rem;
}

.footer-divider {
  border: none;
  margin: 2rem 0;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-company-name {
  color: #ffffff;
}

.footer-legal-links {
  justify-content: flex-end;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal-separator {
  color: rgba(255, 255, 255, 0.5);
}

.contact-section {
  margin-bottom: 4rem; 
}

.contact-logo {
  width: 100px;
  height: 100px;
}

/* ===== YNAB-style blog layout (LoNeX style) ===== */

/* Animation keyframes */
@keyframes blogFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blogWaveDraw {
  from {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes blogCardIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blogIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-intro-back,
  .blog-intro-icon,
  .blog-intro-heading,
  .blog-intro-subtitle,
  .blog-intro-wave,
  .blog-intro .blog-intro-cta {
    animation: none;
  }
  .blog-intro-icon i {
    animation: none;
  }
  .blog-card-grid > [class*="col-"] {
    opacity: 1;
    transform: none;
  }
  .blog-card-grid.blog-grid-visible > [class*="col-"] {
    animation: none;
  }
}

/* Intro section: Latest + newsletter */
.blog-intro {
  background: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
  padding: 2.5rem 0 2rem;
}

/* Intro staggered animations (run on load) */
.blog-intro-back {
  animation: blogFadeInUp 0.6s ease-out both;
}

.blog-intro-icon {
  animation: blogFadeInUp 0.6s ease-out 0.1s both;
}

.blog-intro-icon i {
  animation: blogIconPulse 2s ease-in-out 0.8s infinite;
}

.blog-intro-heading {
  animation: blogFadeInUp 0.6s ease-out 0.2s both;
}

.blog-intro-subtitle {
  animation: blogFadeInUp 0.6s ease-out 0.3s both;
}

.blog-intro-wave {
  animation: blogWaveDraw 0.8s ease-out 0.45s both;
}

.blog-intro .blog-intro-cta {
  animation: blogFadeInUp 0.6s ease-out 0.35s both;
}

.blog-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-intro-back:hover {
  color: var(--primary-color, #667eea) !important;
}

.blog-intro-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.blog-intro-heading {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark, #1a2236);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.blog-intro-subtitle {
  font-size: 1.1rem;
  color: var(--text-light, #666);
  margin-bottom: 0;
}

.blog-intro-wave {
  margin-top: 1.5rem;
  height: 6px;
  width: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6'%3E%3Cpath fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' d='M0 3 Q30 0 60 3 T120 3'/%3E%3C/svg%3E") no-repeat center;
  background-size: 120px 6px;
}

.blog-intro-cta {
  border-width: 2px;
  white-space: nowrap;
}

.blog-intro-cta:hover {
  background: var(--primary-color, #667eea);
  color: #fff !important;
  border-color: var(--primary-color, #667eea);
}

@media (max-width: 767px) {
  .blog-intro .text-md-end {
    text-align: center !important;
  }
  .blog-intro-cta {
    width: 100%;
  }
}

/* Blog grid: 3-column cards */
.blog-grid-section {
  background: linear-gradient(180deg, #f8f9fc 0%, #f2f3f8 50%, #f8f9fc 100%);
  position: relative;
}

.blog-grid-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(102, 126, 234, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.blog-card-grid .blog-grid-card {
  border-radius: 14px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* Card staggered entrance (when grid is in view) */
.blog-card-grid > [class*="col-"] {
  opacity: 0;
  transform: translateY(32px);
}

.blog-card-grid.blog-grid-visible > [class*="col-"] {
  animation: blogCardIn 0.6s ease-out forwards;
}

.blog-card-grid.blog-grid-visible > [class*="col-"]:nth-child(1) { animation-delay: 0.08s; }
.blog-card-grid.blog-grid-visible > [class*="col-"]:nth-child(2) { animation-delay: 0.16s; }
.blog-card-grid.blog-grid-visible > [class*="col-"]:nth-child(3) { animation-delay: 0.24s; }
.blog-card-grid.blog-grid-visible > [class*="col-"]:nth-child(4) { animation-delay: 0.32s; }
.blog-card-grid.blog-grid-visible > [class*="col-"]:nth-child(5) { animation-delay: 0.4s; }
.blog-card-grid.blog-grid-visible > [class*="col-"]:nth-child(6) { animation-delay: 0.48s; }

.blog-card-grid .blog-grid-card:hover {
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15) !important;
  transform: translateY(-4px);
}

.blog-card-grid .blog-grid-card:hover .blog-card-img-placeholder i {
  transform: scale(1.08);
}

.blog-card-img-placeholder i {
  transition: transform 0.35s ease;
}

.blog-card-grid .blog-grid-card:hover .read-more {
  color: var(--primary-color, #667eea);
  text-decoration: none;
}

.blog-card-img-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.5rem;
}

/* Real image for blog card (e.g. first card) */
.blog-card-img-wrap {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card-grid .blog-grid-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-img-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-img-2 {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.blog-card-img-3 {
  background: linear-gradient(135deg, #f5b942 0%, #e9a20a 100%);
}

.blog-card-img-4 {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.blog-card-img-5 {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.blog-card-meta {
  font-size: 0.8rem;
}

.blog-card-meta-sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.blog-post {
  border: none;
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-post:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

.blog-post .card-title {
  color: var(--text-dark, #1a2236);
}

.blog-post .date {
  color: #6c757d;
  font-size: 0.875rem;
}

.blog-post .card-text {
  line-height: 1.6;
  color: #333;
}

.read-more {
  color: #386a8b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #2c5282;
  text-decoration: none;
}

.card {
  border: none !important;
}

/* Plan section: keep colored borders for Trial (green) and Starter (brown) */
#plans .card.border-success,
#plans .card.plan-card-starter {
  border-width: 2px !important;
  border-style: solid !important;
}
#plans .card.border-success {
  border-color: var(--bs-success) !important;
}
#plans .card.plan-card-starter {
  border-color: #795548 !important;
}

.footer-dark-bg {
  border: none;
}

.contact-method-card .border {
  border: none !important;
}

@media (max-width: 768px) {
  .footer-dark-bg .row {
    text-align: center;
  }

  .footer-contact-methods {
    align-items: center;
  }

  .footer-social-links {
    justify-content: center;
  }

  .footer-legal-links {
    justify-content: center;
    margin-top: 1rem;
  }
}
