/*
Theme Name:   WorldeSIM Child
Theme URI:    https://worldesim.vn/
Description:  Flatsome Child Theme for WorldeSIM
Author:       WorldeSIM
Template:     flatsome
Version:      1.0.0
Text Domain:  worldesim-child
*/

/* =============================================
   IMPORT PARENT THEME
   ============================================= */
@import url("../flatsome/style.css");

/* =============================================
   BRAND COLORS & VARIABLES
   ============================================= */
:root {
  --we-primary:       #0057FF;
  --we-primary-dark:  #003FBD;
  --we-accent:        #00C2FF;
  --we-gradient:      linear-gradient(135deg, #0057FF 0%, #00C2FF 100%);
  --we-dark-bg:       #0A1628;
  --we-dark-card:     #111D35;
  --we-text-dark:     #0A1628;
  --we-text-muted:    #6B7A99;
  --we-white:         #FFFFFF;
  --we-light-bg:      #F4F7FF;
  --we-border:        #E2E8F8;
  --we-radius:        16px;
  --we-radius-sm:     10px;
  --we-shadow:        0 8px 32px rgba(0,87,255,0.10);
  --we-shadow-card:   0 4px 24px rgba(10,22,40,0.08);
}

/* =============================================
   GLOBAL RESETS / TYPOGRAPHY
   ============================================= */
body {
  font-family: 'Be Vietnam Pro', 'SVN-Gilroy', 'Nunito', sans-serif;
  color: var(--we-text-dark);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--we-text-dark);
}

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

/* =============================================
   HEADER
   ============================================= */
#top-bar {
  background: var(--we-dark-bg) !important;
  color: #fff;
  font-size: 13px;
}

#header {
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(0,87,255,0.07);
}

.header-main {
  background: #fff;
}

.nav-item > a {
  font-weight: 600;
  color: var(--we-text-dark) !important;
  font-size: 15px;
}

.nav-item > a:hover,
.nav-item.active > a {
  color: var(--we-primary) !important;
}

/* CTA buttons in header */
.header-button .button,
.button.primary,
.button.color-primary {
  background: var(--we-gradient) !important;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  color: #fff !important;
  padding: 10px 22px;
  transition: opacity .2s, transform .2s;
}
.button.primary:hover,
.button.color-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  color: #fff !important;
}

/* =============================================
   HERO BANNER
   ============================================= */
.we-hero {
  background: var(--we-dark-bg);
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.we-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,194,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.we-hero-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.we-hero-title span {
  background: var(--we-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.we-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

/* =============================================
   SEARCH / BOOKING BOX
   ============================================= */
.we-search-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  max-width: 620px;
}

.we-search-box select,
.we-search-box input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s;
}

.we-search-box select:focus,
.we-search-box input:focus {
  border-color: var(--we-accent);
}

.we-search-box option {
  background: var(--we-dark-bg);
  color: #fff;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--we-text-dark);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--we-text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

/* =============================================
   PRODUCT CARDS (eSIM packages)
   ============================================= */
.we-product-card {
  background: #fff;
  border: 1.5px solid var(--we-border);
  border-radius: var(--we-radius);
  padding: 24px;
  box-shadow: var(--we-shadow-card);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.we-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--we-shadow);
  border-color: var(--we-primary);
}

.we-product-card .badge-hot {
  position: absolute;
  top: 14px; right: 14px;
  background: #FF4757;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.we-product-card .flag-emoji {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

.we-product-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.we-product-card .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--we-primary);
}

.we-product-card .price-old {
  font-size: 14px;
  color: var(--we-text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.we-product-card .btn-buy {
  display: block;
  width: 100%;
  background: var(--we-gradient);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
}

.we-product-card .btn-buy:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* Flash sale countdown */
.we-flash-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #FF4757, #FF6B81);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

.we-countdown {
  background: var(--we-dark-bg);
  color: var(--we-accent);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 16px;
}

/* =============================================
   WHY CHOOSE US – FEATURE CARDS
   ============================================= */
.we-feature-bg {
  background: var(--we-light-bg);
}

.we-feature-card {
  background: #fff;
  border-radius: var(--we-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--we-shadow-card);
  transition: transform .25s, box-shadow .25s;
  border: 1.5px solid var(--we-border);
}

.we-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--we-shadow);
}

.we-feature-icon {
  width: 64px; height: 64px;
  background: var(--we-gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.we-feature-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--we-text-dark);
}

.we-feature-card p {
  font-size: 13.5px;
  color: var(--we-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   3 STEPS SECTION
   ============================================= */
.we-steps-bg {
  background: var(--we-dark-bg);
  position: relative;
  overflow: hidden;
}

.we-steps-bg::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,87,255,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.we-step-item {
  text-align: center;
  padding: 24px;
}

.we-step-number {
  width: 70px; height: 70px;
  background: var(--we-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(0,87,255,0.3);
}

.we-step-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.we-step-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* connector arrow between steps */
.we-step-connector {
  color: var(--we-accent);
  font-size: 28px;
  margin-top: 20px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.we-review-card {
  background: #fff;
  border: 1.5px solid var(--we-border);
  border-radius: var(--we-radius);
  padding: 24px;
  box-shadow: var(--we-shadow-card);
}

.we-review-card .stars {
  color: #FFC107;
  font-size: 16px;
  margin-bottom: 10px;
}

.we-review-card .review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--we-text-dark);
  margin-bottom: 16px;
}

.we-review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.we-review-card .reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--we-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.we-review-card .reviewer-name {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.we-review-card .reviewer-pkg {
  font-size: 12px;
  color: var(--we-text-muted);
}

/* =============================================
   NETWORK LOGOS TICKER
   ============================================= */
.we-partners-bg {
  background: var(--we-light-bg);
  padding: 48px 0;
  overflow: hidden;
}

.we-ticker-wrap {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 20s linear infinite;
  width: max-content;
}

.we-ticker-wrap:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.we-ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 50px;
  opacity: 0.65;
  transition: opacity .2s;
}

.we-ticker-item:hover { opacity: 1; }

/* =============================================
   BLOG SECTION
   ============================================= */
.we-blog-card {
  background: #fff;
  border: 1.5px solid var(--we-border);
  border-radius: var(--we-radius);
  overflow: hidden;
  box-shadow: var(--we-shadow-card);
  transition: transform .25s, box-shadow .25s;
}

.we-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--we-shadow);
}

.we-blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.we-blog-card .card-body {
  padding: 20px;
}

.we-blog-card h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.we-blog-card p {
  font-size: 13px;
  color: var(--we-text-muted);
  margin-bottom: 12px;
}

.we-blog-card .read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--we-primary);
}

/* =============================================
   EMAIL SUBSCRIBE SECTION
   ============================================= */
.we-subscribe-bg {
  background: var(--we-gradient);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.we-subscribe-bg::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.we-subscribe-bg h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.we-subscribe-bg p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}

.we-subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.we-subscribe-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}

.we-subscribe-form button {
  background: var(--we-dark-bg);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}

.we-subscribe-form button:hover { opacity: .85; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--we-dark-bg) !important;
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 56px 0 40px;
}

.footer-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--we-accent);
}

.footer-logo-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 14px;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-social a {
  display: inline-flex;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 8px;
  font-size: 16px;
  transition: background .2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--we-primary);
}

/* =============================================
   FLOATING CONTACT BUTTON
   ============================================= */
.we-float-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.we-float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform .2s;
  color: #fff;
}

.we-float-btn:hover {
  transform: scale(1.1);
}

.we-float-zalo { background: #0190f3; }
.we-float-fb   { background: #1877f2; }
.we-float-call { background: #28c76f; }

/* =============================================
   RESPONSIVE HELPERS
   ============================================= */
@media (max-width: 768px) {
  .we-hero { min-height: 400px; }
  .we-hero-title { font-size: 28px; }
  .we-search-box { padding: 20px; }
  .we-subscribe-form { flex-direction: column; }
  .footer-top { padding: 40px 0 24px; }
}
