.tag-mgmt-hero {
    background-color: #03213D;
    color: #FFFFFF;
    padding: 160px 0 80px 0;
}

.tag-mgmt-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
}

.tag-mgmt-hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.tag-mgmt-h1 {
    font-family: sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.tag-mgmt-hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #FFFFFF;
}

.tag-mgmt-accent {
    color: #FF8A3D;
    font-weight: 700;
}

.tag-mgmt-hero-media {
    text-align: center;
}

.tag-mgmt-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tag-mgmt-split {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.tag-mgmt-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tag-mgmt-split-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.tag-mgmt-h2 {
    font-family: sans-serif;
    font-size: 2.25rem;
    line-height: 1.3;
    color: #03213D;
    margin-bottom: 24px;
    font-weight: 700;
}

.tag-mgmt-split-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #03213D;
    margin-bottom: 20px;
}

.tag-mgmt-action {
    margin-top: 32px;
}

.tag-mgmt-btn {
    display: inline-block;
    background-color: #FF8A3D;
    color: #03213D;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tag-mgmt-btn:hover {
    transform: translateY(-2px);
    background-color: #FF7A2F;
}

.tag-mgmt-features {
    padding: 100px 0;
    background-color: #E2EEF4;
}

.tag-mgmt-features-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.tag-mgmt-features-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #03213D;
    margin-bottom: 20px;
}

.tag-mgmt-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.tag-mgmt-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #03213D;
}

.tag-mgmt-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #54ABDF;
    font-weight: bold;
}

.tag-mgmt-features-sidebar {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tag-mgmt-testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid #E2EEF4;
}

.tag-mgmt-quote-author {
    color: #03213D;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tag-mgmt-quote-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #03213D;
    font-style: italic;
}

@media (max-width: 900px) {
    .tag-mgmt-split-grid, .tag-mgmt-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tag-mgmt-hero {
        padding-top: 120px;
    }
    
    .tag-mgmt-h1 {
        font-size: 2.25rem;
    }
    
    .tag-mgmt-h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 640px) {
    
    .tag-mgmt-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .tag-mgmt-split, .tag-mgmt-features {
        padding: 60px 0;
    }
}

/* Tag language illustration within the existing feature section. */
main .tag-mgmt-series-figure {
    max-width: 700px;
    margin: 32px 0;
}
main .tag-mgmt-series-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Native tag-merge example: the same three course files survive the action. */
main .tag-merge-demo { margin: 0; padding: 24px; background: #E2EEF4; color: #03213D; text-align: left; border-radius: 8px; font-family: 'Open Sans', sans-serif; }
main .tag-merge-demo__heading h3 { margin: 0 0 8px; font: 600 22px/1.35 'Open Sans', sans-serif; }
main .tag-merge-demo__heading > p { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: #50697A; }
main .tag-merge-demo__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
main .tag-merge-demo__asset { min-width: 0; }
main .tag-merge-demo__asset img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 4px; }
main .tag-merge-demo__file { margin: 10px 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
main .tag-merge-demo__tag { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.5; }
main .tag-merge-demo__tag > span { color: #50697A; }
main .tag-merge-demo__tag strong { display: inline-block; padding: 4px 8px; background: #fff; color: #03213D; border-radius: 3px; font-weight: 600; }
main .tag-merge-demo[data-merged="true"] .tag-merge-demo__tag strong { background: #B7FF3C; }
main .tag-merge-demo__controls { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; visibility: hidden; }
main .tag-merge-demo[data-render-ready="tag-merge-example"] .tag-merge-demo__controls { visibility: visible; }
main .tag-merge-demo__controls button { min-height: 44px; padding: 10px 14px; border: 1px solid #03213D; border-radius: 4px; background: #03213D; color: #fff; font: 600 14px/1.4 'Open Sans', sans-serif; cursor: pointer; }
main .tag-merge-demo__controls .tag-merge-demo__reset { background: transparent; color: #03213D; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
main .tag-merge-demo__controls button:disabled { color: #50697A; background: #E2EEF4; border-color: #A4BFD0; cursor: default; text-decoration: none; }
main .tag-merge-demo__controls button:focus-visible { outline: 3px solid #03213D; outline-offset: 3px; box-shadow: 0 0 0 2px #fff; }
main .tag-merge-demo__status { min-height: 45px; margin: 16px 0 0; font-size: 14px; line-height: 1.6; font-weight: 600; }
main .tag-merge-demo figcaption, main .tag-merge-demo__note { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #50697A; }
@media (max-width: 600px) {
  main .tag-merge-demo { padding: 20px; }
  main .tag-merge-demo__heading > p { margin-bottom: 16px; }
  main .tag-merge-demo__media { grid-template-columns: 1fr; gap: 12px; }
  main .tag-merge-demo__asset { display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; }
  main .tag-merge-demo__asset img { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  main .tag-merge-demo__file { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 4px; font-size: 13px; }
  main .tag-merge-demo__tag { grid-column: 2; grid-row: 2; align-self: start; gap: 6px; }
  main .tag-merge-demo__controls { flex-direction: column; align-items: stretch; margin-top: 18px; }
}
