/* Autopart Garden custom news styles */
/* Recommended path: /include/news_detail/assets/autopart-garden-news.css */

.agNews {
    --ag-dark: #13233b;
    --ag-dark-2: #1f385d;
    --ag-green: #65ad3f;
    --ag-green-2: #8bcf5d;
    --ag-yellow: #f5b63b;
    --ag-soft: #f8fafc;
    --ag-border: #dbe6f3;
    --ag-border-green: #dcebd2;
    --ag-text: #1f2d43;
    --ag-muted: #5f6f84;
    width: 100%;
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ag-text);
    line-height: 1.65;
}

.agNews * {
    box-sizing: border-box;
}

.agNews a {
    transition: .18s ease;
}

.agNews img {
    max-width: 100%;
    height: auto;
}

.ag-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(245, 182, 59, .26), transparent 34%),
        radial-gradient(circle at 12% 82%, rgba(101, 173, 63, .25), transparent 30%),
        linear-gradient(135deg, #13233b 0%, #1f385d 48%, #3f762f 100%);
}

.ag-hero:before {
    content: "";
    position: absolute;
    right: -115px;
    top: -135px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.ag-hero-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 28px;
    align-items: center;
}

.ag-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #f6ffcc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ag-title {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 900;
}

.ag-lead {
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    line-height: 1.75;
}

.ag-hero-tags,
.ag-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ag-hero-tags {
    margin-bottom: 22px;
}

.ag-hero-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .17);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ag-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 13px;
    text-decoration: none !important;
    font-weight: 800;
    border: 0;
}

.ag-btn-primary {
    color: #111827 !important;
    background: linear-gradient(135deg, #f8d35b, #e4a426);
}

.ag-btn-dark {
    color: #fff !important;
    background: #121d33;
}

.ag-btn-soft {
    color: #fff !important;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
}

.ag-btn:hover {
    transform: translateY(-1px);
    opacity: .94;
}

.ag-hero-media {
    padding: 12px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.04)),
        rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.ag-hero-media img {
    display: block;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.ag-section {
    margin-bottom: 24px;
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ag-border);
    box-shadow: 0 8px 22px rgba(18, 29, 51, .05);
}

.ag-section-highlight {
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 207, 93, .18), transparent 34%),
        linear-gradient(135deg, #fbfff6 0%, #ffffff 100%);
    border-color: var(--ag-border-green);
}

.ag-section h3 {
    margin: 0 0 12px 0;
    color: var(--ag-dark);
    font-size: 28px;
    line-height: 1.22;
    font-weight: 900;
}

.ag-section h4 {
    margin: 18px 0 9px 0;
    color: var(--ag-dark);
    font-size: 20px;
    line-height: 1.28;
    font-weight: 900;
}

.ag-section p {
    margin: 0 0 13px 0;
    color: var(--ag-muted);
    font-size: 15px;
}

.ag-info-grid,
.ag-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ag-benefits {
    margin-bottom: 24px;
}

.ag-info-grid {
    margin-top: 18px;
}

.ag-info-card,
.ag-benefit {
    padding: 17px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e1e9f2;
}

.ag-info-card strong,
.ag-benefit strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ag-dark);
    font-size: 16px;
}

.ag-info-card span,
.ag-benefit span {
    display: block;
    color: var(--ag-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ag-benefit-icon {
    margin-bottom: 8px;
    font-size: 26px;
}

.ag-product {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #dbe6f3;
}

.ag-product-media {
    text-align: center;
}

.ag-product-media img {
    width: 100%;
    max-width: 185px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px;
    box-shadow: 0 12px 26px rgba(18, 29, 51, .08);
}

.ag-spec {
    margin-bottom: 7px;
    color: #7aa11e;
    font-size: 31px;
    line-height: 1;
    font-weight: 950;
}

.ag-product h4 {
    margin: 0 0 10px 0;
    color: var(--ag-dark);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 900;
}

.ag-product p {
    margin: 0 0 12px 0;
    color: var(--ag-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ag-check-list,
.ag-simple-list {
    margin: 12px 0 16px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ag-check-list li,
.ag-simple-list li {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    color: var(--ag-text) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    list-style: none !important;
}

.ag-check-list li:before {
    content: "\2713" !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    border-radius: 50% !important;
    background: #8bcf5d !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 18px !important;
}

.ag-simple-list li:before {
    content: "\2022" !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #7aa11e !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
}

.ag-tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 10px;
    background: #eef3f8;
    color: #35445c;
    font-size: 13px;
    font-weight: 800;
}

.ag-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ag-note {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 15px;
    border-left: 5px solid var(--ag-green);
    background: #f3faec;
    color: #41516a;
}

.ag-note strong {
    color: var(--ag-dark);
}

.ag-faq-item {
    margin-bottom: 12px;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.ag-faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 17px 52px 17px 18px;
    color: var(--ag-dark);
    font-size: 16px;
    font-weight: 900;
}

.ag-faq-item summary::-webkit-details-marker {
    display: none;
}

.ag-faq-item summary:after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ag-green);
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
}

.ag-faq-item[open] summary:after {
    content: "–";
}

.ag-faq-item div {
    padding: 0 18px 18px 18px;
    color: var(--ag-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ag-cta {
    margin-bottom: 24px;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 50% 0%, rgba(139,207,93,.22), transparent 42%),
        linear-gradient(135deg, #13233b 0%, #24466e 52%, #376b2d 100%);
}

.ag-cta h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.ag-cta p {
    max-width: 780px;
    margin: 0 auto 20px auto;
    color: rgba(255,255,255,.90);
}

@media screen and (max-width: 920px) {
    .ag-hero-row,
    .ag-product {
        grid-template-columns: 1fr;
    }

    .ag-info-grid,
    .ag-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-hero-media {
        max-width: 520px;
    }
}

@media screen and (max-width: 600px) {
    .ag-hero {
        padding: 24px;
    }

    .ag-title {
        font-size: 29px;
    }

    .ag-section {
        padding: 22px;
    }

    .ag-info-grid,
    .ag-benefits {
        grid-template-columns: 1fr;
    }

    .ag-btn,
    .ag-product-actions .ag-btn {
        width: 100%;
        text-align: center;
    }
}


/* v2: full-width main image and improved text contrast */
.ag-hero {
    margin-bottom: 18px;
}

.ag-hero-row {
    display: block;
}

.ag-hero-text {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.ag-hero .ag-lead,
.ag-hero p {
    color: rgba(255, 255, 255, .96) !important;
}

.ag-hero strong,
.ag-lead strong {
    color: #f6ffcc !important;
    font-weight: 900 !important;
}

.ag-main-banner {
    margin: 0 0 26px 0;
    padding: 12px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(101, 173, 63, .28), rgba(245, 182, 59, .18)),
        #ffffff;
    border: 1px solid #dbe6f3;
    box-shadow: 0 12px 32px rgba(18, 29, 51, .10);
}

.ag-main-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(18, 29, 51, .16);
}

@media screen and (max-width: 600px) {
    .ag-main-banner {
        padding: 8px;
        border-radius: 18px;
    }

    .ag-main-banner img {
        border-radius: 13px;
    }
}


/* v3: balanced hero block, visible highlighted text, side model panel */
.agNews .ag-hero {
    padding: 34px !important;
    margin-bottom: 22px !important;
}

.agNews .ag-hero-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .78fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
}

.agNews .ag-hero-text {
    max-width: none !important;
    min-width: 0 !important;
}

.agNews .ag-hero .ag-lead,
.agNews .ag-hero p {
    color: rgba(255, 255, 255, .96) !important;
}

.agNews .ag-hero .ag-lead strong,
.agNews .ag-hero p strong,
.agNews .ag-hero strong {
    color: #f6ffcc !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.25) !important;
}

.agNews .ag-hero a:not(.ag-btn),
.agNews .ag-hero span:not(.ag-hero-tag) {
    color: #f6ffcc !important;
}

.agNews .ag-hero-side {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
        rgba(7, 18, 34, .18);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.16);
}

.agNews .ag-side-title {
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    margin: 0 0 2px 0;
}

.agNews .ag-side-subtitle {
    color: rgba(255,255,255,.83);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 4px 0;
}

.agNews .ag-model-list {
    display: grid;
    gap: 10px;
}

.agNews .ag-model-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.16);
}

.agNews .ag-model-code {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #98d75d, #4d9b32);
    color: #102217;
    font-weight: 950;
    font-size: 14px;
}

.agNews .ag-model-info {
    color: rgba(255,255,255,.94);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.agNews .ag-model-info small {
    display: block;
    color: rgba(255,255,255,.72);
    font-weight: 700;
    font-size: 12px;
    margin-top: 2px;
}

.agNews .ag-side-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.agNews .ag-side-mini div {
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    text-align: center;
}

.agNews .ag-main-banner {
    margin-top: 0 !important;
}

@media screen and (max-width: 920px) {
    .agNews .ag-hero-row {
        grid-template-columns: 1fr !important;
    }

    .agNews .ag-hero-side {
        padding: 16px;
    }
}

@media screen and (max-width: 600px) {
    .agNews .ag-side-mini {
        grid-template-columns: 1fr;
    }

    .agNews .ag-model-item {
        grid-template-columns: 1fr;
    }

    .agNews .ag-model-code {
        justify-content: flex-start;
        padding-left: 12px;
    }
}


/* v4: clean centered hero, no right empty area, remove side-panel layout */
.agNews .ag-hero {
    padding: 38px 34px !important;
    margin-bottom: 22px !important;
    min-height: 0 !important;
}

.agNews .ag-hero-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
}

.agNews .ag-hero-text {
    width: 100% !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.agNews .ag-title {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 36px !important;
}

.agNews .ag-lead {
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: rgba(255,255,255,.97) !important;
    text-align: center !important;
}

.agNews .ag-lead strong,
.agNews .ag-hero strong {
    color: #f8e58a !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 14px rgba(0,0,0,.35) !important;
}

.agNews .ag-hero-tags {
    justify-content: center !important;
}

.agNews .ag-actions {
    justify-content: center !important;
}

.agNews .ag-hero-side {
    display: none !important;
}

.agNews .ag-hero-media {
    display: none !important;
}

@media screen and (max-width: 600px) {
    .agNews .ag-hero {
        padding: 28px 20px !important;
    }

    .agNews .ag-title {
        font-size: 28px !important;
    }

    .agNews .ag-lead {
        font-size: 15px !important;
    }
}
