/* ========================================
   Help Center - Flightdemy
   Siguiendo estándares de /admin_brand
   ======================================== */

/* ========== HERO SECTION ========== */
.hc-hero {
    background: linear-gradient(135deg, #f8fdf5 0%, #eef7e6 100%);
    padding: 60px 0 80px;
    margin-top: 90px;
}

.hc-hero__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-fd-green-4);
    margin-bottom: 16px;
}

.hc-hero__subtitle {
    font-size: 18px;
    color: var(--color-fd-green-6);
    margin-bottom: 0;
}

/* Hero Compact (for guide/article pages) */
.hc-hero--compact {
    padding: 30px 0 40px;
}

/* Search Box */
.hc-search {
    max-width: 600px;
    margin: 40px auto 0;
}

.hc-search__form {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hc-search__form:focus-within {
    border-color: var(--color-fd-green-3);
    box-shadow: 0 4px 24px rgba(165, 190, 0, 0.15);
}

.hc-search__input {
    flex: 1;
    border: none;
    padding: 18px 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.hc-search__input::placeholder {
    color: #999;
}

.hc-search__btn {
    background: var(--color-fd-green-3);
    color: #fff;
    border: none;
    padding: 14px 28px;
    margin: 6px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-search__btn:hover {
    background: var(--color-fd-green-4);
}

/* ========== CATEGORY CARDS ========== */
.hc-categories {
    padding: 80px 0;
}

.hc-category-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.hc-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-fd-green-2);
}

.hc-category-card__icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--color-fd-green-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.hc-category-card__icon img {
    width: 50%;
    height: auto;
}

.hc-category-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-fd-blue-3);
    margin-bottom: 12px;
}

.hc-category-card__desc {
    font-size: 15px;
    color: var(--color-fd-gray-1);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hc-category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-fd-green-4);
    transition: gap 0.3s;
}


.hc-trainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .hc-trainer-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.hc-trainer-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    height: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hc-trainer-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hc-trainer-card:hover .hc-trainer-card__image {
    transform: scale(1.05);
}

.hc-trainer-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hc-trainer-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hc-trainer-card__subtitle {
    font-size: 14px;
    opacity: 0.85;
}

.hc-trainer-card--disabled {
    cursor: not-allowed;
}

.hc-trainer-card--disabled .hc-trainer-card__image {
    filter: grayscale(60%);
}

.hc-trainer-card--disabled .hc-trainer-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.hc-trainer-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== GUIDE CARDS (Category Page) ========== */
.hc-guide-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hc-guide-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.hc-guide-card:hover {
    border-color: var(--color-fd-green-3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.hc-guide-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--color-fd-green-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-fd-green-5);
    font-size: 20px;
}

.hc-guide-card__content {
    flex: 1;
}

.hc-guide-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-fd-blue-3);
    margin-bottom: 4px;
}

.hc-guide-card__desc {
    font-size: 14px;
    color: var(--color-fd-gray-1);
    line-height: 1.4;
}

.hc-guide-card__arrow {
    color: var(--color-fd-green-4);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.hc-guide-card:hover .hc-guide-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========== SECTION HEADER ========== */
.hc-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.hc-section-header__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-fd-blue-3);
    margin-bottom: 12px;
}

.hc-section-header__subtitle {
    font-size: 16px;
    color: var(--color-fd-gray-1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hc-hero {
        padding: 40px 0 60px;
        margin-top: 76px;
    }

    .hc-hero__title {
        font-size: 32px;
    }

    .hc-categories,
    .hc-trainers {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hc-hero__title {
        font-size: 28px;
    }

    .hc-search__btn span {
        display: none;
    }

    .hc-category-card {
        padding: 32px 24px;
    }

    .hc-category-card__icon {
        width: 70px;
        height: 70px;
    }

    .hc-guide-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hc-guide-card__arrow {
        display: none;
    }
}
.hc-category-card:hover .hc-category-card__link {
    gap: 12px;
}

/* ========== TRAINERS SECTION ========== */
.hc-trainers {
    background: var(--color-fd-light-1);
    padding: 80px 0;
}

.hc-trainers__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-fd-blue-3);
    margin-bottom: 12px;
}

.hc-trainers__subtitle {
    font-size: 16px;
    color: var(--color-fd-gray-1);
}

/* ========== GUIDE PAGE ========== */
.hc-guide-page {
    background: var(--color-fd-light-1);
    padding: 40px 0 80px;
}

/* Sidebar Columns - hidden on mobile, visible on desktop */
.hc-sidebar-col {
    display: none;
}

@media (min-width: 992px) {
    .hc-sidebar-col {
        display: block;
    }
}

/* Sidebars */
.hc-sidebar {
    position: sticky;
    top: 120px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.hc-sidebar--left {
    margin-right: 20px;
}

.hc-sidebar--right {
    margin-left: 20px;
}

.hc-sidebar__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-fd-green-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.hc-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-sidebar__link {
    font-size: 14px;
    color: var(--color-fd-gray-1);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.hc-sidebar__link:hover {
    background: var(--color-fd-green-1);
    color: var(--color-fd-green-5);
}

.hc-sidebar__link--active {
    background: var(--color-fd-green-2);
    color: var(--color-fd-green-5);
    font-weight: 600;
}

/* Main Content Area */
.hc-guide-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #eee;
    min-height: 400px;
}

/* Guide Header */
.hc-guide-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-fd-green-2);
}

.hc-guide-header__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-fd-blue-4);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hc-guide-header__desc {
    font-size: 16px;
    color: var(--color-fd-gray-1);
    line-height: 1.6;
    margin: 0;
}

/* Articles */
.hc-article {
    padding: 32px 0;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 100px;
}

.hc-article:last-of-type {
    border-bottom: none;
}

.hc-article__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-fd-green-4);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hc-article__content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-fd-dark-1);
}

.hc-article__content p {
    margin-bottom: 16px;
}

.hc-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.hc-article__content ul,
.hc-article__content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.hc-article__content li {
    margin-bottom: 8px;
}

/* Table of Contents - Active state */
.hc-toc__link.active {
    background: var(--color-fd-green-2);
    color: var(--color-fd-green-5);
    font-weight: 600;
}

/* Share Section */
.hc-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.hc-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-fd-blue-3);
}

.hc-share__buttons {
    display: flex;
    gap: 10px;
}

.hc-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hc-share__btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
    color: #fff;
}

.hc-share__btn--facebook {
    background: #1877f2;
}

.hc-share__btn--twitter {
    background: #1da1f2;
}

.hc-share__btn--linkedin {
    background: #0a66c2;
}

/* ========== FEEDBACK SECTION ========== */
.hc-feedback {
    margin-top: 40px;
    padding: 24px;
    background: var(--color-fd-light-1);
    border-radius: 12px;
    text-align: center;
}

.hc-feedback__question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-fd-blue-4);
    margin-bottom: 16px;
}

.hc-feedback__question i {
    font-size: 20px;
    color: var(--color-fd-green-4);
}

.hc-feedback__buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hc-feedback__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-feedback__btn--yes {
    background: #fff;
    color: var(--color-fd-green-4);
    border-color: var(--color-fd-green-3);
}

.hc-feedback__btn--yes:hover {
    background: var(--color-fd-green-2);
}

.hc-feedback__btn--no {
    background: #fff;
    color: #dc3545;
    border-color: #f5c6cb;
}

.hc-feedback__btn--no:hover {
    background: #f8d7da;
}

.hc-feedback__thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: var(--color-fd-green-4);
    font-weight: 600;
}

.hc-feedback__thanks i {
    font-size: 20px;
}

/* ========== NAVIGATION PREV/NEXT ========== */
.hc-nav {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* When only next guide exists, align to right */
.hc-nav--next-only {
    justify-content: flex-end;
}

/* When only prev guide exists, align to left */
.hc-nav--prev-only {
    justify-content: flex-start;
}

.hc-nav__item {
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 50%;
    padding: 16px;
    background: var(--color-fd-light-1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hc-nav__item:hover {
    background: var(--color-fd-green-1);
}

.hc-nav__item--next {
    text-align: right;
}

.hc-nav__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-fd-gray-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hc-nav__item--next .hc-nav__label {
    justify-content: flex-end;
}

.hc-nav__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-fd-blue-4);
    line-height: 1.4;
}

/* ========== MOBILE TOC ========== */
.hc-toc-mobile {
    display: block;
    margin-bottom: 24px;
}

.hc-toc-mobile__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: var(--color-fd-light-1);
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-fd-blue-4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-toc-mobile__toggle:hover {
    background: var(--color-fd-green-1);
}

.hc-toc-mobile__arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.hc-toc-mobile.is-open .hc-toc-mobile__arrow {
    transform: rotate(180deg);
}

.hc-toc-mobile__nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.hc-toc-mobile.is-open .hc-toc-mobile__nav {
    display: flex;
}

.hc-toc-mobile__link {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-fd-gray-1);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hc-toc-mobile__link:hover {
    background: var(--color-fd-green-1);
    color: var(--color-fd-green-5);
}

/* Hide mobile TOC on desktop */
@media (min-width: 992px) {
    .hc-toc-mobile {
        display: none;
    }
}

/* ========== SCROLL SPY ========== */
.hc-toc__link.is-active {
    background: var(--color-fd-green-2);
    color: var(--color-fd-green-5);
    font-weight: 600;
}

/* Guide Page Responsive */
@media (max-width: 991px) {
    .hc-guide-page {
        padding: 20px 0 60px;
    }

    .hc-guide-content {
        padding: 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .hc-guide-header__title {
        font-size: 24px;
    }

    .hc-article__title {
        font-size: 20px;
    }

    .hc-nav {
        flex-direction: column;
    }

    .hc-nav__item--next {
        text-align: left;
    }

    .hc-nav__item--next .hc-nav__label {
        justify-content: flex-start;
    }
}

/* Help Center Breadcrumb - Mobile truncation */
@media (max-width: 767px) {
    .hc-hero .fd-breadcrumb {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hc-hero .fd-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .hc-hero .fd-breadcrumb__item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hc-hero--compact .fd-breadcrumb__item.-active {
        max-width: none;
    }

    /* Share buttons mobile */
    .hc-share {
        flex-direction: column;
        gap: 12px;
    }

    /* Feedback mobile */
    .hc-feedback {
        padding: 20px 16px;
    }

    .hc-feedback__question {
        font-size: 15px;
    }
}

