/* Shrink the card width and padding */
.w-100.w-30-l.mb4.relative.bg-white {
    max-width: 220px !important;
    padding: 10px !important;
    margin: 10px !important;
    font-size: 0.95em !important;
    box-sizing: border-box;
    background: var(--card-bg) !important;
}

/* Shrink the phone image */
.w-100.w-30-l.mb4.relative.bg-white img {
    max-width: 100px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 10px auto;
}

/* Optional: Make the cards display in a tighter grid */
.flex-ns {
    gap: 10px !important;
    justify-content: flex-start !important;
}

/* Phone card container */
.phone-card {
    max-width: 200px;
    padding: 1.5rem;
    margin: 1rem;
    font-size: 0.9em;
    box-sizing: border-box;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.phone-card:hover {
    transform: 
        translateY(-8px) 
        rotate3d(1, 1, 0, 5deg) 
        scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Phone image */
.phone-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
    transform: translateZ(20px);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.phone-card:hover img {
    transform: translateZ(30px) scale(1.05);
}

/* Phone title */
.phone-card h2 {
    font-size: 1.1em;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    color: var(--text-primary);
    transform: translateZ(10px);
    transition: transform 0.3s ease;
}

.phone-card:hover h2 {
    transform: translateZ(15px);
}

/* Phone list container */
.phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    perspective: 1000px;
}

/* Add smooth scrolling to the page */
html {
    scroll-behavior: smooth;
}

/* Add a subtle gradient background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
}

/* Hide description */
.phone-card .f6,
.phone-card .f5-l,
.phone-card .lh-copy,
.phone-card .nested-copy-line-height,
.phone-card .nested-links {
    display: none !important;
}

/* Remove read more button */
.phone-card .ba {
    display: none;
}

/* Modern BudgetPhoneKing Styles */
body {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  background: var(--bg-primary);
  margin: 0;
  color: var(--text-primary);
}

.bpk-hero {
  background: var(--nav-gradient);
  color: var(--text-primary);
  padding-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(80,60,180,0.08);
}

.bpk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem 0.5rem 2rem;
}

.bpk-logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.bpk-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.bpk-nav-links a:hover {
  color: var(--accent-highlight);
}

.bpk-hero-content {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.bpk-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}
.bpk-hero-content p {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.95;
}

.bpk-main {
  max-width: 1400px;
  margin: -3rem auto 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
}

.bpk-filter-bar {
  background: var(--card-bg);
  box-shadow: 0 2px 12px var(--card-border);
  border-radius: 1.2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 2rem;
  margin-bottom: 2.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.bpk-search {
  flex: 1 1 250px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 0.7rem;
  font-size: 1.1rem;
  background: var(--bg-secondary);
  outline: none;
  transition: border 0.2s;
  color: var(--text-primary);
}
.bpk-search:focus {
  border: 1.5px solid var(--accent-secondary);
}

.bpk-select {
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: 0.7rem;
  font-size: 1.1rem;
  background: var(--bg-secondary);
  outline: none;
  min-width: 140px;
  transition: border 0.2s;
  color: var(--text-primary);
}
.bpk-select:focus {
  border: 1.5px solid var(--accent-secondary);
}

.bpk-phone-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.bpk-phone-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bpk-phone-card {
  background: var(--card-bg);
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px var(--card-border);
  padding: 1.2rem 1rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
  min-height: 260px;
  position: relative;
}
.bpk-phone-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px var(--card-border);
  z-index: 1;
}

.bpk-phone-img {
  max-width: 110px;
  max-height: 140px;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  background: var(--bg-secondary);
  box-shadow: 0 1px 4px var(--card-border);
}

.bpk-phone-info {
  text-align: center;
}

.bpk-phone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.2rem 0 0.5rem 0;
  color: var(--text-primary);
}

.bpk-badge {
  display: inline-block;
  background: var(--accent-secondary);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0.6rem;
  padding: 0.2rem 0.7rem;
  margin: 0 0.2rem 0.2rem 0.2rem;
}
.bpk-badge-series {
  background: var(--accent-highlight);
  color: #7c5c00;
}

@media (max-width: 900px) {
  .bpk-main { padding: 0 0.5rem; }
  .bpk-filter-bar { flex-direction: column; gap: 1rem; padding: 1rem; }
  .bpk-hero-content h1 { font-size: 2.1rem; }
  .bpk-phone-list { gap: 1.2rem; }
}
@media (max-width: 600px) {
  .bpk-hero-content h1 { font-size: 1.3rem; }
  .bpk-main { padding: 0 0.2rem; }
  .bpk-filter-bar { padding: 0.7rem; }
  .bpk-phone-card { padding: 0.7rem 0.3rem 1rem 0.3rem; }
}

/* Animations */
a, button, .card, .nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover {
  position: relative;
  overflow: hidden;
}

.btn-hover::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn-hover:hover::after {
  width: 300px;
  height: 300px;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.search-input {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  transform: scale(1.02);
}

.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.2em;
  background-color: var(--accent-secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.highlight-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Debug test animation */
.test-animation {
  width: 120px;
  height: 120px;
  background: var(--accent-primary);
  border-radius: 16px;
  margin: 2rem auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px var(--card-border);
}
.test-animation:hover {
  background: var(--accent-secondary);
  transform: scale(1.15) rotate(-2deg);
}

.bpk-home-btn {
  box-sizing: border-box;
  min-width: 80px;
  min-height: 40px;
  line-height: 1.2;
  overflow: visible;
  vertical-align: middle;
}

/* Phone Quiz Styles */
.bpk-quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.bpk-quiz-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.bpk-quiz-question {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.bpk-quiz-question.active {
    opacity: 1;
}

.bpk-quiz-question h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bpk-quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bpk-quiz-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bpk-quiz-option:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bpk-quiz-option.selected {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.bpk-quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.bpk-quiz-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--accent-primary);
    color: white;
}

.bpk-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bpk-quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bpk-quiz-results {
    text-align: center;
    padding: 2rem;
}

.bpk-quiz-results h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.bpk-quiz-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bpk-quiz-recommendation {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bpk-quiz-recommendation:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bpk-quiz-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.bpk-quiz-progress-bar {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bpk-quiz-bubble {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  background: linear-gradient(135deg, #7f7fd5 0%, #86a8e7 100%);
  color: #fff;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(80,60,180,0.18);
  padding: 1.2rem 2rem 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bpk-quiz-bubble:hover {
  box-shadow: 0 16px 48px rgba(80,60,180,0.28);
  transform: translateY(-4px) scale(1.04);
}
.bpk-quiz-bubble-btn {
  background: #fff;
  color: #4b4b8f;
  border: none;
  border-radius: 1.2rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.bpk-quiz-bubble-btn:hover {
  background: #f0f0ff;
  color: #6a82fb;
}
@media (max-width: 600px) {
  .bpk-quiz-bubble {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  .bpk-quiz-bubble-btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}