/* --- Variables --- */
:root {
    --hc-green:       #1a472a;
    --hc-green-dark:  #0f2d1a;
    --hc-green-light: #2d6a4f;
    --hc-accent:      #4caf50;
    --hc-accent-text: #2d6a4f;
    --hc-white:       #ffffff;
    --hc-bg:          #f7f8fa;
    --hc-border:      #e5e7eb;
    --hc-text:        #1a1a2e;
    --hc-muted:       #6b7280;
    --hc-card-bg:     #ffffff;
    --hc-sidebar-w:   280px;
    --hc-radius:      12px;
    --hc-shadow:      0 2px 12px rgba(0,0,0,.07);
}

/* --- Hero Banner --- */
.hc-hero {
    padding: 53.5px 20px;
    background-image: url('https://www.flippingcars.ie/view/front/themes/master/images/bgbanner.png');
    height: 240px;
    background-size: cover;
    background-position: bottom right;
    background-repeat: no-repeat;
}

.hc-hero__title {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 40px;
    color: #fff;
}
.hc-hero__sub {
     font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    width: 945px;
}


/* --- Body / Layout --- */
.hc-body {
    padding: 48px 24px 64px !important;
    background: #fff;
}
.hc-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Sidebar --- */
.hc-sidebar {
    width: 30%
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hc-sidebar__block {
    background: var(--hc-card-bg);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 20px 20px 16px;
}
.hc-sidebar__heading {
    color: #1B1C1A;
    font-size: 26px;
    font-weight: 600;
    font-family: inter;
}
.hc-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hc-sidebar__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #1B1C1A;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
    font-weight: 400;
    font-family: 'Inter';
}
.hc-sidebar__list a:hover,
.hc-sidebar__list a.active {
    color: #1B1C1A;
    font-weight: 800;
}
.hc-card:hover .fa-question-circle,
.hc-card:hover .fa-circle-dot,
.hc-card:hover .fa-filter,
.hc-card:hover .fa-book,
.hc-card:hover .fa-code {
    color: #5DA12C;
}
.hc-sidebar__list a i {
    width: 22px;
    text-align: center;
    color: #585858;
    flex-shrink: 0;
    font-size: 22px;
}
.hc-sidebar__list a:hover i,
.hc-sidebar__list a.active i {
    color: var(--hc-accent-text);
}

/* Account links are green */
.hc-sidebar__list--account a {
    color: var(--hc-accent-text);
    font-weight: 500;
}
.hc-sidebar__list--account a:hover {
    text-decoration: underline;
    background: transparent;
}

/* --- Main Content Area --- */
.hc-content {
    flex: 1;
    min-width: 0;
}

/* --- Search Bar --- */
.hc-search {
    position: relative;
    margin-bottom: 28px;
}
.hc-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hc-muted);
    font-size: .95rem;
}
.hc-search__input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 16px 16px 40px;
    border: 1px solid #E1E5E3;
    border-radius: 10px;
    font-size: 14px;
    color: #80828D;
    background: var(--hc-white);
    outline: none;
    transition: border-color .2s;
}
.hc-search__input:focus {
    border-color: var(--hc-accent);
}
.hc-search__results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--hc-white);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    z-index: 100;
    max-height: 340px;
    overflow-y: auto;
}
.hc-search__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--hc-text);
    border-bottom: 1px solid var(--hc-border);
    transition: background .15s;
}
.hc-search__item:last-child { border-bottom: none; }
.hc-search__item:hover { background: #f9fafb; }
.hc-search__item strong { font-size: .9rem; }
.hc-search__item span   { font-size: .8rem; color: var(--hc-muted); }
.hc-search__no-result {
    padding: 16px;
    font-size: .9rem;
    color: var(--hc-muted);
    text-align: center;
}

/* --- Topics Grid (Page 1) --- */
.hc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.hc-card {
    background: #F9F9F9;
    border-radius: 18px;
    padding: 32px 20px 24px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: box-shadow .2s, border-color .2s, transform .15s;
}
.hc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
    background-color: #EEF9E6;
}
.hc-card--active {
    background: #f0faf3;
    border-color: var(--hc-accent);
}
.hc-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0faf3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.hc-card--active .hc-card__icon {
    background: var(--hc-accent-text);
}
.hc-card__icon i {
    font-size: 40px;
    color: #1B1C1A;
}
.hc-card--active .hc-card__icon i {
    color: var(--hc-white);
}
.hc-card__title {
    font-size: 24px;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0;
    font-family: 'Inter';
}
.hc-card__desc {
    font-size: 14px;
    color: #5FAA27;
    margin: 0;
    font-weight: 400;
    font-family: inter;
}
.hc-card__count {
    font-size: 14px;
    color: #1B1C1A;
    font-weight: 400;
    font-family: 'Inter';
}

/* --- Topic Breadcrumb (Page 2) --- */
.hc-topic-breadcrumb {
    font-size: 16px;
    color: #1B1C1A;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: 'Inter';
}
.hc-topic-breadcrumb a {
    color: #1B1C1A;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter';
}

.hc-sidebar__list--doc li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all .2s ease;
}

.hc-sidebar__list--doc li a.active {
    background: #dff5e3 !important;
    color: #198754 !important;
    font-weight: 600;
}

.hc-sidebar__list--doc li a.active i {
    color: #198754 !important;
}
.hc-topic-breadcrumb a:hover { text-decoration: underline; }
.hc-topic-breadcrumb i { font-size: .7rem; }

/* --- Articles List (Page 2) --- */
.hc-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hc-article-row {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hc-border);
    text-decoration: none;
    transition: background .15s;
}
.hc-article-row:first-child { border-top: 1px solid var(--hc-border); }
.hc-article-row:hover { background: #f9fafb; padding-left: 8px; border-radius: 6px; }
.hc-article-row__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0faf3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.hc-article-row__icon i {
    font-size: 22px;
    color: #585858;
}
.hc-article-row__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hc-article-row__title {
    font-size: 18px;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0;
    font-family: 'Inter';
}
.hc-article-row__excerpt {
    font-size: 14px;
    color: #353535;
    margin: 0;
    line-height: 22px;
    font-weight: 400;
    font-family: 'Inter';
}
.hc-article-row__link {
    font-size: 14px;
    color: #5DA12C;
    font-weight: 500;
    font-family: 'Inter';
}

/* --- Single Article (Page 3) --- */
.hc-article {
    background: var(--hc-card-bg);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 32px;
    margin-bottom: 28px;
}
.hc-article__title {
    font-size: 20px;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0 0 16px;
    line-height: 1.1em;
    font-family: 'Inter';
}
.hc-article__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}
.hc-badge--topic {
    background: #5DA12C;
    color: #FFFFFF;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    font-family: inter;
}
.hc-badge--views {
    background: #224393;
    color: #FFFFFF;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    font-family: inter;
}
.hc-article__votes {
    display: flex;
    gap: 0px;
    margin-left: auto;
}
.hc-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--hc-border);
    background: var(--hc-white);
    font-size: 18px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    color: #223893;
    font-weight: 500;
    font-family: inter;
}
button.hc-vote.hc-vote--dislike {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--hc-border);
    background: var(--hc-white);
    font-size: 18px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    color: #EA4335;
    font-weight: 500;
    font-family: inter;
}
.hc-vote--like:hover  { background: #f0faf3; border-color: var(--hc-accent); color: var(--hc-accent-text); }
.hc-vote--dislike:hover { background: #fff5f5; border-color: #ef4444; color: #ef4444; }
.hc-article__body {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--hc-text);
}
.hc-article__body p { margin: 0 0 14px; }
.hc-article__body h1,
.hc-article__body h2,
.hc-article__body h3 {
    color: var(--hc-text);
    margin: 20px 0 10px;
}
.hc-article__body ul,
.hc-article__body ol {
    padding-left: 24px;
    margin: 0 0 14px;
}
.hc-article__body a { color: var(--hc-accent-text); }

/* --- Comments (Page 3) --- */
.hc-comments {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.hc-comment {
    display: flex;
    gap: 14px;
}
.hc-comment--admin .hc-comment__body {
    background: #f0faf3;
    border-color: var(--hc-accent);
}
.hc-comment__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.hc-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hc-comment__avatar-initial {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--hc-muted);
}
.hc-comment__body {
    flex: 1;
    background: #f9fafb;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.hc-comment__header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.hc-comment__name  { font-size: .9rem; font-weight: 600; }
.hc-comment__says  { font-size: .85rem; color: var(--hc-muted); }
.hc-comment__badge {
    display: inline-block;
    background: var(--hc-accent-text);
    color: white;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}
.hc-comment__text {
    font-size: .9rem;
    color: var(--hc-text);
    line-height: 1.6;
    margin: 0 0 10px;
}
.hc-comment__footer {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hc-comment__date { font-size: .78rem; color: var(--hc-muted); }
.hc-comment__reply-btn {
    font-size: .82rem;
    color: var(--hc-accent-text);
    text-decoration: none;
    font-weight: 500;
}
.hc-comment__reply-btn:hover { text-decoration: underline; }

/* --- Reply Form (Page 3) --- */
.hc-reply-form {
    background: #F9F9F9;
    border-radius: 18px;
    padding: 32px;
}
.hc-reply-form__title {
    font-size: 26px;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0 0 6px;
    font-family: 'Inter';
}
.hc-reply-form__note {
    font-size: 14px;
    color: #585858;
    margin: 0 0 20px;
    font-weight: 500;
    font-family: inter;
    font-style: italic;
}
.hc-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hc-form-label {
    font-size: 16px;
    font-weight: 500;
    color: #1B1C1A;
    font-family: 'Inter';
    margin-bottom: 10px;
}
.hc-form-control {
    padding: 18px 16px;
    border: 1px solid #E1E5E3;
    border-radius: 10px;
    font-size: 14px;
    color: #80828D;
    background: #FFFFFF;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.hc-form-control:focus { border-color: var(--hc-accent); background: var(--hc-white); }
.hc-form-control--textarea {
    min-height: 120px;
    resize: vertical;
    background: #FFFFFF;
    border: 1px solid #E1E5E3;
    color: #80828D;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter';
}
.hc-form-control--textarea:focus {
    outline: none;
    box-shadow: none;
}
.hc-form-control:focus {
    outline: none;
    box-shadow: none;
}
.hc-search__input:focus {
   outline: none;
    box-shadow: none;
}
.hc-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hc-btn-submit {
    display: inline-flex;
    align-items: center;
    padding: 17px 47px;
    background: #5DA12C;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
    font-family: 'Inter';
}
.hc-btn-submit:hover { background: var(--hc-green); }

/* --- Misc --- */
.hc-no-results {
    color: var(--hc-muted);
    font-size: .95rem;
    padding: 24px 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hc-layout { flex-direction: column; }
    .hc-sidebar { width: 100%; }
    .hc-grid { grid-template-columns: 1fr 1fr; }
    .hc-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hc-grid { grid-template-columns: 1fr; }
    .hc-hero__title { font-size: 1.8rem; }
    .hc-article { padding: 20px; }
    .hc-reply-form { padding: 20px; }
}
@media (max-width:767px){
    .hc-hero__sub {
    width: 100%;
}
.hc-body {
    padding: 45px 24px 45px !important;
    background: #fff;
}
section.hc-hero {
    height: 270px;
    background-position: unset;
    padding: 20px;
}
.hc-content {
    flex: 1;
    min-width: 100%;
}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .hc-hero__sub {
    width: 100%;
}
.hc-content {
    flex: 1;
    min-width: 100%;
}
}