/* ============================================================================
 * AEserver theme — custom CSS overrides
 * ============================================================================
 *
 * WHAT THIS FILE IS FOR
 * ---------------------
 * Hand-written CSS that overrides rules from `style.bundle.css` (the compiled
 * SCSS bundle).
 *
 * WHY IT EXISTS
 * -------------
 * Editing `style.bundle.css` directly is risky: it's minified, and any future
 * `npm run build` will wipe manual changes (CleanWebpackPlugin removes the dist
 * folder before each production build). This file lives alongside the bundle
 * but is NEVER touched by webpack — it's safe to edit by hand and survives
 * rebuilds.
 *
 * HOW TO USE
 * ----------
 * 1. Add your CSS rules below. Use the same BEM class names you see in the
 *    rendered HTML (e.g. `.single-blog__content`, `.faq__item`, `.plans__item`).
 * 2. This file is enqueued AFTER `style.bundle.css` in `functions.php` with
 *    a `dependencies` array of `['ae-server-main']`. Cascade therefore lets
 *    your rules override bundle rules at equal specificity. If something still
 *    isn't overriding, raise specificity (e.g. `.single-blog .single-blog__content`)
 *    rather than reaching for `!important`.
 * 3. After editing this file, hard-reload the page (Cmd+Shift+R / Ctrl+F5)
 *    to bypass browser cache. The `_S_VERSION` constant in `style.css`
 *    busts cache for new theme versions.
 *
 * WHAT NOT TO DO
 * --------------
 * - Don't put core/global rules here. New components belong in SCSS sources
 *   (`assets/src/scss/components/*.scss`) and a proper rebuild.
 * - Don't run `npm run build` expecting this file to be regenerated — it
 *   isn't part of the build pipeline.
 * - Don't add `!important` reflexively. Try class chains and selector
 *   specificity first.
 * ========================================================================= */

/* === Single blog post (single-post.php) ================================== */

.single-blog {
    padding-top: 30px;
}

.article-header {
    padding: 0 0 24px;
}

.article-header__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* breadcrumbs sit on a light background here, override the white link color
   that the bundle applies for the dark .hero context */
.article-header .article-header__breadcrumbs {
    color: #5b5b5b;
    margin: 0;
}
.article-header .article-header__breadcrumbs a,
.article-header .article-header__breadcrumbs .breadcrumbs__link {
    color: #5b5b5b;
    text-decoration: underline;
}
.article-header .article-header__breadcrumbs a:hover,
.article-header .article-header__breadcrumbs .breadcrumbs__link:hover {
    color: #1e2535;
}

.article-header__title {
    margin: 0;
    color: #1e2535;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}
@media (max-width: 1279px) {
    .article-header__title { font-size: 36px; }
}
@media (max-width: 743px) {
    .article-header__title { font-size: 28px; line-height: 1.2; }
    .article-header { padding: 0 0 16px; }
    .article-header__inner { gap: 18px; }
}

.article-header__media {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f7f7;
}
.article-header__image,
.article-header__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
}
@media (max-width: 743px) {
    .article-header__media { border-radius: 8px; }
}

.article-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding-top: 4px;
    color: #5b5b5b;
    font-size: 15px;
    line-height: 1.4;
}

.article-header__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1e2535;
}
.article-header__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
}
.article-header__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-header__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.article-header__category-icon {
    display: inline-flex;
    width: 20px;
    height: 18px;
    color: #9d9d9d;
}
.article-header__category-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* The shared `.list-category` already exists in the bundle (yellow pills).
   Keep its style intact — just make sure the wrapper is inline and tight. */
.article-header__category .list-category {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* === Home sidebar — grouped by category ================================= */

.blog__col--grouped {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog__col--grouped .blog__col-group + .blog__col-group {
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

.blog__col--grouped .blog__col-title {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #1e2535;
}
.blog__col--grouped .blog__col-title a {
    color: inherit;
    text-decoration: none;
}
.blog__col--grouped .blog__col-title a:hover {
    color: #c62127;
}


/* === Single post sidebar — related posts ================================ */

.blog__col-list--related {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog__col-list--related + .single-blog__pagemap {
    margin-top: 16px;
}

.blog__col-list--related .blog__col-item,
.blog__col-item--related {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-top: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 37, 53, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog__col-list--related .blog__col-item:hover,
.blog__col-item--related:hover {
    box-shadow: 0 4px 16px rgba(30, 37, 53, 0.08);
    transform: translateY(-1px);
}

.blog__col-item-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f1f1;
    display: block;
}
.blog__col-item-thumb img,
.blog__col-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog__col-item--related .blog__col-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog__col-item--related .blog__col-item-name {
    color: #1e2535;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog__col-item--related .blog__col-item-name:hover {
    color: #c62127;
}

.blog__col-item--related .tags- {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
}

.blog__col-item--related .blog__col-item-footer {
    margin-top: 2px;
}

@media (max-width: 743px) {
    .blog__col-item-thumb {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }
    .blog__col-item--related {
        padding: 10px;
        gap: 12px;
    }
    .blog__col-item--related .blog__col-item-name {
        font-size: 14px;
    }
}


/* === FAQ block (frequently-questions.php) ================================ */


/* === Hosting / Plans ===================================================== */


/* === Footer / Header ===================================================== */