/* ============================================================
   Trade With Dilip - Complete Design System
   All values come from config.php via inline CSS vars
   ============================================================ */

/* === BASE RESET === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
  font-family: var(--phd-font-body);
}

/* === SKIP LINK === */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: var(--phd-primary);
  color: var(--phd-white);
  padding: 10px 20px;
  border-radius: 0 0 var(--phd-radius) var(--phd-radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* === A11Y BAR === */
.phd-a11y-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--phd-a11y-height);
  background: var(--phd-a11y-bg);
  border-bottom: var(--phd-a11y-border);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--phd-transition);
  font-family: var(--phd-a11y-font);
}
.phd-a11y-bar span {
  color: var(--phd-a11y-text);
  font-size: var(--phd-a11y-font-size);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.phd-a11y-bar.hidden {
  transform: translateY(-100%);
}

/* === HEADER === */
.phd-header-wrapper {
  font-family: var(--phd-font-nav);
}

.phd-header {
  position: fixed;
  top: var(--phd-a11y-height);
  left: 0;
  right: 0;
  height: var(--phd-header-height);
  z-index: var(--phd-header-z);
  background: var(--phd-header-bg);
  backdrop-filter: blur(var(--phd-header-blur));
  -webkit-backdrop-filter: blur(var(--phd-header-blur));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--phd-transition);
  display: flex;
  align-items: center;
}
.phd-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Compact Mode */
.phd-header.compact {
  top: 0;
  height: var(--phd-header-compact-height);
  background: var(--phd-header-compact-bg);
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.phd-header.compact .phd-nav-link {
  color: var(--phd-white);
}
.phd-header.compact .phd-nav-link:hover,
.phd-header.compact .phd-nav-link:focus-visible {
  color: var(--phd-white);
  background: rgba(255,255,255,0.12);
}
/* .phd-header.compact .phd-logo img {
  filter: brightness(0) invert(1);
} */
.phd-header.compact .phd-cta-btn {
  background: var(--phd-white);
  color: var(--phd-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.phd-header.compact .phd-cta-btn .arrow-icon {
  stroke: var(--phd-primary);
}
.phd-header.compact .phd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.phd-a11y-bar.hidden {
  transform: translateY(-100%);
}

/* Logo */
.phd-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.phd-logo img {
  max-height: var(--phd-header-logo-max-h);
  width: auto;
  transition: transform 0.3s ease;
}
.phd-logo:hover img {
  transform: scale(1.04);
}

/* Navigation */
.phd-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.phd-nav-item {
  position: relative;
}
.phd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--phd-header-nav-padding);
  font-size: var(--phd-header-nav-size);
  font-weight: var(--phd-header-nav-weight);
  color: var(--phd-text);
  text-decoration: none;
  border-radius: var(--phd-radius);
  position: relative;
  transition: all var(--phd-transition);
}
.phd-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--phd-primary);
  border-radius: 2px;
  transition: width var(--phd-transition);
}
.phd-nav-link:hover::after,
.phd-nav-link:focus-visible::after {
  width: calc(100% - 1.7rem);
}
.phd-nav-link:hover,
.phd-nav-link:focus-visible {
  color: var(--phd-primary);
  background: var(--phd-header-nav-hover-bg);
}
.phd-nav-link .chevron {
  transition: transform var(--phd-transition);
  font-size: 0.7rem;
}
.phd-nav-link:hover .chevron,
.phd-nav-link:focus-visible .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.phd-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: var(--phd-header-dropdown-min-w);
  background: var(--phd-header-dropdown-bg);
  border-radius: var(--phd-header-dropdown-radius);
  box-shadow: var(--phd-header-dropdown-shadow);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--phd-transition);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}
.phd-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: var(--phd-header-dropdown-bg);
  transform: rotate(45deg);
  border-radius: 2px;
}
.phd-nav-item:hover .phd-dropdown,
.phd-nav-item:focus-within .phd-dropdown,
.phd-nav-item.active .phd-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.phd-dropdown-link {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--phd-text-light);
  font-size: var(--phd-header-nav-size);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--phd-radius);
  transition: all var(--phd-transition);
}
.phd-dropdown-link:hover,
.phd-dropdown-link:focus-visible {
  color: var(--phd-primary);
  background: var(--phd-header-nav-hover-bg);
  transform: translateX(6px);
}

/* CTA Button */
.phd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--phd-btn-cta-bg);
  color: var(--phd-white);
  font-weight: var(--phd-btn-cta-weight);
  font-size: var(--phd-btn-font-size);
  font-family: var(--phd-btn-cta-font);
  border: none;
  border-radius: var(--phd-btn-cta-radius);
  text-decoration: none;
  transition: all var(--phd-transition);
  box-shadow: var(--phd-btn-cta-shadow);
  cursor: pointer;
}
.phd-cta-btn:hover,
.phd-cta-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--phd-btn-cta-shadow-hover);
  color: var(--phd-white);
}
.phd-cta-btn .arrow-icon {
  transition: transform var(--phd-transition);
}
.phd-cta-btn:hover .arrow-icon {
  transform: translateX(5px);
}

/* Mobile Toggle */
.phd-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 99999;
}
.phd-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--phd-text);
  border-radius: 2px;
  transition: all var(--phd-transition);
}
.phd-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.phd-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.phd-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.phd-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--phd-white);
  z-index: 99995;
  padding: 100px 24px 40px;
  overflow-y: auto;
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.5s ease;
}
.phd-mobile-menu.open {
  clip-path: circle(150% at 100% 0%);
}
.phd-mobile-menu .phd-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.phd-mobile-menu .phd-nav-link {
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 12px;
}
.phd-mobile-menu .phd-dropdown {
  position: static;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 0 1rem;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: auto;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.phd-mobile-menu .phd-dropdown.open {
  max-height: 500px;
}
.phd-mobile-menu .phd-dropdown::before {
  display: none;
}
.phd-mobile-menu .phd-dropdown-link {
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--phd-accent);
  margin-bottom: 2px;
}
.phd-mobile-menu .phd-cta-btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* Header Placeholder */
.phd-header-placeholder {
  height: var(--phd-header-placeholder-h);
}

/* === HERO SECTION === */
.phd-hero {
  background: var(--phd-hero-bg);
  padding: var(--phd-hero-padding);
  position: relative;
  overflow: hidden;
  min-height: var(--phd-hero-min-height);
  display: flex;
  align-items: center;
}
.phd-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(79,160,93,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(212,175,55,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.phd-hero-content {
  position: relative;
  z-index: 1;
}
.phd-hero h1 {
  font-family: var(--phd-hero-heading-font);
  font-size: var(--phd-hero-heading-size);
  font-weight: 700;
  color: var(--phd-hero-heading-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.phd-hero p {
  color: var(--phd-hero-text-color);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}
.phd-hero .phd-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--phd-hero-btn-bg);
  color: var(--phd-white);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  border: none;
  border-radius: var(--phd-hero-btn-radius);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--phd-transition);
  box-shadow: var(--phd-hero-btn-shadow);
}
.phd-hero .phd-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79,160,93,0.5);
  color: var(--phd-white);
}
.phd-hero .hero-illustration {
  text-align: center;
}
.phd-hero .hero-illustration img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

/* Animation helpers */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.fade-in-left {
  transform: translateX(-40px);
}
.animate-on-scroll.fade-in-right {
  transform: translateX(40px);
}
.animate-on-scroll.fade-in-up {
  transform: translateY(40px);
}
.animate-on-scroll.slide-in-up {
  transform: translateY(60px);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* === MEMBERSHIP / PRICING === */
.phd-membership {
  background: var(--phd-membership-bg);
  padding: var(--phd-membership-padding);
  font-family: var(--phd-membership-font);
  position: relative;
  overflow: hidden;
}
.phd-membership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(79,160,93,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 100% 100%, rgba(79,160,93,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.phd-membership .section-title {
  font-size: var(--phd-membership-title-size);
  font-weight: 700;
  background: var(--phd-membership-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.phd-membership .section-subtitle {
  color: var(--phd-membership-subtitle-color);
  font-size: 1.1rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}
.phd-membership .sebi-warning {
  text-align: center;
  color: var(--phd-membership-sebi-color);
  font-size: 0.8rem;
  margin: 30px 0 10px;
  padding: 12px 20px;
  background: var(--phd-membership-sebi-bg);
  border-radius: 12px;
  border: 1px solid rgba(251,191,36,0.15);
  position: relative;
  z-index: 1;
}

/* Membership card grid */
.phd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Membership card */
.phd-m-card {
  background: var(--phd-membership-card-bg);
  backdrop-filter: blur(var(--phd-membership-card-blur));
  -webkit-backdrop-filter: blur(var(--phd-membership-card-blur));
  border: var(--phd-membership-card-border);
  border-radius: var(--phd-membership-card-radius);
  padding: var(--phd-membership-card-padding);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.phd-m-card:hover {
  transform: translateY(var(--phd-membership-card-hover-y));
  border-color: rgba(79,160,93,0.3);
  box-shadow: 0 20px 60px rgba(79,160,93,0.15);
}

/* Premium card */
.phd-m-card.premium {
  background: var(--phd-membership-premium-bg);
  border-color: var(--phd-membership-premium-border);
  box-shadow: 0 0 30px rgba(79,160,93,0.08);
}
.phd-m-card.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--phd-membership-premium-topline);
}
.phd-m-card.premium:hover {
  border-color: rgba(79,160,93,0.4);
  box-shadow: 0 20px 60px rgba(79,160,93,0.2);
}

/* F&O Edge card */
.phd-m-card.fno-edge {
  background: var(--phd-membership-fno-bg);
  border-color: var(--phd-membership-fno-border);
  box-shadow: var(--phd-membership-fno-shadow), inset 0 0 30px rgba(157,206,159,0.08);
}
.phd-m-card.fno-edge:hover {
  border-color: rgba(79,160,93,0.5);
  box-shadow: 0 20px 60px rgba(79,160,93,0.2), inset 0 0 30px rgba(79,160,93,0.08);
}

/* Card elements */
.phd-m-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--phd-membership-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--phd-membership-icon-color);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.phd-m-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--phd-membership-title-color);
  margin-bottom: 4px;
}
.phd-m-card .card-subtitle {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--phd-membership-subtitle-color);
  margin-bottom: 20px;
}
.phd-m-card .card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--phd-white);
  letter-spacing: 0.5px;
}
.phd-m-card .card-badge.blue {
  background: var(--phd-membership-badge-blue);
}
.phd-m-card .card-badge.purple {
  background: var(--phd-membership-badge-purple);
}
.phd-m-card .card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.phd-m-card .card-features li {
  color: var(--phd-membership-text-color);
  font-size: 0.95rem;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.phd-m-card .card-features li i {
  color: var(--phd-membership-icon-color);
  margin-top: 3px;
  flex-shrink: 0;
}
.phd-m-card.fno-edge .card-features li i {
  color: var(--phd-membership-fno-icon-color);
}

/* Card buttons */
.phd-m-card .btn-outline {
  display: block;
  width: 100%;
  padding: var(--phd-btn-padding);
  background: transparent;
  border: var(--phd-btn-outline-border);
  color: var(--phd-white);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  font-size: var(--phd-btn-font-size);
  border-radius: var(--phd-btn-radius-md);
  text-decoration: none;
  text-align: center;
  transition: all var(--phd-transition);
  cursor: pointer;
}
.phd-m-card .btn-outline:hover {
  background: var(--phd-btn-outline-hover-bg);
  border-color: rgba(255,255,255,0.4);
  color: var(--phd-white);
}
.phd-m-card .btn-filled {
  display: block;
  width: 100%;
  padding: var(--phd-btn-padding);
  background: var(--phd-btn-filled-bg);
  border: none;
  color: var(--phd-white);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  font-size: var(--phd-btn-font-size);
  border-radius: var(--phd-btn-radius-md);
  text-decoration: none;
  text-align: center;
  transition: all var(--phd-transition);
  cursor: pointer;
}
.phd-m-card .btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: var(--phd-btn-filled-shadow);
  color: var(--phd-white);
}
.phd-m-card .btn-purple {
  display: block;
  width: 100%;
  padding: var(--phd-btn-padding);
  background: var(--phd-btn-purple-bg);
  border: none;
  color: var(--phd-white);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  font-size: var(--phd-btn-font-size);
  border-radius: var(--phd-btn-radius-md);
  text-decoration: none;
  text-align: center;
  transition: all var(--phd-transition);
  cursor: pointer;
}
.phd-m-card .btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: var(--phd-btn-purple-shadow);
  color: var(--phd-white);
}

/* Connect CTA Box */
.phd-connect-box {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 40px;
  border: var(--phd-membership-connect-border);
  border-radius: var(--phd-membership-card-radius);
  text-align: center;
  position: relative;
  z-index: 1;
}
.phd-connect-box p {
  color: var(--phd-membership-subtitle-color);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.phd-connect-box .btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: transparent;
  border: 2px solid var(--phd-membership-connect-btn);
  color: var(--phd-membership-connect-btn);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--phd-transition);
  animation: pulseBlue 3s infinite;
}
.phd-connect-box .btn-connect:hover {
  background: var(--phd-membership-connect-btn);
  color: var(--phd-white);
  animation: none;
}
@keyframes pulseBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,160,93,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(79,160,93,0); }
}

/* === MODEL PORTFOLIO SECTION === */
.phd-portfolio {
  background: var(--phd-portfolio-bg);
  padding: var(--phd-portfolio-padding);
  font-family: var(--phd-portfolio-font);
}
.phd-portfolio .section-title {
  font-size: var(--phd-portfolio-title-size);
  font-weight: 700;
  color: var(--phd-portfolio-title-color);
  text-align: center;
  margin-bottom: 0.75rem;
}
.phd-portfolio .section-subtitle {
  color: var(--phd-portfolio-subtitle-color);
  font-size: 1.0625rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.phd-portfolio .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.phd-p-card {
  background: var(--phd-portfolio-card-bg);
  border: 1px solid var(--phd-portfolio-card-border);
  border-radius: var(--phd-portfolio-card-radius);
  padding: var(--phd-portfolio-card-padding);
  display: flex;
  flex-direction: column;
  box-shadow: var(--phd-portfolio-card-shadow);
  transition: all var(--phd-transition);
}
.phd-p-card:hover {
  transform: translateY(var(--phd-portfolio-card-hover-y));
  box-shadow: var(--phd-portfolio-card-hover-shadow);
}
.phd-p-card .pcard-logo {
  width: var(--phd-portfolio-logo-size);
  height: var(--phd-portfolio-logo-size);
  border-radius: var(--phd-portfolio-radius-sm);
  object-fit: cover;
  margin-bottom: 20px;
}
.phd-p-card .pcard-title {
  font-size: var(--phd-portfolio-title-font-size);
  font-weight: 700;
  color: var(--phd-portfolio-title-color);
  margin-bottom: 8px;
}
.phd-p-card .pcard-desc {
  font-size: 0.9375rem;
  color: var(--phd-portfolio-desc-color);
  flex-grow: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}
.phd-p-card .pcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--phd-portfolio-badge-bg);
  border: 1px solid var(--phd-portfolio-badge-border);
  color: var(--phd-portfolio-badge-color);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 20px;
  align-self: flex-start;
}
.phd-p-card .pcard-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--phd-portfolio-card-bg);
  border: 2px solid var(--phd-portfolio-btn-border);
  color: var(--phd-portfolio-btn-color);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  font-size: var(--phd-btn-font-size);
  border-radius: var(--phd-portfolio-radius-md);
  text-decoration: none;
  text-align: center;
  transition: all var(--phd-transition);
  cursor: pointer;
}
.phd-p-card .pcard-btn:hover {
  background: var(--phd-portfolio-btn-hover-bg);
  color: var(--phd-white);
}
.phd-p-card .pcard-factsheet {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--phd-portfolio-factsheet-color);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--phd-transition);
}
.phd-p-card .pcard-factsheet:hover {
  color: var(--phd-portfolio-btn-color);
}

/* === MUTUAL FUND SECTION === */
.phd-mutual-fund {
  background: var(--phd-mf-bg);
  padding: var(--phd-mf-padding);
  font-family: var(--phd-mf-font);
}
.phd-mutual-fund h2 {
  font-size: var(--phd-mf-h2-size);
  font-weight: 700;
  color: var(--phd-mf-h2-color);
  margin-bottom: 0.5rem;
}
.phd-mutual-fund h3 {
  font-size: var(--phd-mf-h3-size);
  font-weight: 600;
  color: var(--phd-mf-h3-color);
  margin-bottom: 1rem;
}
.phd-mutual-fund p {
  color: var(--phd-mf-text-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.phd-mutual-fund .mf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--phd-mf-btn-bg);
  color: var(--phd-mf-btn-text);
  font-weight: 700;
  font-family: var(--phd-font-heading);
  border: none;
  border-radius: var(--phd-mf-btn-radius);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--phd-transition);
  box-shadow: var(--phd-mf-btn-shadow);
}
.phd-mutual-fund .mf-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79,160,93,0.4);
  color: var(--phd-mf-btn-text);
}
.phd-mutual-fund .mf-illustration {
  text-align: center;
}
.phd-mutual-fund .mf-illustration img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

/* === ABOUT US SECTION === */
.phd-about {
  background: var(--phd-about-bg);
  padding: var(--phd-about-padding);
  font-family: var(--phd-about-font);
}
.phd-about h2 {
  font-size: var(--phd-about-h2-size);
  font-weight: 700;
  color: var(--phd-about-h2-color);
  margin-bottom: 1rem;
}
.phd-about p {
  color: var(--phd-about-text-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.phd-about .about-stats {
  background: var(--phd-about-stats-bg);
  border-radius: var(--phd-about-stats-radius);
  padding: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.phd-about .about-stats i {
  font-size: 2rem;
  color: var(--phd-about-icon-color);
}
.phd-about .about-stats .stat-label {
  color: var(--phd-about-stat-label);
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.phd-about .about-stats .stat-value {
  color: var(--phd-about-stat-value);
  font-size: 1.1rem;
  font-weight: 700;
}
.phd-about .about-logo {
  text-align: center;
}
.phd-about .about-logo img {
  max-width: 100%;
  height: auto;
  max-height: 256px;
}

/* === ABOUT FOUNDER SECTION === */
.phd-founder {
  background: var(--phd-founder-bg);
  padding: var(--phd-founder-padding);
  font-family: var(--phd-founder-font);
}
.phd-founder .founder-img {
  position: relative;
  text-align: center;
}
.phd-founder .founder-img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--phd-founder-img-radius);
  max-height: 350px;
}
/* .phd-founder .founder-img .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--phd-founder-play-size);
  height: var(--phd-founder-play-size);
  background: var(--phd-founder-play-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phd-founder-play-color);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all var(--phd-transition);
}
.phd-founder .founder-img .play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
} */
.phd-founder h2 {
  font-size: var(--phd-founder-h2-size);
  font-weight: 700;
  color: var(--phd-founder-h2-color);
  margin-bottom: 1rem;
}
.phd-founder p {
  color: var(--phd-founder-text-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.phd-founder .telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--phd-founder-telegram-bg);
  color: var(--phd-white);
  font-weight: 600;
  font-family: var(--phd-font-heading);
  border: none;
  border-radius: var(--phd-founder-telegram-radius);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--phd-transition);
  box-shadow: var(--phd-founder-telegram-shadow);
}
.phd-founder .telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30,140,203,0.4);
  color: var(--phd-white);
}

.phd-founder .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--phd-faq-cta-btn-bg);
  color: var(--phd-white);
  font-weight: 600;
  border-radius: var(--phd-faq-cta-btn-radius);
  text-decoration: none;
  transition: all var(--phd-transition);
  font-size: 1rem;
}
.phd-founder .whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--phd-faq-cta-btn-shadow);
  color: var(--phd-white);
}


.phd-founder .telegram-qr {
  max-width: var(--phd-founder-qr-max-w);
  height: auto;
  margin-top: 16px;
  border-radius: var(--phd-radius);
}

/* === COMPLIANCE SECTION === */
.compliance-section {
  background: var(--phd-white);
  padding: 80px 0;
  font-family: var(--phd-font-heading);
}
.compliance-section .section-title {
  font-family: var(--phd-font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.75rem;
}
.compliance-section .section-desc {
  color: #334155;
  font-size: 1.0625rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.compliance-tabs-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; }
.comp-tab-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 50px; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--phd-transition); letter-spacing: .04em; white-space: nowrap; }
.comp-tab-btn i { color: var(--phd-primary); font-size: .85rem; }
.comp-tab-btn:hover { border-color: var(--phd-primary); color: var(--phd-primary); background: rgba(79,160,93,0.06); }
.comp-tab-btn.active { background: var(--phd-primary); border-color: var(--phd-primary); color: var(--phd-white); }
.comp-tab-btn.active i { color: var(--phd-white); }

.comp-panel { display: none; }
.comp-panel.active { display: block; animation: fadeInUp .4s ease both; }

.comp-panel-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.comp-panel-icon { width: 44px; height: 44px; background: rgba(79,160,93,0.06); border: 1px solid var(--phd-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--phd-primary); flex-shrink: 0; }
.comp-panel-title { font-size: 1.25rem; font-weight: 600; margin: 0; }

.comp-inner-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem 1.4rem; height: 100%; }
.comp-inner-title { font-size: 0.875rem; font-weight: 600; color: #1e293b; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.comp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.comp-list li { font-size: 0.875rem; color: #334155; padding-left: 1rem; position: relative; line-height: 1.6; }
.comp-list li::before { content:'›'; position: absolute; left: 0; color: var(--phd-primary); font-weight: 700; }

.comp-alert-box { background: rgba(79,160,93,0.04); border: 1px solid var(--phd-primary); border-left: 4px solid var(--phd-primary); border-radius: 12px; padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.comp-alert-icon { font-size: 1.4rem; color: var(--phd-primary); flex-shrink: 0; margin-top: .1rem; }
.comp-alert-box p { font-size: 0.875rem; color: #334155; }

.dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--phd-white);
    border-bottom: 2px solid var(--phd-white);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(-135deg);
}

.custom-dropdown {
    position: relative;
}

.dropdown-selected {
    background: #f1f5f9;
    border: 1px solid var(--phd-primary);
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.dropdown-list {
    position: absolute;
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--phd-primary);
    border-radius: 12px;
    margin-top: 6px;
    display: none;
    z-index: 999;
}

.dropdown-item {
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(79,160,93,0.06);
}

/* Escalation steps */
.escalation-steps { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.esc-step { display: flex; gap: 1rem; align-items: flex-start; }
.esc-num { width: 28px; height: 28px; background: var(--phd-primary); color: var(--phd-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
.esc-step > div:last-child { font-size: 0.875rem; color: #334155; line-height: 1.6; }
.esc-step a { color: var(--phd-primary); }

/* Complaint table */
.comp-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e2e8f0; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.comp-table thead tr { background: rgba(79,160,93,0.06); border-bottom: 1px solid var(--phd-primary); }
.comp-table th { padding: .85rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--phd-primary); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.comp-table td { padding: .85rem 1rem; color: #334155; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.comp-table tfoot td { font-weight: 700; color: #1e293b; background: #f1f5f9; border-top: 2px solid var(--phd-primary); }
.comp-table tr:hover td { background: rgba(79,160,93,0.06); }

/* Audit */
.audit-stat-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem; text-align: center; }
.audit-stat-val { font-size: 1.125rem; font-weight: 700; color: #1e293b; margin-bottom: .25rem; }
.audit-stat-lbl { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; }
.audit-table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.audit-table th { padding: .7rem 1rem; background: #f1f5f9; color: var(--phd-primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--phd-primary); }
.audit-table td { padding: .7rem 1rem; color: #334155; border-bottom: 1px solid #e2e8f0; }
.badge-compliant { background: rgba(39,174,96,.15); color: #27ae60; font-size: 0.75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 50px; }

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


/* === FAQ SECTION === */
.phd-faq {
  background: var(--phd-founder-bg);
  padding: var(--phd-faq-padding);
  font-family: var(--phd-faq-font);
}
.phd-faq h2 {
  font-size: var(--phd-faq-h2-size);
  font-weight: 700;
  color: var(--phd-faq-h2-color);
  text-align: center;
  margin-bottom: 0.5rem;
}
.phd-faq .faq-subtitle {
  text-align: center;
  color: var(--phd-faq-subtitle-color);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.phd-faq .faq-grid {
  max-width: 900px;
  margin: 0 auto;
}
.phd-faq .accordion-item {
  border: 1px solid var(--phd-faq-accordion-border);
  border-radius: var(--phd-faq-accordion-radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.phd-faq .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--phd-faq-btn-color);
  padding: 20px 24px;
  background: var(--phd-faq-bg);
  box-shadow: none !important;
  font-family: var(--phd-font-heading);
}
.phd-faq .accordion-button:not(.collapsed) {
  background: var(--phd-faq-btn-active-bg);
  color: var(--phd-faq-btn-active-color);
}
.phd-faq .accordion-button::after {
  background-size: 16px;
  transition: transform var(--phd-transition);
}
.phd-faq .accordion-body {
  padding: 0 24px 20px;
  color: var(--phd-faq-body-color);
  font-size: 0.95rem;
  line-height: 1.7;
}
.phd-faq .faq-cta {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: var(--phd-faq-cta-bg);
  border-radius: 16px;
}
.phd-faq .faq-cta p {
  color: var(--phd-faq-body-color);
  margin-bottom: 16px;
}
.phd-faq .faq-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--phd-faq-cta-btn-bg);
  color: var(--phd-white);
  font-weight: 600;
  border-radius: var(--phd-faq-cta-btn-radius);
  text-decoration: none;
  transition: all var(--phd-transition);
  font-size: 1rem;
}
.phd-faq .faq-cta a:hover {
  transform: translateY(-2px);
  box-shadow: var(--phd-faq-cta-btn-shadow);
  color: var(--phd-white);
}

/* === FOOTER === */
.phd-footer-wrapper {
  font-family: var(--phd-footer-font);
  background: var(--phd-footer-bg);
  color: var(--phd-footer-text-color);
  padding: var(--phd-footer-padding);
  overflow: hidden;
}
.phd-footer-wrapper a {
  color: var(--phd-footer-link-color);
}
.phd-footer-wrapper a:hover {
  color: var(--phd-footer-link-hover);
}
.phd-footer-wrapper .container {
  max-width: var(--phd-footer-container-max);
}

.phd-footer-grid {
  display: grid;
  grid-template-columns: var(--phd-footer-grid-cols);
  gap: var(--phd-footer-grid-gap);
  padding-bottom: 40px;
}

.phd-footer-col h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--phd-footer-heading-color);
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
}
.phd-footer-col h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--phd-footer-heading-underline);
  border-radius: 2px;
}

.phd-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.phd-footer-col ul li {
  margin-bottom: 10px;
}
.phd-footer-col ul li a {
  color: var(--phd-footer-link-color);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: all var(--phd-transition);
}
.phd-footer-col ul li a:hover {
  color: var(--phd-footer-link-hover);
  text-decoration-style: dashed;
}

.phd-footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--phd-footer-text-color);
}
.phd-footer-col .contact-item i {
  margin-top: 4px;
  color: var(--phd-footer-contact-icon);
  width: 16px;
  flex-shrink: 0;
}
.phd-footer-col .contact-item a {
  color: var(--phd-footer-link-color);
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
}
.phd-footer-col .contact-item a:hover {
  color: var(--phd-footer-link-hover);
}

/* Social Icons */
.phd-social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.phd-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--phd-footer-social-bg);
  color: var(--phd-white);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--phd-transition);
}
.phd-social-links a:hover {
  background: var(--phd-footer-social-hover);
  border-color: var(--phd-footer-link-color);
  color: var(--phd-white);
  transform: translateY(-3px);
}

/* Footer CTA */
.phd-footer-cta {
  background: var(--phd-footer-disclaimer-bg);
  border: 1px solid var(--phd-footer-disclaimer-border);
  border-radius: 12px;
  padding: 40px;
  margin: 30px 0;
}
.phd-footer-cta p {
  color: var(--phd-footer-muted-color);
  font-size: 0.95rem;
  line-height: 1.7;
}
.phd-footer-cta .footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: transparent;
  border: 2px solid var(--phd-footer-cta-btn-border);
  color: var(--phd-footer-cta-btn-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  min-height: 48px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--phd-transition);
  cursor: pointer;
}
.phd-footer-cta .footer-cta-btn:hover {
  background: var(--phd-footer-cta-btn-hover-bg);
  color: var(--phd-footer-cta-btn-hover-text);
}

/* Copyright */
.phd-copyright {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--phd-footer-copyright-border);
  color: var(--phd-footer-copyright-color);
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .phd-header {
    height: var(--phd-header-height-mobile);
  }
  .phd-header-placeholder {
    height: 105px;
  }
  .phd-nav { display: none; }
  .phd-header .phd-cta-btn { display: none; }
  .phd-mobile-toggle { display: flex; }
  .phd-mobile-menu { display: block; }

  .phd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .phd-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .phd-portfolio .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 991px) {
  .phd-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  .phd-hero .hero-illustration {
    margin-top: 40px;
  }
  .phd-mutual-fund .mf-illustration {
    margin-top: 40px;
  }
  /* .phd-about .about-logo {
    margin-top: 40px;
  } */
  .phd-founder .founder-quote {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .phd-header-placeholder {
    height: 105px;
  }
  .phd-a11y-bar span {
    font-size: 0.65rem;
  }

  .phd-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .phd-portfolio .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .phd-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .phd-m-card {
    padding: 30px 24px;
  }
  .phd-p-card {
    padding: 24px;
  }
  .phd-connect-box {
    padding: 24px;
  }
  .phd-footer-cta {
    padding: 24px;
  }

  .phd-hero {
    padding: 100px 0 50px;
  }
  .phd-membership,
  .phd-portfolio,
  .phd-mutual-fund,
  .phd-about,
  .phd-founder,
  .phd-faq,
  .compliance-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .phd-hero h1 {
    font-size: 1.8rem;
  }
  .phd-membership .section-title {
    font-size: 1.8rem;
  }
}

/* === ACCESSIBLE GREEN (WCAG AA 4.5:1 compliant) === */
.comp-table th,
.audit-table th,
.esc-step a,
.phd-faq .accordion-button:not(.collapsed) {
  color: #2d6a3a;
}
.comp-tab-btn.active {
  background: #2d6a3a;
  border-color: #2d6a3a;
  color: #ffffff;
}

/* == FOCUS VISIBLE === */
:focus-visible {
  outline: 3px solid var(--phd-focus);
  outline-offset: 2px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
