/* =========================================
   GLOBAL STYLES (MOODLE SAFE BASE)
========================================= */

html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
    margin: 0;
    padding: 40px 0;
    font-size: 14px;

    /* HEALTHCARE GRADIENT */
    background: linear-gradient(
        135deg,
        #dff3f1 0%,   /* soft teal */
        #e8f4ff 50%,  /* clinical blue */
        #f7fbff 100%  /* clean medical white */
    ) !important;

    background-attachment: fixed;
}

/* =========================================
   REMOVE MOODLE DUPLICATE PAGE TITLE
========================================= */

body#page-local-staticpage-view #page-header h1,
body#page-local-staticpage-view .page-header-headings h1 {
    display: none !important;
}

/* =========================================
   FIX MOODLE PAGE SPACING
========================================= */

body#page-local-staticpage-view #page,
body#page-local-staticpage-view #page-wrapper,
body#page-local-staticpage-view #page-content,
body#page-local-staticpage-view #region-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: transparent !important;
}

/* =========================================
   PAGE WRAPPER
========================================= */

.staticpage-wrapper {
    max-width: 1050px;
    background: transparent;
    margin: 0 auto;
}

/* =========================================
   TITLE
========================================= */

.staticpage-title {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.1;
}

/* =========================================
   INTRO TEXT
========================================= */

.faq-intro p {
    font-size: 16px;
    color: #334155;
    margin-bottom: 28px;
}

/* =========================================
   FAQ WRAPPER
========================================= */

.faq-wrapper .card {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.96);
}

.faq-wrapper .card-header {
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.faq-wrapper .card-title {
    margin: 0;
}

/* QUESTION */
.faq-wrapper .card-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.faq-wrapper .card-toggle:hover {
    background-color: #f1f5f9;
}

.faq-wrapper .card-toggle i {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #0f172a;
}

.faq-wrapper .card-toggle:not(.collapsed) i {
    transform: rotate(90deg);
}

/* ANSWER */
.faq-wrapper .card-body {
    padding: 18px 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    border-top: 1px solid #d1d5db;
    background-color: rgba(255, 255, 255, 0.96);
}

/* LINKS SAFETY */
.staticpage-wrapper a,
.faq-wrapper a {
    text-decoration: none !important;
    color: inherit;
}

.staticpage-wrapper a:hover,
.faq-wrapper a:hover {
    text-decoration: underline;
    color: #0d6efd;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 768px) {

    body {
        padding: 20px 0;
    }

    .staticpage-title {
        font-size: 34px;
    }

    .faq-intro p {
        font-size: 15px;
    }

    .faq-wrapper .card-toggle {
        font-size: 16px;
        padding: 16px 14px;
    }

    .faq-wrapper .card-body {
        font-size: 15px;
        padding: 16px 14px;
    }
}