/* ====================================================
   TEST PREP PROGRAMS — Premium Page-Specific Styles
   ==================================================== */

:root {
  --tpp-primary: #1B45C0;
  --tpp-secondary: #00D2FF;
  --tpp-dark: #0D1E48;
  --tpp-text: #4A5A8A;
  --tpp-gray: #F8F9FC;
  --tpp-border: rgba(27,69,192,0.08);
  --tpp-shadow-sm: 0 4px 20px rgba(13,30,72,0.04);
  --tpp-shadow-md: 0 12px 32px rgba(13,30,72,0.08);
  --tpp-shadow-lg: 0 24px 60px rgba(13,30,72,0.12);
  --tpp-radius-md: 16px;
  --tpp-radius-lg: 24px;
}

/* ── LAYOUT FOUNDATIONS ── */
.tpp-section-padding { padding: 100px 0; }
.tpp-container {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
}
.tpp-section-header { text-align: center; margin-bottom: 56px; }
.tpp-section-header .section-sub {
  max-width: 600px; margin: 16px auto 0; font-size: 1.1rem; line-height: 1.6;
}

/* Split Layouts */
.tpp-split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.tpp-image-card {
  position: relative; border-radius: var(--tpp-radius-lg); overflow: hidden;
  box-shadow: var(--tpp-shadow-lg); border: 1px solid rgba(255,255,255,0.2);
}
.tpp-image-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform 0.6s ease;
}
.tpp-image-card:hover img { transform: scale(1.03); }

/* Overlays & Badges */
.tpp-image-overlay-badge {
  position: absolute; top: 24px; left: -16px;
  background: white; padding: 12px 24px; border-radius: 12px;
  box-shadow: var(--tpp-shadow-md);
  display: flex; flex-direction: column; align-items: center;
  color: var(--tpp-dark); border-left: 4px solid var(--tpp-secondary);
  animation: floatCard 4s ease-in-out infinite; z-index: 2;
}
.tpp-badge-bottom {
  top: auto; bottom: 32px; left: auto; right: -16px;
  border-left: none; border-right: 4px solid var(--tpp-primary);
  animation-delay: 1s;
}

/* ── HERO SECTION ── */
/* Hero section structural styles are inherited from .page-hero in style.css */
.tpp-hero-image-container {
  position: relative; border-radius: var(--tpp-radius-lg); overflow: visible;
  aspect-ratio: 4/3; width: 100%; max-width: 600px;
}
.tpp-hero-image-container img {
  border-radius: var(--tpp-radius-lg); box-shadow: var(--tpp-shadow-lg); 
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* Hero Floating Cards */
.tpp-hero-float {
  position: absolute; background: white; border-radius: 14px;
  padding: 12px 20px; box-shadow: var(--tpp-shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; font-weight: 700; color: var(--tpp-dark);
  white-space: nowrap; animation: floatCard 3.5s ease-in-out infinite; z-index: 2;
  border: 1px solid rgba(255,255,255,0.8);
}
.tpp-float-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(27,69,192,0.1); color: var(--tpp-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.tpp-float-1 { bottom: 40px; left: -30px; animation-delay: 0s; }
.tpp-float-2 { top: 60px; right: -30px; animation-delay: 0.7s; }
.tpp-float-3 { bottom: 120px; right: -20px; animation-delay: 1.4s; }
.tpp-float-4 { top: 160px; left: -20px; animation-delay: 2.1s; }

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

/* Chips */
.tpp-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.tpp-chip {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 8px 24px; border-radius: 50px; font-weight: 600; font-size: .9rem;
  backdrop-filter: blur(8px); transition: all 0.3s;
}
.tpp-chip:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* ── FEATURES GRID ── */
.tpp-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.tpp-features-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tpp-feature-card-premium {
  background: white; padding: 28px; border-radius: var(--tpp-radius-md);
  border: 1px solid var(--tpp-border); box-shadow: var(--tpp-shadow-sm);
  transition: all 0.3s;
}
.tpp-feature-card-premium:hover {
  transform: translateY(-5px); box-shadow: var(--tpp-shadow-md); border-color: rgba(27,69,192,0.15);
}
.tpp-feature-card-premium .feature-icon {
  font-size: 1.8rem; margin-bottom: 16px; background: var(--tpp-gray);
  width: 56px; height: 56px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center;
}
.tpp-feature-card-premium h3 { font-size: 1.1rem; color: var(--tpp-dark); margin-bottom: 8px; }
.tpp-feature-card-premium p { font-size: .95rem; color: var(--tpp-text); line-height: 1.6; }

/* ── PRICING CARDS ── */
.tpp-pricing-grid-5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.tpp-price-card {
  background: white; border-radius: var(--tpp-radius-lg); border: 1px solid var(--tpp-border);
  box-shadow: var(--tpp-shadow-sm); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.tpp-price-card:hover { transform: translateY(-12px); box-shadow: var(--tpp-shadow-lg); }
.tpp-price-card.featured { border: 2px solid var(--tpp-primary); }
.tpp-price-card.featured::before {
  content: 'POPULAR'; position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--tpp-primary), var(--tpp-secondary));
  color: white; font-size: .65rem; font-weight: 800; padding: 4px 10px;
  border-radius: 50px; letter-spacing: 1px;
}
.tpp-price-header { padding: 24px 16px 16px; border-bottom: 1px solid var(--tpp-border); background: var(--tpp-gray); }
.tpp-price-exam { font-size: .75rem; font-weight: 800; color: var(--tpp-primary); letter-spacing: 2px; margin-bottom: 8px; }
.tpp-price-name { font-size: 1.15rem; font-weight: 800; color: var(--tpp-dark); margin-bottom: 12px; line-height: 1.3; }
.tpp-price-amount { font-size: 1.8rem; font-weight: 900; color: var(--tpp-dark); line-height: 1; margin-bottom: 8px; letter-spacing: -1px;}
.tpp-price-tax { font-size: .7rem; color: #7A8AAB; font-weight: 500; }
.tpp-price-body { padding: 20px 16px; flex-grow: 1; }
.tpp-price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tpp-price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--tpp-text); line-height: 1.4; }
.tpp-price-features li::before { content: '✓'; color: #3DD68C; font-weight: 800; flex-shrink: 0; background: rgba(61,214,140,0.15); width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; margin-top: 3px; }
.tpp-price-footer { padding: 0 16px 20px; }
.tpp-enroll-btn {
  width: 100%; padding: 16px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--tpp-primary), #275CE6);
  color: white; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 8px 24px rgba(27,69,192,0.25);
}
.tpp-enroll-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27,69,192,0.4); }

/* ── INTERACTIVE PROGRAMS TABS ── */
.tpp-programs-interactive-wrapper {
  display: flex; background: white; border-radius: var(--tpp-radius-lg);
  border: 1px solid var(--tpp-border); box-shadow: var(--tpp-shadow-md); overflow: hidden;
}
.tpp-programs-tabs-sidebar {
  width: 280px; background: var(--tpp-gray); border-right: 1px solid var(--tpp-border);
  display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0;
}
.tpp-tab-btn {
  padding: 20px 32px; border: none; background: transparent; text-align: left;
  font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--tpp-text);
  cursor: pointer; transition: all 0.3s; border-left: 4px solid transparent;
}
.tpp-tab-btn:hover { background: rgba(27,69,192,0.04); color: var(--tpp-primary); }
.tpp-tab-btn.active {
  background: white; color: var(--tpp-primary); border-left-color: var(--tpp-primary); font-weight: 800;
}
.tpp-programs-content-area { padding: 48px; flex-grow: 1; }
.tpp-tab-panel { display: none; animation: fadeIn 0.5s ease; }
.tpp-tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.tpp-program-detail-premium { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tpp-program-image img { border-radius: var(--tpp-radius-md); box-shadow: var(--tpp-shadow-sm); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.tpp-program-text h3 { font-size: 2rem; color: var(--tpp-dark); margin-bottom: 16px; font-weight: 800; }
.tpp-program-text p { font-size: 1.05rem; color: var(--tpp-text); line-height: 1.6; margin-bottom: 24px; }
.tpp-focus-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tpp-focus-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--tpp-dark); }
.tpp-focus-list li::before { content: '→'; color: var(--tpp-secondary); font-weight: 800; font-size: 1.2rem; }

/* ── STICKY ACCORDION ── */
.tpp-sticky-wrapper { position: sticky; top: 120px; }
.tpp-accordion-item {
  background: white; border: 1px solid var(--tpp-border); border-radius: var(--tpp-radius-md);
  margin-bottom: 16px; box-shadow: var(--tpp-shadow-sm); transition: all 0.3s;
}
.tpp-accordion-item:hover { box-shadow: var(--tpp-shadow-md); border-color: rgba(27,69,192,0.15); }
.tpp-accordion-trigger {
  width: 100%; padding: 24px; border: none; background: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--tpp-dark);
  cursor: pointer;
}
.tpp-acc-arrow { color: var(--tpp-primary); transition: transform 0.3s; }
.tpp-accordion-item.open .tpp-acc-arrow { transform: rotate(180deg); }
.tpp-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 24px; }
.tpp-accordion-item.open .tpp-accordion-body { max-height: 800px; padding: 0 24px 24px; }
.tpp-acc-desc { color: var(--tpp-text); line-height: 1.6; margin-bottom: 24px; }
.tpp-exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpp-exam-detail { padding: 16px; background: var(--tpp-gray); border-radius: 12px; border: 1px solid var(--tpp-border); }
.tpp-exam-detail-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: #7A8AAB; font-weight: 700; margin-bottom: 8px; }
.tpp-exam-detail-value { font-size: .95rem; font-weight: 600; color: var(--tpp-dark); line-height: 1.4; }

/* ── CAROUSEL / GRID ── */
.tpp-audience-carousel-container { overflow-x: auto; padding-bottom: 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tpp-audience-carousel-container::-webkit-scrollbar { display: none; }
.tpp-audience-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tpp-audience-card {
  background: white; border: 1px solid var(--tpp-border); border-radius: var(--tpp-radius-md);
  padding: 32px 24px; box-shadow: var(--tpp-shadow-sm); scroll-snap-align: start;
  transition: all 0.3s;
}
.tpp-audience-card:hover { transform: translateY(-8px); box-shadow: var(--tpp-shadow-md); border-color: var(--tpp-primary); }
.tpp-audience-icon { font-size: 2.5rem; margin-bottom: 20px; }
.tpp-audience-text h4 { font-size: 1.1rem; color: var(--tpp-dark); margin-bottom: 8px; font-weight: 800; line-height: 1.3; }
.tpp-audience-text p { font-size: .9rem; color: var(--tpp-text); line-height: 1.5; }

/* ── WHY PREPARE PREMIUM LIST ── */
.tpp-prep-premium-list { display: flex; flex-direction: column; gap: 32px; }
.tpp-prep-list-item { display: flex; gap: 24px; align-items: center; }
.tpp-prep-list-icon { width: 56px; height: 56px; border-radius: 16px; background: white; box-shadow: var(--tpp-shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.tpp-prep-list-text h4 { font-size: 1.15rem; color: var(--tpp-dark); margin-bottom: 0; font-weight: 700; line-height: 1.4; }
.tpp-prep-list-text p { font-size: 1rem; color: var(--tpp-text); line-height: 1.6; }

/* Analytics Overlay */
.tpp-analytics-overlay {
  position: absolute; bottom: 24px; right: -24px; background: white;
  padding: 24px; border-radius: var(--tpp-radius-md); box-shadow: var(--tpp-shadow-md);
  width: 200px; z-index: 2; animation: floatCard 4s ease-in-out infinite reverse;
}
.tpp-analytics-bar { height: 8px; background: var(--tpp-gray); border-radius: 4px; margin-bottom: 12px; position: relative; overflow: hidden; }
.tpp-analytics-bar::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; background: var(--tpp-secondary); width: 100%; border-radius: 4px; }
.tpp-analytics-bar:nth-child(1)::after { background: var(--tpp-primary); }
.tpp-analytics-bar:nth-child(3)::after { background: #3DD68C; }

/* ── FINAL CTA ── */
.tpp-final-cta-section {
  position: relative; padding: 120px 5%; background-size: cover; background-position: center; background-repeat: no-repeat;
  text-align: center; color: white;
}
.tpp-final-cta-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(13,30,72,0.95), rgba(27,69,192,0.85)); }
.tpp-cta-headline { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.2; margin-bottom: 24px; }
.tpp-cta-headline span { color: var(--tpp-secondary); }
.tpp-cta-sub { font-size: 1.2rem; opacity: 0.85; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.tpp-cta-contact { margin-top: 48px; display: flex; justify-content: center; gap: 24px; font-weight: 700; font-size: 1.1rem; }
.tpp-cta-contact a { color: white; opacity: 0.8; transition: opacity 0.3s; }
.tpp-cta-contact a:hover { opacity: 1; }

/* ── UTILITIES & ANIMATIONS ── */
.tpp-fade-up { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.16,1,.3,1); }
.tpp-fade-up.tpp-visible { opacity: 1; transform: translateY(0); }
.tpp-stagger-item { opacity: 0; transform: translateY(30px); transition: all .6s cubic-bezier(.16,1,.3,1); }
.tpp-stagger-item.tpp-visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1366px) {
  .tpp-audience-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .tpp-programs-interactive-wrapper { flex-direction: column; }
  .tpp-programs-tabs-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 16px; border-right: none; border-bottom: 1px solid var(--tpp-border); scroll-snap-type: x mandatory; }
  .tpp-tab-btn { padding: 12px 24px; white-space: nowrap; border-left: none; border-bottom: 4px solid transparent; text-align: center; scroll-snap-align: start; }
  .tpp-tab-btn.active { border-left-color: transparent; border-bottom-color: var(--tpp-primary); }
  .tpp-split-layout { gap: 40px; }
  .tpp-pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .tpp-audience-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .tpp-features-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tpp-hero-section { flex-direction: column; padding: 120px 5% 80px; text-align: center; }
  .page-hero-left { margin: 0 auto; }
  .tpp-hero-float { display: none; }
  .tpp-chips { justify-content: center; }
  .cta-group { flex-direction: column; }
  .cta-group .btn-primary, .cta-group .btn-secondary { width: 100%; justify-content: center; }
  .tpp-split-layout { grid-template-columns: 1fr; }
  .tpp-reverse-mobile { display: flex; flex-direction: column-reverse; }
  .tpp-features-grid { grid-template-columns: 1fr; }
  .tpp-features-grid-3 { grid-template-columns: 1fr; }
  .tpp-program-detail-premium { grid-template-columns: 1fr; gap: 24px; }
  .tpp-exam-grid { grid-template-columns: 1fr; }
  .tpp-programs-content-area { padding: 32px 20px; }
  .tpp-image-overlay-badge { left: 16px; }
  .tpp-badge-bottom { right: 16px; }
  .tpp-analytics-overlay { display: none; }
  .tpp-pricing-grid-5 { grid-template-columns: 1fr; }
  .tpp-audience-grid-5 { grid-template-columns: 1fr; }
}
