/* ============================================
   Visual Enhancements for Newslink Website
   Fixes for icon display and layout issues
   ============================================ */

/* === ICON FIXES === */
.badge-icon, 
.feature-icon,
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.badge-icon i,
.feature-icon i,
.stat-icon i {
  font-size: 48px;
  color: var(--secondary-color);
}

/* Trust badges improvements */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px auto;
  max-width: 1200px;
}

.badge-item {
  padding: 32px 24px;
  background: var(--white);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.badge-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.badge-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark-color);
  line-height: 1.5;
  margin-top: 12px;
}

/* === PRODUCT HEADERS IMPROVEMENTS === */
.product-header h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 36px !important;
}

.product-header h3 i {
  font-size: 40px;
}

/* === PRODUCT GALLERY IMPROVEMENTS === */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.product-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* === HOW IT WORKS SECTION === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step-item {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.step-item:hover {
  transform: translateY(-4px);
}

.step-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
}

.step-icon i {
  font-size: 64px;
  color: var(--secondary-color);
}

.step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark-color);
}

.step-description {
  color: var(--gray-color);
  line-height: 1.6;
  font-size: 16px;
}

/* === SECTION IMPROVEMENTS === */
.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark-color);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 19px;
  color: var(--gray-color);
  line-height: 1.8;
  font-weight: 400;
}

/* === FEATURE IMPROVEMENTS === */
.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px 0;
}

.feature-icon i {
  font-size: 40px;
  color: var(--secondary-color);
}

.feature-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--dark-color);
  font-family: var(--font-headings);
}

.feature-description {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 24px;
}

.feature-benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-benefits li {
  padding: 10px 0;
  font-size: 15px;
  color: #444;
  position: relative;
  padding-left: 28px;
}

.feature-benefits li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-size: 14px;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.feature-cta:hover {
  transform: translateX(6px);
  color: var(--primary-color);
}

/* === TESTIMONIAL IMPROVEMENTS === */
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.testimonial:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.customer-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.customer-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
}

.customer-role {
  font-size: 14px;
  color: var(--gray-color);
  margin: 0;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 16px 0;
  font-style: italic;
}

.rating {
  color: var(--accent-color);
  font-size: 20px;
  margin-bottom: 12px;
}

/* === STATS IMPROVEMENTS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 40px;
  color: var(--accent-color);
}

.stat-number {
  display: block;
  font-size: 52px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 17px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

/* === FAQ IMPROVEMENTS === */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 2px soldid #f0f0f0;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--secondary-color);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 107, 53, 0.05);
}

.faq-icon {
  font-size: 28px;
  font-weight: 300;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: #555;
  line-height: 1.8;
  font-size: 16px;
}

.faq-answer-content p {
  margin-bottom: 16px;
}

.faq-answer-content ul {
  margin: 12px 0 16px 20px;
}

/* === BUTTON IMPROVEMENTS === */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-primary);
  line-height: 1;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
  background: #E55A2B;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* === TEXT ALIGNMENT FIXES === */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

/* === PROPER IMAGE SIZING === */
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.feature-image-container {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-item:hover .feature-image {
  transform: scale(1.08);
}

/* === BETTER SPACING === */
.product-category {
  margin-bottom: 80px;
  padding: 40px 0;
  border-radius: 16px;
}

.product-category:nth-child(odd) {
  background: rgba(44, 95, 45, 0.02);
}

.product-header {
  text-align: center;
  margin-bottom: 40px;
}

.product-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 36px !important;
  margin-bottom: 20px;
}

.product-header h3 i {
  font-size: 42px;
}

.product-header p {
  font-size: 17px;
  line-height: 2;
  color: #555;
  max-width: 900px;
  margin: 0 auto 32px;
}

/* === FORM IMPROVEMENTS === */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* === HEADER LOGO IMPROVEMENTS === */
.logo {
  font-family: var(--font-headings);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.logo i {
  font-size: 28px;
  color: var(--secondary-color);
}

.logo:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* === CARD IMPROVEMENTS === */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* === BETTER CONTAINER SPACING === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === TWO COLUMN LAYOUTS === */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 48px;
  align-items: center;
}

/* === CTA SECTION IMPROVEMENTS === */
.cta-box {
  background: rgba(255,255,255,0.12);
  padding: 40px;
  border-radius: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-box h3 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.cta-box p {
  font-size: 18px;
  line-height: 1.8;
  margin: 12px 0;
  color: rgba(255,255,255,0.95);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* === MOBILE IMPROVEMENTS === */
@media (max-width: 767px) {
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 17px;
  }
  
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .badge-item {
    padding: 24px 16px;
  }
  
  .badge-icon {
    width: 56px;
    height: 56px;
  }
  
  .badge-icon i {
    font-size: 36px;
  }
  
  .badge-text {
    font-size: 14px;
  }
  
  .product-header h3 {
    font-size: 28px !important;
    flex-direction: column;
    gap: 12px;
  }
  
  .product-gallery {
    grid-template-columns: 1fr;
  }
  
  .product-gallery img {
    height: 240px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .stat-number {
    font-size: 40px;
  }
  
  .stat-label {
    font-size: 15px;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* === UTILITY CLASSES === */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mb-5 { margin-bottom: 48px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-5 { margin-top: 48px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 8px !important; }
.p-2 { padding: 16px !important; }
.p-3 { padding: 24px !important; }
.p-4 { padding: 32px !important; }
.p-5 { padding: 48px !important; }

/* === COLOR UTILITIES === */
.bg-light { background: var(--light-bg) !important; }
.bg-white { background: var(--white) !important; }
.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--secondary-color) !important; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-white { color: var(--white) !important; }
.text-gray { color: var(--gray-color) !important; }

/* === IMAGE IMPROVEMENTS === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-rounded {
  border-radius: 12px;
}

.img-circle {
  border-radius: 50%;
}

.img-shadow {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === ANIMATION IMPROVEMENTS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
