/* ============================
   Auvisa - FAQ Visti Australiani (IT)
   Page-specific styles only
   ============================ */

/* --- Hero overrides --- */
.hero {
    background-image: url('/assets/images/faq/hero.jpg');
    min-height: 340px;
}

/* --- Intro / Disclaimer --- */
.intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f0f5fa;
    border-left: 4px solid #1f5184;
    border-radius: 0 8px 8px 0;
    padding: 24px;
    margin-bottom: 40px;
}

.intro__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.intro__text p {
    font-size: 15px;
    color: #212529;
    line-height: 1.7;
    margin-bottom: 12px;
}

.intro__text p:last-child {
    margin-bottom: 0;
}

.intro__disclaimer {
    font-size: 13px !important;
    color: #6c757d !important;
    font-style: italic;
}

/* --- Footnote --- */
.intro__footnote {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.6;
    margin-top: 24px;
    margin-bottom: 32px;
}

/* --- In-Page Navigation --- */
.page-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #dee2e6;
}

.page-nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.page-nav__link:hover {
    color: #1f5184;
}

.page-nav__link--active {
    color: #1f5184;
    border-bottom-color: #1f5184;
}

/* --- Tips Box --- */
.tips-box {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 32px;
}

.tips-box__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f5184;
    margin-bottom: 20px;
}

.tips-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-box__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #212529;
    line-height: 1.6;
}

.tips-box__list li:last-child {
    border-bottom: none;
}

.tips-box__list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.section--light .faq-item {
    background: #f9fafb;
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #1f5184;
    text-align: left;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.faq-item__question:hover {
    background-color: rgba(31, 81, 132, 0.04);
}

.faq-item__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #1f5184;
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-item__answer {
    max-height: 1200px;
    padding: 0 24px 24px;
}

.faq-item__answer p {
    font-size: 15px;
    color: #212529;
    line-height: 1.7;
    margin-bottom: 14px;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* --- Visa Cards inside FAQ --- */
.visa-card {
    background: #f0f5fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
}

.visa-card:last-child {
    margin-bottom: 0;
}

.visa-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1f5184;
    margin-bottom: 8px;
}

.visa-card p {
    font-size: 14px;
    color: #212529;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Related Articles Grid --- */
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-card {
    display: block;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.related-card__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1f5184;
    margin-bottom: 8px;
    line-height: 1.3;
    padding: 20px 20px 0;
}

.related-card__text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    padding: 0 20px 20px;
}

/* ============================
   Tablet (768px+)
   ============================ */
@media (min-width: 768px) {

    .faq-item__question {
        font-size: 18px;
        padding: 24px 28px;
    }

    .faq-item__answer {
        padding: 0 28px;
    }

    .faq-item.active .faq-item__answer {
        padding: 0 28px 28px;
    }

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

/* ============================
   Desktop (1024px+)
   ============================ */
@media (min-width: 1024px) {

    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .intro {
        padding: 28px 32px;
    }

    .tips-box {
        padding: 36px 40px;
    }
}
