/* ====================================================================
   YOUDIAN STAR - Theme styles (ported from design)
   ==================================================================== */

:root {
  --primary: #e8b800;
  --primary-dark: #c99e00;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #444;
  --light-bg: #f8f9fa;
}

* { box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  margin: 0;
}

a { color: var(--primary-dark); }

/* ========== TOP BAR ========== */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
.topbar a { color: #ccc; text-decoration: none; }
.topbar a:hover { color: var(--primary); }
.topbar .sep { margin: 0 12px; color: #555; }

/* ========== NAVBAR ========== */
.main-navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand img {
  height: 55px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  max-width: 200px;
  line-height: 1.3;
  text-transform: uppercase;
}
.nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 22px 14px !important;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.2s;
}
.nav-link:hover, .nav-link.active,
.current-menu-item > .nav-link,
.current_page_item > .nav-link { color: var(--primary) !important; }
.nav-link:hover::after,
.current-menu-item > .nav-link::after,
.current_page_item > .nav-link::after { width: 80%; }

/* Dropdown support for WP menus */
.navbar-nav .dropdown-menu { border: none; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
@media (min-width: 992px) {
  .navbar-nav .menu-item-has-children { position: relative; }
}

/* ========== HERO SLIDER ========== */
.hero-carousel .carousel-item {
  height: 500px;
  background: linear-gradient(135deg, #0f3460, #16213e);
  position: relative;
  overflow: hidden;
}
.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,184,0,0.15) 0%, transparent 70%);
}
.hero-carousel .carousel-item.has-bg { background-size: cover; background-position: center; }
.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 520px;
}
.hero-content .badge-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-content h2 span { color: var(--primary); }
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 28px;
}
.btn-hero {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-hero:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

.hero-img {
  position: absolute;
  right: 8%;
  bottom: 0;
  height: 90%;
  opacity: 0.92;
  object-fit: contain;
}
.carousel-indicators button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
}
.carousel-indicators button.active { background: var(--primary); }
.carousel-control-prev-icon, .carousel-control-next-icon {
  filter: invert(0);
  background-size: 18px;
}

/* ========== SECTION TITLE ========== */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .subtitle {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-title p {
  color: #888;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.title-line {
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ========== VISION CARDS ========== */
.vision-section { padding: 70px 0; background: var(--light-bg); }
.vision-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.vision-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.vision-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.vision-card-body { padding: 24px; }
.vision-card-body h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.vision-card-body p { font-size: 14px; color: #666; line-height: 1.7; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  margin-top: 12px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; color: var(--primary-dark); }

/* ========== ABOUT SECTION ========== */
.about-section { padding: 80px 0; background: #fff; }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(232,184,0,0.4);
}
.about-badge .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.about-badge .label { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.about-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 18px;
}
.about-text h2 span { color: var(--primary); }
.about-text p { color: #666; font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.about-list { list-style: none; padding: 0; margin: 0 0 24px; }
.about-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.about-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* ========== STEPS SECTION ========== */
.steps-section { padding: 80px 0; background: var(--dark); }
.steps-section .section-title h2 { color: #fff; }
.steps-section .section-title p { color: rgba(255,255,255,0.6); }
.step-card { text-align: center; padding: 30px 20px; }
.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(232,184,0,0.15);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background 0.3s;
}
.step-card:hover .step-icon { background: var(--primary); }
.step-card:hover .step-icon i { color: #fff !important; }
.step-icon img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.step-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.step-card p { color: rgba(255,255,255,0.65); font-size: 14px; }
.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 16px;
}

/* ========== FEATURES SECTION ========== */
.features-section { padding: 80px 0; background: var(--light-bg); }
.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature-icon i { font-size: 24px; color: #fff; }
.feature-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: #777; line-height: 1.7; }

/* ========== PRODUCTS SECTION ========== */
.products-section { padding: 80px 0; background: #fff; }
.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-date {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.product-card-body h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 16px;
}
.product-card-body h5 a { color: inherit; text-decoration: none; }
.product-card-body h5 a:hover { color: var(--primary); }
.product-card-body p { font-size: 13px; color: #777; line-height: 1.65; margin-bottom: 14px; }
.product-tag {
  display: inline-block;
  background: rgba(232,184,0,0.12);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0f3460 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,184,0,0.1) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.cta-section p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 30px; position: relative; }
.btn-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}
.btn-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark2);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-brand img { height: 55px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.site-footer ul li a:hover { color: var(--primary); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer-contact li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 16px;
}
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 16px 0;
  margin-top: 50px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--primary); text-decoration: none; }

/* ========== PLACEHOLDER IMGS ========== */
.img-placeholder {
  background: linear-gradient(135deg, #e0e7ef, #c8d4e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa;
  font-size: 13px;
}

/* ========== GENERIC CONTENT / BLOG ========== */
.page-section { padding: 70px 0; }
.page-header-band {
  background: linear-gradient(135deg, var(--dark) 0%, #0f3460 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.page-header-band h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #fff;
  margin: 0;
  font-size: 34px;
}
.page-header-band .breadcrumb-mini {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 10px;
}
.page-header-band .breadcrumb-mini a { color: var(--primary); text-decoration: none; }

.entry-content { font-size: 15px; line-height: 1.85; color: #555; }
.entry-content h2, .entry-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  margin-top: 1.6em;
}
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 18px;
  margin: 1.4em 0;
  background: var(--light-bg);
  color: #555;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.post-card .thumb { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card .post-card-body { padding: 20px; }
.post-card .post-card-body h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.post-card .post-card-body h5 a { color: var(--dark); text-decoration: none; }
.post-card .post-card-body h5 a:hover { color: var(--primary); }

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--primary); color: #fff; }

/* Widgets / sidebar */
.widget { margin-bottom: 34px; }
.widget-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid #eee; }
.widget ul li a { color: #555; text-decoration: none; }
.widget ul li a:hover { color: var(--primary); }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 22px; }
.comment-body {
  background: var(--light-bg);
  padding: 18px;
  border-radius: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-carousel .carousel-item { height: 400px; }
  .hero-content { left: 5%; right: 5%; }
  .hero-content h2 { font-size: 26px; }
  .hero-img { display: none; }
  .about-badge { display: none; }
  .page-header-band h1 { font-size: 26px; }
}
