/*
Theme Name: AIConnect247 Astra Child
Theme URI: https://aiconnect247.com/
Description: Giao diện trang chủ AIConnect247 kế thừa Astra.
Author: AIConnect247
Template: astra
Version: 1.1.0
Text Domain: aiconnect247-astra-child
*/

:root {
  --a247-ink: #10213f;
  --a247-muted: #617089;
  --a247-blue: #4263eb;
  --a247-cyan: #36d6c2;
  --a247-line: #e4eaf3;
  --a247-bg: #f5f8fc;
}

.a247-home {
  width: 100%;
  overflow: hidden;
  color: var(--a247-ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.a247-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.a247-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10vw, 132px) 0 82px;
  color: #fff;
  background: radial-gradient(ellipse at 78% 5%, rgba(54,214,194,.23), transparent 30%),
              radial-gradient(ellipse at 0% 100%, rgba(66,99,235,.34), transparent 40%),
              linear-gradient(125deg, #101b37 0%, #142a50 55%, #12384b 100%);
}

.a247-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom right, black, transparent 72%);
}

.a247-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(38px, 7vw, 88px);
}

.a247-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #d9fff9;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}

.a247-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--a247-cyan);
  box-shadow: 0 0 16px var(--a247-cyan);
}

.a247-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.a247-gradient-text {
  color: #67e5d3;
}

.a247-hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: #d3deef;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.a247-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.a247-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.a247-btn:hover {
  transform: translateY(-2px);
}

.a247-btn-primary {
  color: #10213f !important;
  background: linear-gradient(105deg, #73edda, #b0f4dc);
  box-shadow: 0 12px 32px rgba(54,214,194,.18);
}

.a247-btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.27);
  background: rgba(255,255,255,.07);
}

.a247-hero-note {
  margin: 18px 0 0;
  color: #aebbd0;
  font-size: 13px;
}

.a247-console {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 28px 90px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
}

.a247-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.a247-online {
  color: #a8f0df;
  font-size: 12px;
  font-weight: 650;
}

.a247-console-item {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(9,22,45,.34);
}

.a247-service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  color: #d6fff8;
  background: rgba(54,214,194,.16);
  font-size: 19px;
  font-weight: 800;
}

.a247-console-item strong,
.a247-console-item small {
  display: block;
}

.a247-console-item strong {
  color: #fff;
  font-size: 14px;
}

.a247-console-item small {
  margin-top: 3px;
  color: #b7c7db;
  font-size: 12px;
}

.a247-console-badge {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #a8f0df;
  background: rgba(54,214,194,.14);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.a247-trust {
  position: relative;
  margin-top: -1px;
  padding: 19px 0;
  border-bottom: 1px solid var(--a247-line);
  background: #fff;
}

.a247-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 34px;
  color: #52637c;
  font-size: 13px;
  font-weight: 650;
}

.a247-trust-row span::before {
  margin-right: 8px;
  color: #1cae98;
  content: "✓";
  font-weight: 900;
}

.a247-section {
  padding: clamp(68px, 8vw, 100px) 0;
}

.a247-section-muted {
  background: var(--a247-bg);
}

.a247-section-head {
  max-width: 720px;
  margin: 0 auto 39px;
  text-align: center;
}

.a247-kicker {
  margin: 0 0 11px;
  color: var(--a247-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.a247-section h2 {
  margin: 0;
  color: var(--a247-ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.a247-section-head > p:last-child {
  margin: 15px 0 0;
  color: var(--a247-muted);
  font-size: 17px;
  line-height: 1.7;
}

.a247-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.a247-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  border: 1px solid var(--a247-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(22,43,77,.035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.a247-card:hover {
  transform: translateY(-4px);
  border-color: #c7d4f9;
  box-shadow: 0 18px 40px rgba(22,43,77,.09);
}

.a247-card .a247-service-icon {
  color: #334ea9;
  background: #edf1ff;
}

.a247-card h3 {
  margin: 18px 0 8px;
  color: var(--a247-ink);
  font-size: 19px;
  font-weight: 760;
}

.a247-card p {
  margin: 0;
  color: var(--a247-muted);
  font-size: 14px;
  line-height: 1.65;
}

.a247-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 19px;
  color: #3454d1 !important;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none !important;
}

.a247-status {
  margin-top: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #38624e;
  background: #e8f8ef;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.a247-status-soon {
  color: #65728a;
  background: #eef2f7;
}

.a247-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  counter-reset: a247-step;
}

.a247-step {
  position: relative;
  padding: 5px 18px 8px 67px;
  counter-increment: a247-step;
}

.a247-step::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #4263eb, #25bba8);
  content: "0" counter(a247-step);
  font-size: 13px;
  font-weight: 850;
}

.a247-step h3 {
  margin: 3px 0 8px;
  color: var(--a247-ink);
  font-size: 18px;
}

.a247-step p {
  margin: 0;
  color: var(--a247-muted);
  font-size: 14px;
  line-height: 1.65;
}

.a247-bottom-cta {
  padding: 0 0 clamp(65px, 8vw, 100px);
}

.a247-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(110deg, #152747, #28478c 68%, #146b70);
}

.a247-cta-box h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.035em;
}

.a247-cta-box p {
  max-width: 650px;
  margin: 11px 0 0;
  color: #d4dfef;
  line-height: 1.65;
}

.a247-disclaimer {
  max-width: 790px;
  margin: 23px auto 0;
  color: #77849a;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 900px) {
  .a247-hero-grid { grid-template-columns: 1fr; }
  .a247-console { max-width: 560px; }
  .a247-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .a247-wrap { width: min(100% - 30px, 520px); }
  .a247-hero { padding: 62px 0 58px; }
  .a247-hero h1 { font-size: clamp(39px, 12vw, 55px); }
  .a247-actions { align-items: stretch; flex-direction: column; }
  .a247-btn { width: 100%; }
  .a247-service-grid, .a247-steps { grid-template-columns: 1fr; }
  .a247-card { min-height: 215px; }
  .a247-cta-box { align-items: flex-start; flex-direction: column; }
}

/* Standalone branded YouTube connection screen (WordPress page ID 7). */
body.page-id-7 {
  background: #f3f6fb;
}

body.page-id-7 #masthead,
body.page-id-7 #colophon,
body.page-id-7 .site-footer,
body.page-id-7 .ast-footer-copyright,
body.page-id-7 .ast-small-footer,
body.page-id-7 .entry-header {
  display: none !important;
}

body.page-id-7 #content,
body.page-id-7 .site-content,
body.page-id-7 .site-content > .ast-container,
body.page-id-7 #primary,
body.page-id-7 #main,
body.page-id-7 article,
body.page-id-7 .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.a247-yt-panel {
  width: min(920px, calc(100% - 36px));
  margin: clamp(34px, 7vh, 74px) auto 80px;
  overflow: hidden;
  border: 1px solid #e3e9f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22, 42, 77, .12);
  color: var(--a247-ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.a247-yt-brandbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 36px);
  border-bottom: 1px solid #e9eef5;
  background: rgba(255,255,255,.95);
}

.a247-yt-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--a247-ink) !important;
  text-decoration: none !important;
}

.a247-yt-brandmark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #0d2c3d;
  background: linear-gradient(135deg, #7beddb, #b3f0dd);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.a247-yt-brand strong,
.a247-yt-brand small {
  display: block;
}

.a247-yt-brand strong { font-size: 15px; line-height: 1.15; }
.a247-yt-brand small { margin-top: 4px; color: #77849a; font-size: 9px; font-weight: 800; letter-spacing: .12em; }

.a247-yt-home-link {
  color: #60708a !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.a247-yt-home-link:hover { color: var(--a247-blue) !important; }

.a247-yt-body {
  padding: clamp(28px, 6vw, 54px);
}

.a247-yt-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 29px;
}

.a247-yt-mark,
.a247-yt-connect-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #ff4e58, #d91f39);
  box-shadow: 0 10px 22px rgba(217,31,57,.18);
  font-size: 21px;
}

.a247-yt-connected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cceee0;
  border-radius: 999px;
  color: #207b59;
  background: #f0fbf6;
  font-size: 12px;
  font-weight: 800;
}

.a247-yt-connected i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #2bb57b;
  box-shadow: 0 0 0 3px rgba(43,181,123,.12);
}

.a247-yt-eyebrow {
  margin: 0 0 9px !important;
  color: #536b9f !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .13em;
}

.a247-yt-title {
  margin: 0 !important;
  color: var(--a247-ink) !important;
  font-size: clamp(30px, 5vw, 42px) !important;
  font-weight: 780 !important;
  letter-spacing: -.045em;
  line-height: 1.12 !important;
}

.a247-yt-subtitle {
  max-width: 640px;
  margin: 13px 0 0 !important;
  color: #6b7890 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.a247-yt-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 31px;
}

.a247-yt-stat {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 21px;
  border: 1px solid #e6ecf4;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #f8faff);
}

.a247-yt-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 13px;
  color: #425fd0;
  background: #edf1ff;
  font-size: 20px;
}

.a247-yt-stat-value {
  color: var(--a247-ink);
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.a247-yt-stat-label { margin-top: 5px; color: #748198; font-size: 12px; font-weight: 650; }

.a247-yt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid #edf1f6;
}

.a247-yt-bottom > p { margin: 0 !important; color: #7b8799 !important; font-size: 12px !important; }
.a247-yt-form { margin: 0 !important; }

.a247-yt-button {
  display: inline-flex !important;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.a247-yt-button:hover { transform: translateY(-1px); }
.a247-yt-button-primary { color: #fff !important; background: linear-gradient(115deg, #4263eb, #334fce) !important; box-shadow: 0 11px 22px rgba(66,99,235,.2); }
.a247-yt-button-light { min-height: 40px; color: #56647b !important; border-color: #dce4ef !important; background: #fff !important; font-size: 12px !important; }

.a247-yt-connect-layout { max-width: 650px; margin: 0 auto; text-align: center; }
.a247-yt-connect-icon { width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 21px; font-size: 26px; }
.a247-yt-connect-layout .a247-yt-subtitle { margin-right: auto !important; margin-left: auto !important; }
.a247-yt-connect-layout .a247-yt-form { margin-top: 24px !important; }
.a247-yt-connect-layout .a247-yt-button { min-width: 220px; }

.a247-yt-permissions {
  display: inline-grid;
  gap: 10px;
  margin: 22px auto 0 !important;
  padding: 0 !important;
  color: #53627b;
  font-size: 13px;
  list-style: none !important;
  text-align: left;
}

.a247-yt-permissions li { margin: 0 !important; }
.a247-yt-permissions li::before { margin-right: 9px; color: #1aa387; content: "✓"; font-weight: 900; }
.a247-yt-privacy-note { margin: 12px 0 0 !important; color: #8a95a7 !important; font-size: 11px !important; }

.a247-yt-alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid #f2d8b5;
  border-radius: 15px;
  background: #fffaf2;
}

.a247-yt-alert-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; color: #8a5a12; background: #f8e8c9; font-weight: 900; }
.a247-yt-alert strong { color: #5e471f; font-size: 14px; }
.a247-yt-alert p { margin: 5px 0 0 !important; color: #765f3a !important; font-size: 13px !important; }

@media (max-width: 620px) {
  .a247-yt-panel { width: calc(100% - 22px); margin: 18px auto 35px; border-radius: 19px; }
  .a247-yt-brandbar { min-height: 66px; padding: 12px 16px; }
  .a247-yt-body { padding: 27px 20px 30px; }
  .a247-yt-stats { grid-template-columns: 1fr; }
  .a247-yt-bottom { align-items: flex-start; flex-direction: column; }
  .a247-yt-bottom .a247-yt-form, .a247-yt-bottom .a247-yt-button { width: 100%; }
}
