@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #1D3557;
    --background-color: #F8F9FA;
    --text-color: #333;
    --accent-color: #E63946;
    --white: #ffffff;
    --gray: #6C757D;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* HEADER */
.header {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 0 0 10px 10px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.header p {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* MAIN */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ GRID */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    border: 2px solid var(--primary-color);
}

.faq-card:hover {
    transform: translateY(-5px);
}

.faq-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    padding: 15px;
}

.faq-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.faq-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
}

/* FOOTER */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 40px;
    border-radius: 10px 10px 0 0;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    color: var(--gray);
}

.footer p a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.footer p a:hover {
    text-decoration: underline;
}




.faq-image-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.faq-content {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-color);
}


/* search-box */
.search-box {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    font-size: 20px;
    border: 2px solid #1D3557;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
    background-color: #f8f9fa;
    color: #1D3557;
}

.search-box:focus {
    border-color: #457B9D;
    outline: none;
    background-color: #ffffff;
}


.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


.faq-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: center;
    padding: 15px;
}

.faq-card:hover {
    transform: scale(1.05);
}

.faq-card img {
    max-width: 100%;
    border-radius: 5px;
}

.faq-card h3 {
    font-size: 18px;
    color: #1D3557;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}