/* ============================================================
   dadesktop.id — Homepage Styles
   Based on dadesktop.com design system
   ============================================================ */

/* ── Font ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300; font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px; line-height: 1.6;
    color: #000001;
    background: #ffffff;
    overflow-x: hidden;
}
a { color: #0073bd; }
img, video { max-width: 100%; height: auto; }

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --dd-blue:        #2c3e50;
    --dd-text-dark:   #1f2937;
    --dd-text-muted:  #6c757d;
    --dd-bg-light:    #f8f9fa;
    --dd-green:       #198754;
    --dd-green-hover: #157347;
    --dd-border:      #e5e7eb;
    --dd-nav-bg:      #2d3a48;
    --dd-background-blue: #0d6efd;
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher-bar {
    background: #1a252f;
    text-align: right;
    padding: 6px 0;
}
.lang-switcher-bar .container {
    display: flex;
    align-items: center;
}
.lang-switcher-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.lang-switcher-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}
.lang-switcher-contact-item .lang-icon {
    font-size: 15px;
}
.lang-switcher-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.lang-switch-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 4px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lang-switch-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.lang-switch-btn .lang-icon {
    font-size: 16px;
}

.country-switch-form {
    display: inline-block;
}

.country-switch-select {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Fix dropdown option colors */
.country-switch-select option,
.country-switch-select optgroup {
    background-color: #1a1a2e;  /* Dark background for dropdown */
    color: #fff;                 /* White text for readability */
}

.country-switch-select option {
    padding: 8px 12px;
}

/* For the optgroup labels (continent names) */
.country-switch-select optgroup {
    background-color: #0f0f1a;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.country-switch-select optgroup option {
    background-color: #1a1a2e;
    padding-left: 20px;  /* Indent options under optgroup */
}



/* ── Container / Grid ──────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.row-lg-center { align-items: center; }
.col-lg-6, .col-md-6, .col-md-4, .col-lg-12, .col-md-12 {
    padding: 0 15px;
}
.col-lg-6  { flex: 0 0 50%;  max-width: 50%;  }
.col-md-6  { flex: 0 0 50%;  max-width: 50%;  }
.col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 991px) {
    .col-lg-6  { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
    .col-md-6  { flex: 0 0 100%; max-width: 100%; }
    .col-md-4  { flex: 0 0 100%; max-width: 100%; }
}

/* ── Header / Navbar ──────────────────────────────────── */
.dd-header {
    background-color: var(--dd-blue);
    position: sticky; top: 0; z-index: 1000;
}
.dd-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}
.dd-brand svg {
    height: 30px;
    width: auto;
    display: block;
    margin-top: 5px;
}
.dd-nav-container {
    display: flex; align-items: center; gap: 3em;
}
.dd-nav-menu {
    display: flex; list-style: none; gap: 2px;
    padding: 0; margin: 0; align-items: center;
}
.dd-nav-menu li { margin-bottom: 0 !important; }
.dd-nav-item { position: relative; }
.dd-nav-link {
    color: #fff; text-decoration: none;
    padding: 8px 16px; display: flex;
    align-items: center; gap: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}
.dd-nav-link:hover { background-color: rgba(255,255,255,0.1); }
.dd-arrow { font-size: 10px; transition: transform 0.3s ease; }

.dd-dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background-color: var(--dd-nav-bg);
    list-style: none; min-width: 250px;
    padding: 8px 0; border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px; z-index: 10;
}
.dd-dropdown:hover .dd-dropdown-menu,
.dd-dropdown.active .dd-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dd-dropdown:hover .dd-arrow,
.dd-dropdown.active .dd-arrow { transform: rotate(180deg); }
.dd-dropdown-menu li { padding: 0; }
.dd-dropdown-menu a {
    color: #fff; text-decoration: none;
    padding: 10px 20px; display: block;
    font-size: 14px; text-align: left;
    transition: background-color 0.2s ease;
}
.dd-dropdown-menu a:hover { background-color: rgba(255,255,255,0.1); }

.dd-auth { display: flex; gap: 2px; }
.dd-auth-link {
    color: #fff; text-decoration: none;
    padding: 8px 16px; border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 15px;
}
.dd-auth-link:hover { background-color: rgba(255,255,255,0.1); }

.dd-navbar-toggler {
    display: none; background: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px; margin-left: auto;
    border-radius: 4px; cursor: pointer;
}
.dd-navbar-toggler:hover { background-color: rgba(255,255,255,0.1); }
.navbar-toggler-icon { display: block; width: 24px; height: 24px; color: #fff; }
.navbar-toggler-icon svg { width: 100%; height: 100%; }

@media (max-width: 991px) {
    .dd-navbar-toggler { display: block; }
    .dd-nav-container {
        position: fixed; top: -100%; left: 0;
        width: 100%; background-color: #3a4a5c;
        flex-direction: column; align-items: stretch;
        padding: 80px 20px 20px; gap: 0;
        max-height: 100vh; overflow-y: auto;
        transition: top 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .dd-nav-container.active { top: 0; }
    .dd-auth {
        order: 1; flex-direction: column; width: 100%;
        gap: 10px; margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dd-auth-link { display: block; padding: 12px 16px; background-color: rgba(255,255,255,0.05); }
    .dd-nav { order: 2; width: 100%; }
    .dd-nav-menu { flex-direction: column; width: 100%; gap: 5px; }
    .dd-nav-item { width: 100%; }
    .dd-nav-link { padding: 12px 20px; justify-content: space-between; width: 100%; font-size: 15px; }
    .dd-dropdown-menu {
        position: static; opacity: 0; visibility: hidden;
        height: 0; transform: none; box-shadow: none;
        background-color: #253241; margin: 0; padding: 0;
        overflow: hidden; border-radius: 0;
    }
    .dd-dropdown.active .dd-dropdown-menu {
        opacity: 1; visibility: visible;
        height: auto; padding: 8px 0; margin-top: 5px;
    }
    .dd-dropdown-menu a { padding-left: 40px; }
}
@media (max-width: 575px) {
    .dd-nav-container { padding: 70px 15px 20px; }
}

/* ── Sections ──────────────────────────────────────────── */
.dd-section { padding: 4rem 0; }
.dd-bg-white    { background-color: #fff; }
.dd-bg-light    { background-color: var(--dd-bg-light); }
.dd-bg-gradient-light { background: linear-gradient(180deg, var(--dd-bg-light) 0%, #ffffff 100%); }
.dd-text-white  { color: #fff; }
.dd-text-center { text-align: center; }
.dd-text-muted  { color: var(--dd-text-muted); }
.dd-text-dark   { color: var(--dd-text-dark); }

/* ── Typography ────────────────────────────────────────── */
.dd-display-1 { font-size: 2.75rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; color: var(--dd-blue); }
.dd-display-2 { font-size: 2.5rem;  font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; color: var(--dd-blue); }
.dd-display-3 { font-size: 2rem;    font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; color: var(--dd-blue); }
.dd-hero-sub-heading { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; color: var(--dd-text-muted); }
.dd-h5 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.dd-lead { font-size: 1.1rem; line-height: 1.5; font-weight: 300; }

/* ── Buttons ───────────────────────────────────────────── */
.dd-btn {
    display: inline-block; font-weight: 600;
    text-align: center; white-space: nowrap;
    cursor: pointer; text-decoration: none;
    padding: 12px 32px; font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
}
.dd-btn-success {
    background-color: var(--dd-green); color: #fff;
    box-shadow: 0 4px 6px rgba(25,135,84,0.3);
    line-height: 1.15;
}
.dd-btn-success:hover {
    background-color: var(--dd-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(25,135,84,0.4);
}
.dd-btn-light {
    background-color: #fff; color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.dd-btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.dd-fw-bold     { font-weight: 700; }
.dd-fw-semibold { font-weight: 600; }

/* ── Spacing Helpers ───────────────────────────────────── */
.dd-mb-0  { margin-bottom: 0; }
.dd-mb-3  { margin-bottom: 1rem; }
.dd-mb-4  { margin-bottom: 1.5rem; }
.dd-mb-5  { margin-bottom: 3rem; }
.dd-mt-5  { margin-top: 3rem; }
.dd-pt-3  { padding-top: 1rem; }
.dd-pt-4  { padding-top: 1.5rem; }
.dd-p-4   { padding: 1.5rem; }
.dd-p-5   { padding: 3rem; }
.dd-px-3  { padding-left: 1rem; padding-right: 1rem; }
.dd-gap-y-3 { row-gap: 3rem; }

/* ── Video ─────────────────────────────────────────────── */
.dd-video {
    width: 100%; height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ── Feature Box ───────────────────────────────────────── */
.dd-feature-box {
    background-color: var(--dd-bg-light);
    border-radius: 12px;
    padding: 3rem;
}

/* ── Lists ─────────────────────────────────────────────── */
.dd-list-unstyled { list-style: none; padding-left: 0; }
.dd-list-item {
    display: flex; align-items: flex-start;
    margin-bottom: 1.5rem;
}
.dd-list-item:last-child { margin-bottom: 0; }
.dd-list-icon {
    color: var(--dd-green); margin-right: 1rem;
    font-size: 1.875rem; flex-shrink: 0;
}
.dd-list-text { font-size: 1.25rem; }

/* ── Cards ─────────────────────────────────────────────── */
.dd-card {
    background-color: #fff; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 3rem; height: 100%;
}
.dd-card-bordered {
    background-color: var(--dd-bg-light);
    border: 2px solid #dee2e6; border-radius: 12px;
    padding: 3rem; height: 100%;
}

/* ── Step Numbers ──────────────────────────────────────── */
.dd-step-number {
    display: inline-flex; align-items: center;
    justify-content: center; margin-bottom: 1.5rem;
    color: #fff; background-color: var(--dd-green);
    border-radius: 50%; font-size: 1.75rem;
    height: 80px; width: 80px;
    box-shadow: 0 4px 12px rgba(25,135,84,0.3);
}

/* ── CTA Section ───────────────────────────────────────── */
.dd-cta {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

/* ── Footer ────────────────────────────────────────────── */
.dd-footer {
    background-color: var(--dd-blue);
    color: #fff; padding: 60px 0 30px;
}
.dd-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4em; margin-bottom: 50px;
}
.dd-footer-section h5 {
    color: #fff; font-size: 18px; font-weight: 600;
    margin-bottom: 20px; text-transform: none; letter-spacing: normal;
}
.dd-footer-search {
    position: relative;
    display: flex;
}

.dd-footer-search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dd-footer-search-input-wrapper:focus-within {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.dd-footer-search-input {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.dd-footer-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.dd-footer-search-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.dd-footer-search-btn:hover {
    color: #fff;
}

.dd-footer-search-btn svg {
    width: 18px;
    height: 18px;
}

.dd-footer-section h5:not(:first-child) {
    margin-top: 20px;
}
.dd-footer-links { list-style: none; padding: 0; }
.dd-footer-links li { margin-bottom: 0; }
.dd-footer-links a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 14px; transition: color 0.3s ease;
    display: inline-block; padding: 2px 0;
}
.dd-footer-links a:hover { color: #fff; }
.dd-footer-description {
    color: rgba(255,255,255,0.8);
    font-size: 14px; line-height: 1.6;
}
.dd-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px; text-align: center;
}
.dd-footer-keywords {
    color: rgba(255,255,255,0.6);
    font-size: 13px; line-height: 1.6;
    margin-bottom: 15px; max-width: 800px;
    margin-left: auto; margin-right: auto;
}
.dd-footer-trademark {
    color: rgba(255,255,255,0.7);
    font-size: 14px; margin-bottom: 20px;
}
.dd-footer-trademark em { font-style: italic; }

.dd-footer-trademark a {
    color: #5dade2; text-decoration: underline;
    font-size: 13px; transition: color 0.3s ease;
}

.dd-footer-trademark a:hover { color: #7fb9e6; }

#wechat {
    margin-top: 20px;
    display: table;
    text-align: center;
}

#wechat img {
    display: block;
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#wechat::after {
    content: "添加客服微信";
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
}

@media (max-width: 1199px) {
    .dd-footer-grid { gap: 2em; }
    .dd-display-1 { font-size: 2.5rem; }
    .dd-display-2 { font-size: 2rem; }
    .dd-display-3 { font-size: 1.75rem; }
}
@media (max-width: 991px) {
    .dd-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2em; }
    .dd-footer { padding: 40px 0 30px; }
    .dd-section { padding: 3rem 0; }
    .dd-p-5 { padding: 2rem; }
}
@media (max-width: 575px) {
    .dd-footer-grid { grid-template-columns: 1fr; gap: 1.5em; }
    .dd-footer-final { flex-direction: column; gap: 10px; }
    .dd-display-1 { font-size: 2.2rem; }
    .dd-display-2 { font-size: 1.8rem; }
}

/* ── Skip Link ─────────────────────────────────────────── */
#skip-link a {
    position: absolute; top: -100px; left: 0;
    background: var(--dd-blue); color: #fff;
    padding: 8px 16px; z-index: 9999;
}
#skip-link a:focus { top: 0; }

/* ── Page Content ─────────────────────────────────────── */
.dd-page-content { max-width: 1200px; margin: 0 auto; padding: 2rem 20px; }

/* ── Page Title ───────────────────────────────────────── */
.dd-page-title {
    font-size: 2rem; font-weight: 700; color: var(--dd-blue);
    margin: 0 0 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--dd-border);
}

/* ── Form Fields ───────────────────────────────────────── */
form .form-item {
  margin-bottom: 1rem;
}
form .form-text, form .form-email, form .form-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
}

/* ── Search Widget ─────────────────────────────────────── */
.m-bottom {
  margin-bottom: 15px;
}

.d-block {
  width: 100%;
}

.m0 {
  margin: 0;
  ;
}

.search-wrapper {
  margin-bottom: 2rem;
}

.search-form {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e1e5e9;
  border-radius: 25px;
  padding: 0 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input-container:focus-within {
  border-color: #007cba;
  box-shadow: 0 2px 20px rgba(0, 124, 186, 0.15);
  transform: translateY(-2px);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #6c757d;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 0;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-input::placeholder {
  color: #6c757d;
  font-size: 15px;
}

.search-submit {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #007cba;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-submit:hover {
  background: #005a87;
}

.search-submit:active {
  transform: scale(0.98);
}

.clear-search {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6c757d;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.clear-search:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.clear-search svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-input-container {
      padding: 0 16px;
  }

  .search-input {
      padding: 14px 0;
      font-size: 16px; /* Prevents zoom on iOS */
  }

  .search-icon {
      width: 18px;
      height: 18px;
      margin-right: 10px;
  }
}

/* Loading state */
.search-input-container.loading {
  opacity: 0.7;
}

.search-input-container.loading .search-icon {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}