/* ========================================
   UrsaPDF Brand Customization
   Minimal override, preserving template structure
   ======================================== */

/* ─────────────────────────────────────────────
   导航栏高度缩小 20%（覆盖模板默认 80px / line-height 100px）
   80px × 0.8 = 64px，100px × 0.8 = 80px
   ───────────────────────────────────────────── */
.header-area {
  top: 32px !important;        /* 原 40px × 0.8 */
}
.header-area .main-nav {
  min-height: 64px !important;  /* 原 80px × 0.8 */
}
.header-area .main-nav .logo {
  line-height: 80px !important;  /* 原 100px × 0.8 */
}

/* Logo color - slightly smaller */
.header-area .main-nav .logo {
  color: #fff;
  font-size: 32px;
  margin-left: -15px;           /* 向左移，抵消 .container 的 padding-left */
  padding-left: 0;
  letter-spacing: 1.5px;
  font-weight: 500;             /* 变细（原 800） */
}

/* Main banner H2 变细（覆盖模板 font-weight: 800）*/
.main-banner .caption h2 {
  font-weight: 500 !important;
  letter-spacing: 0.5px;
}

/* Accent color for active nav items */
.header-area .main-nav .nav li a.active {
  color: #f5a425;
}

/* Hover color for nav */
.header-area .main-nav .nav li:hover a {
  color: #f5a425;
}

/* Keep nav white on transparent header */
.header-area .main-nav .nav li a {
  color: #fff;
  transition: all .3s;
}

/* ========================================
   Left-side navigation (Home/Pricing/Download/Features/Contact)
   ======================================== */
.header-area .main-nav .nav-left {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  float: left;
  margin-top: 30px;
  margin-right: 0px;
  margin-left: 30px;
  background-color: transparent;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  position: relative;
  z-index: 999;
}

.background-header .nav-left {
  margin-top: 20px !important;
}

.header-area .main-nav .nav-left li {
  padding-left: 15px;
  padding-right: 15px;
}

.header-area .main-nav .nav-left li:last-child {
  padding-right: 0px;
}

.header-area .main-nav .nav-left li a {
  display: block;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  height: 40px;
  line-height: 40px;
  border: transparent;
  letter-spacing: 1px;
}

.header-area .main-nav .nav-left li:hover a,
.header-area .main-nav .nav-left li a.active {
  color: #f5a425 !important;
}

.background-header .main-nav .nav-left li:hover a,
.background-header .main-nav .nav-left li a.active {
  color: #f5a425 !important;
  opacity: 1;
}

.background-header .main-nav .nav-left li a {
  color: #fff !important;
}

/* Mobile responsive for nav-left */
@media (max-width: 767px) {
  .header-area .main-nav .nav-left {
    float: none;
    width: 100%;
    display: none;
    -webkit-transition: all 0s ease 0s;
    -moz-transition: all 0s ease 0s;
    -o-transition: all 0s ease 0s;
    transition: all 0s ease 0s;
    margin-left: 0px;
  }
  .header-area .main-nav .nav-left li:first-child {
    border-top: 1px solid #eee;
  }
  .header-area.header-sticky .nav-left {
    margin-top: 100px !important;
  }
  .header-area .main-nav .nav-left li {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .header-area .main-nav .nav-left li a {
    height: 50px !important;
    line-height: 50px !important;
    padding: 0px !important;
    border: none !important;
    background: #f7f7f7 !important;
    color: #191a20 !important;
  }
  .header-area .main-nav .nav-left li a:hover {
    background: #eee !important;
    color: #f5a425 !important;
  }
}

/* Scrolled header background - solid dark */
.background-header {
  background-color: #1e1e1e !important;
}

/* Navigation hover/active always orange - even on scrolled header */
.header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active,
.background-header .main-nav .nav li:hover a,
.background-header .main-nav .nav li a.active {
  color: #f5a425 !important;
}

/* Ensure nav text is visible (white) on scrolled header */
.background-header .main-nav .nav li a {
  color: #fff !important;
}

/* Remove sub-header completely (we don't use it) */
.sub-header {
  display: none !important;
}

/* Fix header position since sub-header is removed */
.header-area {
  top: 0 !important;
}

/* ========================================
   Button Color Styles
   ======================================== */

/* Blue button - Secondary action */
.main-button-red a {
  font-size: 14px;
  color: #fff;
  background-color: #2c3e50; /* Dark slate blue */
  padding: 12px 30px;
  display: inline-block;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .3s;
}

.main-button-red a:hover {
  background-color: #34495e; /* Slightly lighter on hover */
  color: #fff;
}

/* Green button - Primary CTA (Download Free) */
.main-button-green {
  margin-top: 25px;
}

.main-button-green a {
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); /* Green gradient */
  padding: 14px 36px;
  display: inline-block;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.main-button-green a:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Yellow button - Same size as green button (LEARN MORE) */
.apply-now .main-button-yellow a,
.main-button-yellow a {
  font-size: 14px !important;
  color: #fff !important;
  background-color: #f39c12 !important; /* Warm amber */
  padding: 14px 36px !important;
  display: inline-block !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  transition: all .3s !important;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3) !important;
}

.apply-now .main-button-yellow a:hover,
.main-button-yellow a:hover {
  background-color: #e67e22 !important; /* Darker amber on hover */
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4) !important;
}

/* ========================================
   Meeting Card Price Tag - Remove Red
   ======================================== */

.meeting-item .thumb .price {
  position: absolute;
  left: 20px;
  top: 20px;
}

.meeting-item .thumb .price span {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  background-color: #2c3e50; /* Dark slate blue */
  padding: 7px 12px;
  border-radius: 5px;
}

/* ========================================
   Services Section Carousel Cards
   ======================================== */

.services .item {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.9) 100%); /* Dark slate semi-transparent */
  border-radius: 12px;
  padding: 40px;
  transition: all .3s;
  min-height: 240px; /* Fixed minimum height for all cards */
  height: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.services .item:hover {
  background: linear-gradient(135deg, rgba(52, 73, 94, 0.95) 0%, rgba(70, 90, 110, 0.9) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border-color: rgba(39, 174, 96, 0.3);
}

.services .item .icon img {
  max-width: 60px;
  margin-bottom: 20px;
}

.services .item .down-content h4 {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
  min-height: 54px; /* Fixed height for titles */
}

.services .item .down-content p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 24px;
  min-height: 72px; /* Fixed height for descriptions */
}

/* ========================================
   Pricing Plans Cards - Side by Side
   ======================================== */

/* ========================================
   Upcoming Meetings / Pricing Section
   ======================================== */

section.upcoming-meetings {
  background-image: url(../images/meetings-bg.jpg);
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 220px 0px 100px 0px; /* Extra top padding to avoid overlap with carousel */
}

/* Services section - no bottom padding to avoid white gap */
.services {
  padding-bottom: 0;
  margin-bottom: 0;
}

section.upcoming-meetings .section-heading {
  margin-bottom: 60px;
}

section.upcoming-meetings .section-heading {
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

section.upcoming-meetings .section-heading h2 {
  color: #fff;
  margin-top: 0;
}

/* Hide categories sidebar */
section.upcoming-meetings .categories {
  display: none;
}

/* Pricing cards grid */
.pricing-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.pricing-card-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 40px 30px;
  transition: all .3s;
  position: relative;
}

.pricing-card-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pricing-card-item.featured {
  border: 3px solid #27ae60;
  transform: scale(1.05);
}

.pricing-card-item.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-card-item .popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card-item h3 {
  font-size: 24px;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.pricing-card-item .price {
  text-align: center;
  margin-bottom: 25px;
}

.pricing-card-item .price span.amount {
  font-size: 48px;
  font-weight: 800;
  color: #27ae60;
}

.pricing-card-item .price span.period {
  color: #7f8c8d;
  font-size: 14px;
}

.pricing-card-item ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing-card-item ul li {
  padding: 10px 0;
  color: #34495e;
  font-size: 14px;
  border-bottom: 1px solid #ecf0f1;
}

.pricing-card-item ul li:last-child {
  border-bottom: none;
}

.pricing-card-item ul li::before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  margin-right: 10px;
}

.pricing-card-item .card-button {
  text-align: center;
}

.pricing-card-item .card-button a {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all .3s;
  text-decoration: none;
}

.pricing-card-item .card-button .btn-blue {
  background: #2c3e50;
  color: #fff;
}

.pricing-card-item .card-button .btn-blue:hover {
  background: #34495e;
}

.pricing-card-item .card-button .btn-green {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.pricing-card-item .card-button .btn-green:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Responsive for pricing cards */
@media (max-width: 992px) {
  .pricing-cards-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .pricing-card-item {
    max-width: 400px;
    width: 100%;
  }
  
  .pricing-card-item.featured {
    transform: none;
  }
  
  .pricing-card-item.featured:hover {
    transform: translateY(-10px);
  }
}

/* Our Facts section static image styling - override template video styles */
section.our-facts .video {
  text-align: center;
  background-image: none !important;
  margin-left: 0 !important;
}

section.our-facts .video img {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  cursor: default;
}

/* Simplified Download page - only remove heading banner */
body.page-download section.meetings-page {
  padding-top: 160px !important;
}

/* ========================================
   Auth Avatar + Dropdown (logged-in nav)
   ======================================== */
.header-area .main-nav .nav li.auth-nav-item {
  padding: 0;
  position: relative;
  display: flex;              /* 与其他 li 等高对齐 */
  align-items: center;        /* 头像垂直居中 */
  height: 64px;               /* 强制固定高度，不撑高导航栏 */
  line-height: 1;             /* 覆盖模板 line-height: 40px */
}

.header-area .main-nav .nav .auth-avatar {
  display: flex;
  align-items: center;
  height: auto;               /* 由父 li 控制高度 */
  padding: 0 10px;
  cursor: pointer;
  transition: all .3s;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;             /* 覆盖 */
}

.header-area .main-nav .nav .auth-avatar:hover {
  opacity: 0.85;
  color: #fff !important;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all .3s;
  transform: translateY(-10px);  /* 视觉微调：往上 10px */
}

.avatar-circle.lg {
  width: 48px;
  height: 48px;
  font-size: 20px;
  border: none;
  box-shadow: 0 2px 12px rgba(39, 174, 96, 0.4);
}

.auth-avatar:hover .avatar-circle {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
}

.auth-dropdown {
  position: absolute;
  top: 70px;
  right: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .2s ease;
}

.auth-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #2c3e50;
}

.auth-dropdown-user {
  flex: 1;
  min-width: 0;
}

.auth-dropdown-email {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.plan-badge.free {
  background: #ecf0f1;
  color: #7f8c8d;
}

.plan-badge.pro {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.auth-dropdown-divider {
  height: 1px;
  background: #ecf0f1;
  margin: 6px 0;
}

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #2c3e50 !important;     /* 强制深色，覆盖模板白字 */
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  height: auto;
  background: transparent;
}

.auth-dropdown-item i {
  width: 16px;
  color: #7f8c8d;
  transition: color .2s;
}

.auth-dropdown-item:hover {
  background: #f8f9fa;
  color: #27ae60 !important;
}

.auth-dropdown-item:hover i {
  color: #27ae60;
}

.auth-dropdown-item.signout {
  color: #e74c3c !important;
}

.auth-dropdown-item.signout i {
  color: #e74c3c;
}

.auth-dropdown-item.signout:hover {
  background: #fdf2f2;
  color: #c0392b !important;
}

.auth-dropdown-item.signout:hover i {
  color: #c0392b;
}

.background-header .main-nav .nav .auth-avatar {
  height: 60px;
}

@media (max-width: 767px) {
  .header-area .main-nav .nav li.auth-nav-item {
    width: 100%;
  }
  .header-area .main-nav .nav .auth-avatar {
    height: 50px;
    background: #f7f7f7;
    color: #191a20 !important;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
  }
  .auth-dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .auth-dropdown-header,
  .auth-dropdown-item {
    color: #191a20 !important;
  }
  .auth-dropdown-divider {
    background: #ddd;
  }
}

/* ─────────────────────────────────────────────
   法律条款同意提示（Sign in / Create Account 底部）
   ───────────────────────────────────────────── */
.legal-consent {
  margin-top: 18px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #5a6c7d;
  text-align: center;
}
.legal-consent a {
  color: #27ae60;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.legal-consent a:hover {
  color: #2ecc71;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .legal-consent {
    font-size: 11px;
    padding: 10px 12px;
  }
}

/* ─────────────────────────────────────────────
   Services 卡片 — 去掉图标 + 背景透明度 90%
   覆盖模板默认的 bg-image
   ───────────────────────────────────────────── */
.services .item {
  background-image: none !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.services .item:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-4px);
}
.services .item h4 {
  margin-top: 0 !important;  /* 去掉原来给图标的 25px 上边距 */
  color: #fff !important;
}
.services .item p {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ─────────────────────────────────────────────
   Features 页面 — 去掉背景图 + 内容上移
   覆盖模板默认的 meetings-page 样式
   ───────────────────────────────────────────── */
section.meetings-page {
  background-image: none !important;
  background-color: transparent !important;
  padding-top: 140px !important;  /* 与其他页面拉远距离 */
}
section.meetings-page .filters {
  margin-bottom: 30px !important;
}
