/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4361ee;
  --text-color: #333333;
  --background-color: #ffffff;
  --font-size-multiplier: 1;
  --border-color: #d1d5db;
  
  /* Color variables */
  --blue-light: #ebf4ff;
  --blue-medium: #4361ee;
  --blue-dark: #3a56d4;
  
  --green-light: #e6ffee;
  --green-medium: #38c172;
  --green-dark: #1f9d55;
  
  --purple-light: #f3e8ff;
  --purple-medium: #9561e2;
  --purple-dark: #702db9;
  
  --orange-light: #fff3e6;
  --orange-medium: #f6993f;
  --orange-dark: #de751f;
  
  --red-light: #ffe6e6;
  --red-medium: #e3342f;
  --red-dark: #cc1f1a;
  
  --yellow-light: #fffbe6;
  --yellow-medium: #ffed4a;
  --yellow-dark: #f2d024;
  
  --indigo-light: #e6e8ff;
  --indigo-medium: #6574cd;
  --indigo-dark: #5661b3;
  
  --teal-light: #e6fffa;
  --teal-medium: #4dc0b5;
  --teal-dark: #38a89d;
  
  --pink-light: #ffebef;
  --pink-medium: #f66d9b;
  --pink-dark: #eb5286;
  
  --gray-light: #f1f5f8;
  --gray-light2: #e4e4e4;
  --gray-medium: #606f7b;
  --gray-dark: #3d4852;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: #f8f9fc;
  line-height: 1.6;
  font-size: calc(16px * var(--font-size-multiplier));
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: calc(2.75rem * var(--font-size-multiplier));
}

h2 {
  font-size: calc(1.8rem * var(--font-size-multiplier));
}

h3 {
  font-size: calc(1.3rem * var(--font-size-multiplier));
}

p {
  margin-bottom: 1rem;
  font-size: calc(1.1rem * var(--font-size-multiplier));
}

ul, ol {
  padding-left: 0.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: calc(1.1rem * var(--font-size-multiplier));
  list-style: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--blue-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: calc(1rem * var(--font-size-multiplier));
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
.site-header {
  background-color: var(--background-color);
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1c1c1c, #646464);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 0 0 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4361ee, #3a56d4);
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #e6eeff, #d9e5ff);
  position: relative;
  padding: 6rem 0;
  text-align: center;
  border-bottom: none;
  margin-bottom: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></svg>');
  background-size: 30px 30px;
  opacity: 0.5;
}

.hero-overlay {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: calc(3.2rem * var(--font-size-multiplier));
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-color);
  line-height: 1.2;
  background: linear-gradient(135deg, #222, #000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.5rem;
}

.hero .subtitle {
  font-size: calc(1.25rem * var(--font-size-multiplier));
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--gray-medium);
  line-height: 1.25;
  font-weight: 500;
  padding: 0 0.5rem;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  color: white;
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  margin: 1rem auto;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
  border-radius: 50px;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
  }
  
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.35);
  }
  
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
  }
}

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

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #3a56d4, #2a46c4);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(67, 97, 238, 0.35);
  animation: none;
}

.hero .btn-primary i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.hero .btn-primary:hover i {
  transform: translateX(4px);
}

/* Standard primary button (outside hero) */
.btn-primary {
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a56d4, #2a46c4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.35);
}

/* Intro text */
.intro-text {
  padding: 2rem 0;
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin: 0 auto 3rem;
  max-width: 1100px;
}

.intro-text p {
  font-size: calc(1.2rem * var(--font-size-multiplier));
  line-height: 1.7;
  color: var(--gray-medium);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 500;
}

/* List content styles */
.list-content {
  padding: 2rem 0 4rem;
}

.list-item {
  background-color: white;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  padding: 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.list-item:not(:last-child):after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background-color: var(--gray-light2);
}

.list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Remove previous ribbon styling */
.ribbon-edge-left,
.ribbon-edge-right {
  display: none;
}

/* New ribbon design */
.ribbon-icon {
  display: none;
}

.list-item-number {
  position: absolute;
  left: 0;
  bottom: 0;
  width: auto;
  min-width: 70%;
  max-width: 90%;
  background: rgba(0, 0, 0, 0.3); /* 70% transparency */
  color: white;
  padding: 12px 40px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-align: left;
  text-transform: uppercase;
  z-index: 5;
  clip-path: polygon(0 0, 100% 0%, calc(100% - 25px) 50%, 100% 100%, 0 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transform: perspective(500px) rotateX(2deg);
  transform-origin: bottom center;
  opacity:0.8
}

/* Right fold shadow */
.list-item-number::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px; 
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.3));
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
}

/* Ribbon tail */
.list-item-number::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: inherit;
  filter: brightness(60%);
  right: -7px;
  bottom: -5px;
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: -2;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.4);
  display: block;
}

/* Inner shadow for 3D effect */
.list-item-number span {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.list-item-number span small {
  font-size: 0.7em;
  font-weight: 400;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

/* Hover effect */
.list-item:hover .list-item-number {
  transform: perspective(500px) rotateX(5deg) translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

/* Color-specific ribbons with 70% transparency */
.list-item[data-color="blue"] .list-item-number {
  background: rgba(67, 97, 238, 0.7);
}

.list-item[data-color="green"] .list-item-number {
  background: rgba(56, 193, 114, 0.7);
}

.list-item[data-color="purple"] .list-item-number {
  background: rgba(149, 97, 226, 0.7);
}

.list-item[data-color="orange"] .list-item-number {
  background: rgba(246, 153, 63, 0.7);
}

.list-item[data-color="red"] .list-item-number {
  background: rgba(227, 52, 47, 0.7);
}

.list-item[data-color="yellow"] .list-item-number {
  background: rgba(243, 156, 18, 0.7);
}

.list-item[data-color="indigo"] .list-item-number {
  background: rgba(101, 116, 205, 0.7);
}

.list-item[data-color="teal"] .list-item-number {
  background: rgba(77, 192, 181, 0.7);
}

.list-item[data-color="pink"] .list-item-number {
  background: rgba(246, 109, 155, 0.7);
}

.list-item[data-color="gray"] .list-item-number {
  background: rgba(96, 111, 123, 0.7);
}

/* Shine effect - separate from the fold effect */
.list-item-number .shine {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 100%);
  z-index: 1;
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}

.list-item:hover .list-item-number .shine {
  animation: ribbon-shine 1.5s ease-in-out infinite;
}

@keyframes ribbon-shine {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(200%) skewX(-15deg);
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .list-item-number {
    padding: 8px 30px 8px 15px;
    font-size: 0.75rem;
    min-width: 65%;
    max-width: 85%;
    transform: perspective(500px) rotateX(1deg);
  }
  
  .list-item-number span {
    font-size: 0.75rem;
  }
  
  .list-item-number::after {
    width: 20px;
  }
  
  .list-item-number::before {
    width: 10px;
    height: 10px;
    right: -5px;
    bottom: -4px;
  }
  
  .list-item:hover .list-item-number {
    transform: perspective(500px) rotateX(3deg) translateY(-2px);
  }
  
  /* Always show shine animation on mobile */
  .list-item .list-item-number .shine {
    animation: ribbon-shine 2s ease-in-out infinite;
  }
}

.list-item-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 12px 12px 0 0;
  box-shadow: none;
}

.list-item:hover .list-item-image img {
  transform: scale(1.05);
}

.list-item-content {
  padding: 2rem;
  flex-grow: 1;
}

.list-item-content h2 {
  margin-top: 0;
  color: var(--text-color);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.list-item-tips {
  background-color: #f8f9fc;
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.list-item-tips h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.list-item-tips ul {
  margin-bottom: 0;
  padding-left: 0;
}

.list-item-tips ul li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.list-item-tips ul li:last-child {
  margin-bottom: 0;
}

.list-item-cta {
  margin-top: 1.5rem;
  text-align: center;
  position: relative;
}

.list-item-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  border-radius: 50px;
  opacity: 0;
  z-index: 0;
  filter: blur(15px);
  transition: opacity 0.3s ease;
}

.list-item[data-color="blue"] .list-item-cta::before {
  background: rgba(67, 97, 238, 0.5);
}

.list-item[data-color="green"] .list-item-cta::before {
  background: rgba(56, 193, 114, 0.5);
}

.list-item[data-color="purple"] .list-item-cta::before {
  background: rgba(149, 97, 226, 0.5);
}

.list-item[data-color="orange"] .list-item-cta::before {
  background: rgba(246, 153, 63, 0.5);
}

.list-item[data-color="red"] .list-item-cta::before {
  background: rgba(227, 52, 47, 0.5);
}

.list-item[data-color="yellow"] .list-item-cta::before {
  background: rgba(243, 156, 18, 0.5);
}

.list-item[data-color="indigo"] .list-item-cta::before {
  background: rgba(101, 116, 205, 0.5);
}

.list-item[data-color="teal"] .list-item-cta::before {
  background: rgba(77, 192, 181, 0.5);
}

.list-item[data-color="pink"] .list-item-cta::before {
  background: rgba(246, 109, 155, 0.5);
}

.list-item[data-color="gray"] .list-item-cta::before {
  background: rgba(96, 111, 123, 0.5);
}

.list-item:hover .list-item-cta::before {
  opacity: 1;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

.list-item-cta .btn {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.list-item-cta .btn:hover {
  transform: translateY(-4px) scale(1.01);
}

.list-item-cta .btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s ease;
}

.list-item-cta .btn:hover::after {
  transform: translateX(100%) skewX(-15deg);
}

.list-item-cta .btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.list-item-cta .btn:hover i {
  transform: translateX(4px);
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* Button Colors and enhanced effects */
.btn-blue {
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4), 0 8px 15px -5px rgba(67, 97, 238, 0.5);
}

.btn-blue:hover {
  background: linear-gradient(135deg, #3a56d4, #2a46c4);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5), 0 10px 20px -5px rgba(67, 97, 238, 0.6);
}

.btn-green {
  background: linear-gradient(135deg, #38c172, #1f9d55);
  color: white;
  box-shadow: 0 4px 15px rgba(56, 193, 114, 0.4), 0 8px 15px -5px rgba(56, 193, 114, 0.5);
}

.btn-green:hover {
  background: linear-gradient(135deg, #1f9d55, #176c3b);
  box-shadow: 0 6px 20px rgba(56, 193, 114, 0.5), 0 10px 20px -5px rgba(56, 193, 114, 0.6);
}

.btn-purple {
  background: linear-gradient(135deg, #9561e2, #702db9);
  color: white;
  box-shadow: 0 4px 15px rgba(149, 97, 226, 0.4), 0 8px 15px -5px rgba(149, 97, 226, 0.5);
}

.btn-purple:hover {
  background: linear-gradient(135deg, #702db9, #5a1d96);
  box-shadow: 0 6px 20px rgba(149, 97, 226, 0.5), 0 10px 20px -5px rgba(149, 97, 226, 0.6);
}

.btn-orange {
  background: linear-gradient(135deg, #f6993f, #de751f);
  color: white;
  box-shadow: 0 4px 15px rgba(246, 153, 63, 0.4), 0 8px 15px -5px rgba(246, 153, 63, 0.5);
}

.btn-orange:hover {
  background: linear-gradient(135deg, #de751f, #b7601a);
  box-shadow: 0 6px 20px rgba(246, 153, 63, 0.5), 0 10px 20px -5px rgba(246, 153, 63, 0.6);
}

.btn-red {
  background: linear-gradient(135deg, #e3342f, #cc1f1a);
  color: white;
  box-shadow: 0 4px 15px rgba(227, 52, 47, 0.4), 0 8px 15px -5px rgba(227, 52, 47, 0.5);
}

.btn-red:hover {
  background: linear-gradient(135deg, #cc1f1a, #a81915);
  box-shadow: 0 6px 20px rgba(227, 52, 47, 0.5), 0 10px 20px -5px rgba(227, 52, 47, 0.6);
}

.btn-yellow {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4), 0 8px 15px -5px rgba(243, 156, 18, 0.5);
}

.btn-yellow:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5), 0 10px 20px -5px rgba(243, 156, 18, 0.6);
}

.btn-indigo {
  background: linear-gradient(135deg, #6574cd, #5661b3);
  color: white;
  box-shadow: 0 4px 15px rgba(101, 116, 205, 0.4), 0 8px 15px -5px rgba(101, 116, 205, 0.5);
}

.btn-indigo:hover {
  background: linear-gradient(135deg, #5661b3, #4a5296);
  box-shadow: 0 6px 20px rgba(101, 116, 205, 0.5), 0 10px 20px -5px rgba(101, 116, 205, 0.6);
}

.btn-teal {
  background: linear-gradient(135deg, #4dc0b5, #38a89d);
  color: white;
  box-shadow: 0 4px 15px rgba(77, 192, 181, 0.4), 0 8px 15px -5px rgba(77, 192, 181, 0.5);
}

.btn-teal:hover {
  background: linear-gradient(135deg, #38a89d, #2c8c84);
  box-shadow: 0 6px 20px rgba(77, 192, 181, 0.5), 0 10px 20px -5px rgba(77, 192, 181, 0.6);
}

.btn-pink {
  background: linear-gradient(135deg, #f66d9b, #eb5286);
  color: white;
  box-shadow: 0 4px 15px rgba(246, 109, 155, 0.4), 0 8px 15px -5px rgba(246, 109, 155, 0.5);
}

.btn-pink:hover {
  background: linear-gradient(135deg, #eb5286, #d73672);
  box-shadow: 0 6px 20px rgba(246, 109, 155, 0.5), 0 10px 20px -5px rgba(246, 109, 155, 0.6);
}

.btn-gray {
  background: linear-gradient(135deg, #606f7b, #3d4852);
  color: white;
  box-shadow: 0 4px 15px rgba(96, 111, 123, 0.4), 0 8px 15px -5px rgba(96, 111, 123, 0.5);
}

.btn-gray:hover {
  background: linear-gradient(135deg, #3d4852, #2d3748);
  box-shadow: 0 6px 20px rgba(96, 111, 123, 0.5), 0 10px 20px -5px rgba(96, 111, 123, 0.6);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fc, #edf2fb);
}

.cta-box {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.2rem;
  color: var(--gray-medium);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.cta-form input {
  padding: 1rem 1.5rem;
  border: 2px solid var(--gray-light2);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-form input:focus {
  border-color: var(--blue-medium);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.btn-white {
  background: var(--blue-medium);
  color: white;
  width: 100%;
}

.btn-white:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
}

.subscription-message {
  margin-top: 1rem;
  height: 24px;
  font-weight: 600;
}

/* Footer Styles */
.site-footer {
  background-color: #2d3748;
  color: white;
  padding: 3rem 0 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white;
}

.social-icon:hover {
  background-color: var(--blue-medium);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.disclaimer {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.attribution {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.attribution a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.attribution a:hover {
  color: white;
}

/* Font size controls */
.font-size-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.font-size-controls span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.font-size-controls button {
  background-color: #f1f5f8;
  color: var(--text-color);
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.font-size-controls button:hover {
  background-color: var(--blue-medium);
  color: white;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .list-item {
    flex-direction: row;
    align-items: stretch;
  }
  
  .list-item-image {
    width: 35%;
    height: auto;
  }
  
  .list-item-image img {
    height: 100%;
    border-radius: 12px 0 0 12px;
  }
  
  .list-item-content {
    width: 65%;
    padding: 2.5rem;
  }
  
  .cta-form {
    flex-direction: row;
  }
  
  .cta-form input {
    flex-grow: 1;
  }
  
  .cta-form .btn {
    width: auto;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: calc(2.2rem * var(--font-size-multiplier));
    line-height: 1.3;
  }
  
  h2 {
    font-size: calc(1.5rem * var(--font-size-multiplier));
  }
  
  .hero {
    padding: 1.5rem 0 1.5rem;
    background: linear-gradient(135deg, #e2e9ff, #d3dfff);
  }
  
  .hero h1 {
    font-size: calc(2.3rem * var(--font-size-multiplier));
    margin-bottom: 1.2rem;
  }
  
  .hero .subtitle {
    font-size: calc(1.1rem * var(--font-size-multiplier));
    margin-bottom: 2rem;
    line-height: 1.4;
  }
  
  .hero .btn-primary {
    padding: 1rem 1.8rem;
    font-size: 1rem;
    width: 90%;
    max-width: 360px;
    animation: mobile-float 3s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
  }
  
  @keyframes mobile-float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-4px);
    }
    100% {
      transform: translateY(0px);
    }
  }

  .hero .btn-primary:hover, .hero .btn-primary:active {
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
  }
  
  nav ul {
    display: none;
  }
  
  .cta-box {
    padding: 2rem 1.5rem;
  }
  
  .list-item {
    margin-bottom: 2.5rem;
    transform: translateZ(0); /* Force hardware acceleration */
  }
  
  .list-item:hover {
    transform: translateY(-3px);
  }
  
  .list-item-image {
    height: 180px;
  }
  
  .list-item-content {
    padding: 1.5rem;
  }
  
  .list-item-tips {
    padding: 1rem;
  }
  
  .list-item-cta::before {
    filter: blur(10px);
  }

  .list-item-cta .btn {
    padding: 0.9rem 1.2rem;
    transform: translateZ(0); /* Force hardware acceleration */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .list-item-cta .btn::after {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 70%);
    transition: transform 0.4s ease;
  }
  
  /* Make the glow effect visible immediately on mobile */
  .list-item .list-item-cta::before {
    opacity: 0.3;
    animation: mobile-pulse-glow 3s infinite;
  }
  
  @keyframes mobile-pulse-glow {
    0% {
      opacity: 0.2;
      transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
      opacity: 0.4;
      transform: translate(-50%, -50%) scale(1);
    }
    100% {
      opacity: 0.2;
      transform: translate(-50%, -50%) scale(0.9);
    }
  }
  
  /* Make the button shine effect happen automatically on mobile */
  .list-item-cta .btn::after {
    animation: mobile-shine 3s infinite;
  }
  
  @keyframes mobile-shine {
    0% {
      transform: translateX(-100%) skewX(-15deg);
    }
    30% {
      transform: translateX(100%) skewX(-15deg);
    }
    100% {
      transform: translateX(100%) skewX(-15deg);
    }
  }
  
  /* Show the ribbon on mobile without requiring hover */
  .list-item-number {
    transform: none;
    padding: 7px 12px;
    bottom: 0px;
    font-size: 0.85rem;
  }
  
  /* Add animation to the ribbon on mobile */
  .list-item-number::before {
    animation: ribbon-shine-left 3s infinite;
  }
  
  /* Enhanced button shadows for mobile */
  .btn-blue, .btn-green, .btn-purple, .btn-orange, 
  .btn-red, .btn-yellow, .btn-indigo, .btn-teal, 
  .btn-pink, .btn-gray {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 6px 10px -5px rgba(0,0,0,0.3);
  }
  
  .font-size-controls {
    display: none;
  }
}

/* Gift emoji alternates based on category */
.list-item[data-color="blue"] .list-item-number::before {
  content: "🏠";
}

.list-item[data-color="green"] .list-item-number::before {
  content: "🛋️";
}

.list-item[data-color="purple"] .list-item-number::before {
  content: "🛁";
}

.list-item[data-color="orange"] .list-item-number::before {
  content: "🪟";
}

.list-item[data-color="red"] .list-item-number::before {
  content: "🚗";
}

.list-item[data-color="yellow"] .list-item-number::before {
  content: "💰";
}

.list-item[data-color="indigo"] .list-item-number::before {
  content: "⚕️";
}

.list-item[data-color="teal"] .list-item-number::before {
  content: "💵";
}

.list-item[data-color="pink"] .list-item-number::before {
  content: "🔧";
}

.list-item[data-color="gray"] .list-item-number::before {
  content: "🏡";
}

.list-item-number span {
  font-size: 0.75rem;
  padding: 6px 12px 6px 15px;
  padding-right: 25px;
}

.legal-links {
  margin-top: 15px;
  font-size: 14px;
}

.legal-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0 5px;
}

.legal-links a:hover {
  color: #333;
  text-decoration: underline;
} 