/* ==========================================================================
   TPOST Web - public stylesheet
   Brand palette taken from the TPOST logo: navy #0D1B3D, red #E21D2D, white.
   ========================================================================== */

:root {
  --navy: #0d1b3d;
  --navy-700: #14264f;
  --navy-600: #1d3263;
  --red: #e21d2d;
  --red-dark: #b81523;
  --white: #ffffff;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1b2333;
  --muted: #5b6478;
  --border: #e4e8f0;
  --shadow-sm: 0 2px 10px rgba(13, 27, 61, 0.06);
  --shadow-md: 0 14px 40px rgba(13, 27, 61, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

.eyebrow-red {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  color: #c01;
  margin-bottom: 12px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------------------
   Header / navigation
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 98px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { color: var(--navy); font-size: 22px; letter-spacing: .04em; font-weight: 800; }
.brand-text span { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--bg); color: var(--red); }
.main-nav a.active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch a {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.lang-switch a.active { background: var(--navy); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ----------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.hero {
    /*  background:*/
    /*    radial-gradient(1200px 500px at 88% -10%, rgba(226, 29, 45, .35), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, #0a1530 60%, #08122a 100%);*/
      background: linear-gradient(to right, #0d1b3d 50%, #ffffff 50%);
      color: #fff;
      overflow: hidden;
      position: relative;
      /*border-bottom: 2px solid #cc0404;*/
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 44px; letter-spacing: -.5px; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 18px; max-width: 560px; }
.hero .eyebrow { color: #ff8f97; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; color: #fff; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-left {
  position: relative;
  padding: 10px;
  margin: 17px 57px 0px 0px;
}
.hero-visual {
  position: relative;
  border-radius: 20px 0px 0px 0px;
  padding: 10px;
  background: #fff;
  margin-top: -58px;
}
.hero-visual img { border-radius: 14px; }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: 0px;
  background: var(--red);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 14px;
  margin-left: 30%;
}

.hero-logo{ width: calc(50% - 6px); height: 120px;padding: 6px;margin: 1px;background: #fff; float: left;}
.hero-logo img{ width: auto;max-width: calc(100% - 6px); height: 70px;}
.hero-logo:nth-child(1){
  background: #ffbf00;
}

.hero-logo:nth-child(3) img{ width: auto;max-width: calc(100% - 6px); height: 110px;}

.hero-logo:nth-child(4){
background: linear-gradient(to bottom, #fff 65%, #263253 35%);
}
.hero-logo:nth-child(1){
background: linear-gradient(to bottom, #ffbf00 75%, #a40606 35%);
}


.hero-logo:nth-child(4) img{ width: auto;max-width: calc(100% - 6px); height: 80px;}

.hero-logo svg{border-radius: 50px;margin-bottom: -20px;float: right;z-index: 1;cursor: pointer;}

.hero-logo:nth-child(1) svg {
  background: #ee0202;
}
.hero-logo:nth-child(2) svg{
  color: #fff;
  background: #fbbd04;
}
.hero-logo:nth-child(3) svg{
  color: #fff;
  background: #420e02;
}
.hero-logo:nth-child(4) svg{
  color: #fff;
  background: #d50303;
}

.hero-logo:nth-child(1) .slogan-logo {
  color: #fdcb8b;
  font-size: 14px;
  text-align: center;
  padding-top: 12px;
}

.hero-logo:nth-child(2) .slogan-logo {
  color: #367973;
  font-size: 18px;
  text-align: center;
  padding-top: 9px;
  font-weight: bold;
}

.hero-logo:nth-child(3) .slogan-logo {
  color: #402400;
  font-size: 14px;
  text-align: left;
  padding-top: 9px;
  font-weight: bold;
  width: 120px;
  float: right;
  margin-top: -50px;
}

.hero-logo:nth-child(4) .slogan-logo {
  color: #fdcb8b;
  font-size: 14px;
  text-align: center;
  padding-top: 2px;
}
/* ----------------------------------------------------------------------
   Generic sections
   ---------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); }
.section-navy { background: radial-gradient(1200px 500px at 88% -10%, rgba(226, 29, 45, .35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0a1530 60%, #08122a 100%); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.section-navy .section-head p { color: rgba(255,255,255,.72); }

/* Services section (based on dich_vu.png) */

/*.services-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 40px;
}
.services-head h2 { font-size: 38px; margin-bottom: 8px; }
.services-head p { color: var(--muted); margin: 0; }*/

#dienste .services-head {
  align-items: end;
  margin-bottom: 40px;
}
#dienste .services-head h2 { font-size: 38px; margin-bottom: 8px; }
#dienste .services-head .eyebrow { color: #d20000; margin: 0; }
#dienste .services-head p { color: var(--muted); margin: 0; }
#dienste .second-title {color: #ac0000;font-weight: bold;}



.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #eef1f8;
  margin-bottom: 20px;
}
.svc-icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 2; }
.svc-card h3 { font-size: 20px; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.svc-link { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--red); }
.svc-link::after { content: " \2192"; }

.svc-card.is-featured,.svc-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.svc-card.is-featured .svc-icon, .svc-card:hover .svc-icon { background: var(--red); }
.svc-card.is-featured .svc-icon svg, .svc-card:hover .svc-icon svg { stroke: #fff; }
.svc-card.is-featured h3,.svc-card:hover h3 { color: #fff; }
.svc-card.is-featured p,.svc-card:hover p { color: rgba(255,255,255,.72); }
.svc-card.is-featured .svc-link, .svc-card:hover .svc-link { color: #fff; }

/* Steps section (based on huong_dan.png) */
/*.steps-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 42px;
}
.steps-head h2 { font-size: 38px; margin-bottom: 0; }
.steps-head p { color: rgba(255,255,255,.72); margin: 0; }*/

.steps-head {
  align-items: end;
  margin-bottom: 42px;
}
.steps-head h2 { font-size: 38px; margin-bottom: 0; }
.steps-head p { color: #cf6767; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: rgba(255,255,255,.04);
  transition: background .2s, transform .2s;
}
.step-card:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.step-card .step-label {
  color: #ff8f97;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { color: rgba(255,255,255,.66); font-size: 14px; margin: 0; }
.step-number {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
}

/* Partners section (based on doi_tac.png) */
.partners-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.partner-feature { display: flex; gap: 12px; align-items: center; width: 100%; border-right: 1px solid #ce0000; }
.partner-feature svg { width: 40px; height: 40px; stroke: var(--navy); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.partner-feature strong { display: block; font-size: 14px; line-height: 20px; color: #ac0018; }
.partner-feature span { font-size: 12px; line-height: 20px; color: var(--muted); }

/* ----------------------------------------------------------------------
   Article list / archive
   ---------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1530 100%);
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { color: #fff; font-size: 38px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 720px; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

.archive-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  display: grid; place-items: center;
  color: rgba(255,255,255,.4);
  font-weight: 800;
  letter-spacing: .1em;
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 10px;
}
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.post-meta { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; gap: 14px; }

.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.sidebar-box h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; color: var(--navy); font-weight: 600; font-size: 14px; }
.sidebar-list a:hover { color: var(--red); }
.sidebar-list a span.count { color: var(--muted); font-weight: 500; }
.sidebar-list a.active { color: var(--red); }

.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 14px;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
}

/* Single post */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; margin: 60px 0 80px; }
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.article h1 { font-size: 34px; }
.article .article-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; margin-bottom: 24px; flex-wrap: wrap; }
.article .article-hero-img { border-radius: 12px; margin: 0 0 28px; }
.article .content { font-size: 16.5px; color: #2b3548; }
.article .content p { margin: 0 0 1.1em; }
.article .content h2 { font-size: 24px; margin-top: 1.4em; }
.article .content img { border-radius: 10px; margin: 1em 0; }
.article .content ul { padding-left: 1.3em; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: 14px; background: #fff;
}
.pagination span.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ----------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #ff5a66; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 70px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.75); }

/* Flash messages */
.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.flash-success { background: #e6f7ed; color: #10703c; border: 1px solid #b9e6ca; }
.flash-error { background: #fdeaea; color: #a11220; border: 1px solid #f6c6cb; }
.flash-info { background: #eaf0fb; color: #1d3a72; border: 1px solid #c9d8f2; }

/* ----------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-left {display: block !important;float: left;}
  .hero-visual {display: block !important;float: left;}
  .hero{ background: linear-gradient(to bottom, #0d1b3d 50%, #ffffff 50%) !important;  }
  .hero .container { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-layout, .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-head, .steps-head { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-left {display: block !important;float: left;}
  .hero-visual {display: block !important;float: left;}
  .hero{ background: linear-gradient(to bottom, #0d1b3d 50%, #ffffff 50%) !important;  }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .partners-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article { padding: 24px; }
  .services-head h2, .steps-head h2, .page-hero h1 { font-size: 28px; }
}
