/**
 * PTSDN Custom Styling - Enhancements for Arsha Template
 * Brand Colors:
 * - Primary Navy: #37517e
 * - Accent Blue: #47b2e4
 * - Deep Blue: #2a3f65
 * - Light Slate (BG): #f3f5fa
 * - Border / Card: #e2e8f0 / #ffffff
 */

:root {
  --ptsdn-primary: #37517e;
  --ptsdn-primary-dark: #2a3f65;
  --ptsdn-accent: #47b2e4;
  --ptsdn-accent-hover: #209dd8;
  --ptsdn-bg-light: #f3f5fa;
  --ptsdn-text-main: #444444;
  --ptsdn-text-muted: #64748b;
  --ptsdn-radius: 14px;
  --ptsdn-shadow: 0 10px 30px rgba(55, 81, 126, 0.08);
  --ptsdn-shadow-hover: 0 16px 40px rgba(55, 81, 126, 0.14);
}

/* Base enhancements */
body {
  color: var(--ptsdn-text-main);
  overflow-x: hidden;
}

/* Ensure dynamic year always has clear space separation */
.current-year {
  display: inline-block;
  margin-left: 0.3em;
}
.navbar a .current-year {
  margin-left: 5px;
}

/* Top bar badge & announcement if needed */
.ptsdn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(71, 178, 228, 0.12);
  color: var(--ptsdn-accent);
  border: 1px solid rgba(71, 178, 228, 0.25);
  margin-bottom: 16px;
}
.ptsdn-badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Layout - Balanced and proportional offset below fixed navbar */
#hero {
  width: 100%;
  min-height: 75vh !important;
  height: auto !important;
  padding-top: 85px !important;
  padding-bottom: 50px !important;
  background: #37517e;
  display: flex !important;
  align-items: center;
}

#hero .container {
  padding-top: 15px !important;
}

#hero h2 {
  margin-bottom: 25px !important;
  font-size: 20px !important;
  line-height: 1.5 !important;
}

@media (max-width: 991px) {
  #hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 85px !important;
    padding-bottom: 40px !important;
  }
}

/* Modern Hero additions */
#hero .btn-secondary-custom {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 11px 28px;
  border-radius: 50px;
  transition: 0.4s;
  margin: 10px 0 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
#hero .btn-secondary-custom:hover {
  background: #fff;
  color: var(--ptsdn-primary);
  border-color: #fff;
}

.hero-features {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}
.hero-feat-item i {
  color: var(--ptsdn-accent);
  font-size: 18px;
}

/* Trust Bar / Stats */
.trust-bar {
  padding: 24px 0;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
}
.trust-item {
  text-align: center;
  padding: 10px 15px;
}
.trust-item h4 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 13px;
  color: var(--ptsdn-text-muted);
  margin: 0;
}

/* 3 Core Pillars Cards */
.pillar-card {
  background: #fff;
  border-radius: var(--ptsdn-radius);
  padding: 36px 28px;
  box-shadow: var(--ptsdn-shadow);
  border: 1px solid #edf2f7;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ptsdn-accent);
  opacity: 0;
  transition: 0.3s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ptsdn-shadow-hover);
  border-color: rgba(71, 178, 228, 0.3);
}
.pillar-card:hover::before {
  opacity: 1;
}
.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(71, 178, 228, 0.12);
  color: var(--ptsdn-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: 0.3s;
}
.pillar-card:hover .pillar-icon {
  background: var(--ptsdn-primary);
  color: #fff;
}
.pillar-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin-bottom: 12px;
}
.pillar-card p {
  font-size: 14px;
  color: var(--ptsdn-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.pillar-list li {
  font-size: 13.5px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ptsdn-text-main);
}
.pillar-list li i {
  color: var(--ptsdn-accent);
  font-size: 16px;
}
.pillar-action {
  margin-top: auto;
}

/* Pricing Section Custom Tabs */
.ptsdn-nav-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.ptsdn-nav-pills .nav-link {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 50px;
  background: #ffffff;
  color: var(--ptsdn-primary);
  border: 1px solid #dce4ed;
  box-shadow: 0 4px 12px rgba(55, 81, 126, 0.04);
  transition: all 0.3s ease;
}
.ptsdn-nav-pills .nav-link:hover {
  border-color: var(--ptsdn-accent);
  color: var(--ptsdn-accent);
}
.ptsdn-nav-pills .nav-link.active {
  background: var(--ptsdn-primary);
  color: #ffffff;
  border-color: var(--ptsdn-primary);
  box-shadow: 0 6px 18px rgba(55, 81, 126, 0.25);
}

/* Modern Pricing Cards */
.pricing-card-custom {
  background: #fff;
  border-radius: var(--ptsdn-radius);
  padding: 34px 28px;
  box-shadow: var(--ptsdn-shadow);
  border: 1px solid #edf2f7;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card-custom.featured {
  border: 2px solid var(--ptsdn-accent);
  transform: scale(1.02);
}
.pricing-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--ptsdn-shadow-hover);
}
.pricing-card-custom.featured:hover {
  transform: scale(1.02) translateY(-6px);
}
.pricing-badge-popular {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--ptsdn-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(71, 178, 228, 0.4);
}
.pricing-header-custom h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin-bottom: 6px;
}
.pricing-header-custom .pricing-desc {
  font-size: 13px;
  color: var(--ptsdn-text-muted);
  margin-bottom: 16px;
}
.pricing-header-custom .price-tag {
  font-size: 32px;
  font-weight: 800;
  color: var(--ptsdn-primary);
  font-family: "Jost", sans-serif;
  margin-bottom: 20px;
}
.pricing-header-custom .price-tag span {
  font-size: 14px;
  font-weight: 400;
  color: var(--ptsdn-text-muted);
}
.pricing-features-custom {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  flex-grow: 1;
}
.pricing-features-custom li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ptsdn-text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features-custom li i {
  color: #22c55e;
  font-size: 18px;
  margin-top: 1px;
}
.pricing-card-custom .btn-buy {
  display: block;
  text-align: center;
  background: var(--ptsdn-primary);
  color: #fff;
  padding: 11px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}
.pricing-card-custom .btn-buy:hover {
  background: var(--ptsdn-accent);
  color: #fff;
}
.pricing-card-custom.featured .btn-buy {
  background: var(--ptsdn-accent);
}
.pricing-card-custom.featured .btn-buy:hover {
  background: var(--ptsdn-primary);
}

/* Modules Grid Showcase */
.module-chip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.25s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
}
.module-chip:hover {
  border-color: var(--ptsdn-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(55, 81, 126, 0.08);
}
.module-chip-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(71, 178, 228, 0.12);
  color: var(--ptsdn-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.module-chip-text h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin: 0 0 3px 0;
}
.module-chip-text p {
  font-size: 12.5px;
  color: var(--ptsdn-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Dual-Channel Contact Hub */
.contact-hub-card {
  background: #ffffff;
  border-radius: var(--ptsdn-radius);
  padding: 32px 28px;
  box-shadow: var(--ptsdn-shadow);
  border: 1px solid #edf2f7;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact-hub-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2f7;
}
.contact-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ptsdn-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.contact-hub-icon.b2b {
  background: var(--ptsdn-accent);
}
.contact-hub-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin: 0 0 4px 0;
}
.contact-hub-header p {
  font-size: 13px;
  color: var(--ptsdn-text-muted);
  margin: 0;
}
.contact-person-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #eef2f6;
}
.contact-person-info h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin: 0 0 2px 0;
}
.contact-person-info span {
  font-size: 12px;
  color: var(--ptsdn-text-muted);
}
.btn-wa-direct {
  background: #25d366;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.25s;
}
.btn-wa-direct:hover {
  background: #1eb954;
  transform: scale(1.04);
}

/* Floating WhatsApp Router Widget */
.floating-wa-router {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}
.floating-wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.floating-wa-btn:hover {
  transform: scale(1.08);
}
.floating-wa-menu {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: none;
  animation: fadeIn 0.25s ease forwards;
}
.floating-wa-menu.active {
  display: block;
}
.floating-wa-menu-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}
.floating-wa-menu-header h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin: 0 0 2px 0;
}
.floating-wa-menu-header p {
  font-size: 12px;
  color: var(--ptsdn-text-muted);
  margin: 0;
}
.floating-wa-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  margin-bottom: 8px;
  text-decoration: none;
  transition: 0.25s;
}
.floating-wa-option:hover {
  background: #eef8f2;
  border-color: #86efac;
}
.floating-wa-option i.opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.15);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.floating-wa-option-text h6 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ptsdn-primary);
  margin: 0 0 2px 0;
}
.floating-wa-option-text p {
  font-size: 11.5px;
  color: var(--ptsdn-text-muted);
  margin: 0;
}

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

/* Back to Top button - Positioned elegantly above the floating WhatsApp widget */
.back-to-top {
  position: fixed !important;
  visibility: hidden;
  opacity: 0;
  right: 33px !important;
  bottom: 98px !important;
  z-index: 996 !important;
  background: var(--ptsdn-accent) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(55, 81, 126, 0.25) !important;
  text-decoration: none !important;
}

.back-to-top i {
  font-size: 26px !important;
  color: #ffffff !important;
  line-height: 0 !important;
  transition: transform 0.2s ease !important;
}

.back-to-top:hover {
  background: var(--ptsdn-primary) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(55, 81, 126, 0.35) !important;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

.back-to-top.active {
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .floating-wa-router {
    bottom: 20px !important;
    right: 20px !important;
  }
  .floating-wa-btn {
    width: 52px !important;
    height: 52px !important;
    font-size: 28px !important;
  }
  .floating-wa-menu {
    bottom: 64px !important;
    right: 0 !important;
    width: 290px !important;
  }
  .back-to-top {
    right: 26px !important;
    bottom: 84px !important;
    width: 40px !important;
    height: 40px !important;
  }
  .back-to-top i {
    font-size: 22px !important;
  }
}

/* Catalog Page Custom Styles */
.catalog-cover {
  background: linear-gradient(135deg, var(--ptsdn-primary-dark) 0%, var(--ptsdn-primary) 60%, #1e40af 100%);
  color: #ffffff;
  padding: 50px 0 40px;
  position: relative;
}
.catalog-nav-tabs {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 30px;
}
.catalog-nav-tabs a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ptsdn-primary);
  text-decoration: none;
  transition: 0.25s;
}
.catalog-nav-tabs a:hover,
.catalog-nav-tabs a.active {
  background: var(--ptsdn-primary);
  color: #ffffff;
}

.table-custom-ptsdn {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ptsdn-shadow);
  border: 1px solid #eef2f6;
  margin-bottom: 25px;
}
.table-custom-ptsdn th {
  background: #f8fafc;
  color: var(--ptsdn-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.table-custom-ptsdn td {
  padding: 14px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.table-custom-ptsdn tr:last-child td {
  border-bottom: none;
}
.table-custom-ptsdn tr:hover td {
  background: #f8fbff;
}

/* Print Optimization */
@media print {
  #header, #footer, .floating-wa-router, .catalog-nav-tabs, .btn-print-hide, .back-to-top {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .catalog-cover {
    background: #fff !important;
    color: #000 !important;
    padding: 10px 0 !important;
    border-bottom: 2px solid #37517e !important;
  }
  .table-custom-ptsdn {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Mobile Navigation Enhancements for Touch Devices */
@media (max-width: 991px) {
  .navbar-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(30, 41, 59, 0.92) !important;
    backdrop-filter: blur(6px);
    z-index: 9999 !important;
    overflow-y: auto;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: fixed !important;
    top: 18px !important;
    right: 20px !important;
    font-size: 32px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    z-index: 10000 !important;
  }

  .navbar-mobile ul {
    display: block !important;
    position: absolute !important;
    top: 65px !important;
    right: 15px !important;
    left: 15px !important;
    max-height: calc(100vh - 90px);
    padding: 12px 0 !important;
    border-radius: 14px !important;
    background-color: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    list-style: none !important;
  }

  .navbar-mobile ul li {
    padding: 2px 14px !important;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--ptsdn-primary) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: 0.2s ease !important;
  }

  .navbar-mobile a:hover,
  .navbar-mobile a:active {
    background-color: #f1f5f9 !important;
    color: var(--ptsdn-accent) !important;
    padding-left: 18px !important;
  }

  .navbar-mobile .getstarted,
  .navbar-mobile .getstarted:focus {
    margin: 12px 14px 6px !important;
    background: var(--ptsdn-primary) !important;
    color: #ffffff !important;
    border: none !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(55, 81, 126, 0.25) !important;
  }

  .navbar-mobile .getstarted:hover {
    background: var(--ptsdn-accent) !important;
    color: #ffffff !important;
  }
}
