/* ===================================
   CSS Template - FAQ Components
   Computer Insights, Inc.
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ===================================
   TOP BAR WITH CONTACT INFO
   =================================== */

.top-bar {
    background-color: #1a365d;
    color: white;
    padding: 10px 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    font-size: 0.9em;
    align-items: center;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
}

.contact-center {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    text-align: center;
}

.contact-center address {
    display: inline;
    font-style: normal;
}

.contact-right {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.contact-left .fa,
.contact-center .fa,
.contact-right .fa {
    margin-right: 5px;
    font-size: 1.1em;
}

.contact-left a,
.contact-center a,
.contact-right a {
    color: white;
    text-decoration: none;
}

.contact-left a:hover,
.contact-center a:hover,
.contact-right a:hover {
    text-decoration: underline;
}

/* ===================================
   HEADER STYLES with Logo
   =================================== */

.page-header {
    padding: 30px 20px 40px 20px;
    border-bottom: 3px solid #2c5282;
    margin-bottom: 40px;
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
}

.header-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    padding-left: 30px;
}

.logo-and-company {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-container {
    flex-shrink: 0;
}

.company-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.company-info {
    text-align: left;
}

.company-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.company-tagline {
    font-size: 1em;
    color: #4a5568;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

.header-title {
    text-align: center;
}

.page-title {
    font-size: 2em;
    font-weight: 700;
    color: #2c5282;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ===================================
   SECTION HEADINGS (from ver001)
   =================================== */

.page-header ~ * {
    padding-left: 30px;
    padding-right: 30px;
}

.section-heading {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c5282;
    margin: 40px 0 25px 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.faq-section:first-of-type .section-heading {
    margin-top: 20px;
}

.faq-section {
    margin-bottom: 20px;
}

/* ===================================
   CALLOUT BOXES - Important & Key Principle
   (from ver001)
   =================================== */

.callout {
    border-left: 4px solid;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
    background-color: #f7fafc;
}

.callout-label {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.callout-content p {
    margin-bottom: 10px;
}

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

/* Lists inside callout boxes - add more left margin */
.callout ul,
.callout ol {
    margin: 15px 0 15px 40px;
    padding-left: 0;
}

.callout li {
    margin-bottom: 8px;
}

/* Warning Callout (Red - formerly Important) */
.callout-warning {
    border-left-color: #e53e3e;
    background-color: #fff5f5;
}

.callout-warning .callout-label {
    color: #c53030;
}

/* Important Callout (Yellow) */
.callout-important {
    border-left-color: #f59e0b;
    background-color: #fef3c7;
}

.callout-important .callout-label {
    color: #92400e;
}

/* Key Principle Callout */
.callout-principle {
    border-left-color: #3182ce;
    background-color: #ebf8ff;
}

.callout-principle .callout-label {
    color: #2c5282;
}

/* Attention Callout (Green - similar to Key Principle) */
.callout-attention {
    border-left-color: #38a169;
    background-color: #f0fff4;
}

.callout-attention .callout-label {
    color: #2f855a;
}

/* ===================================
   TRAINING BANNER - "All training is included"
   Using green shades similar to Key Principle blues
   =================================== */

.training-banner {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Green variant for "All training is included" */
.training-banner.training-included {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

.training-icon {
    font-size: 2em;
    margin-right: 20px;
    background-color: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.training-text {
    font-size: 1.05em;
    line-height: 1.5;
}

.training-text strong {
    display: block;
    font-size: 1.15em;
    margin-bottom: 5px;
}

/* ===================================
   FAQ ITEMS with Q Marker
   (Q from second page)
   =================================== */

.faq-item {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.q-marker {
    font-size: 1.3em;
    font-weight: 700;
    color: #3182ce;
    background-color: #ebf8ff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 15px;
    margin-left: 10px;
}

.question-text {
    font-size: 1.25em;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    padding-top: 4px;
}

.answer {
    margin-left: 60px;
    color: #4a5568;
}

.answer p {
    margin-bottom: 15px;
}

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

.answer ul {
    margin: 15px 0 15px 20px;
}

.answer li {
    margin-bottom: 8px;
}

/* ===================================
   TRAINING PHASE SECTIONS
   =================================== */

.training-phase {
    background-color: #f7fafc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.phase-title {
    font-size: 1.15em;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 12px;
}

.training-phase ul {
    margin-left: 20px;
}

.training-phase li {
    margin-bottom: 8px;
}

/* ===================================
   ROLE GROUPS
   =================================== */

.role-group {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f7fafc;
    border-left: 3px solid #cbd5e0;
    border-radius: 3px;
}

.role-group h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 5px;
}

.role-group p {
    color: #4a5568;
    margin-bottom: 0;
}

/* ===================================
   CONFIGURATION OPTIONS
   =================================== */

.config-option {
    margin: 15px 0;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.config-option h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 8px;
}

.config-option p {
    color: #4a5568;
    margin-bottom: 0;
}

/* ===================================
   FOOTER STYLES (from second page)
   =================================== */

.page-footer {
    background-color: #2d3748;
    color: #e2e8f0;
    margin-top: 60px;
    padding: 40px 30px 20px 30px;
    border-top: 4px solid #2c5282;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a5568;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.footer-section a {
    color: #90cdf4;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 0.9em;
    color: #cbd5e0;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Footer Logo Section */
.footer-logo-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
}

.footer-company-info {
    flex: 1;
}

.footer-company-info h3 {
    margin-top: 0;
}

.footer-company-info em {
    color: #90cdf4;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .top-bar {
        padding: 10px 15px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 0.85em;
    }

    .contact-left,
    .contact-center,
    .contact-right {
        justify-content: center;
        text-align: center;
    }

    .page-header ~ * {
        padding-left: 20px;
        padding-right: 20px;
    }

    .company-logo {
        max-width: 150px;
    }

    .header-top {
        justify-content: center;
        padding-left: 0;
    }

    .logo-and-company {
        flex-direction: column;
        text-align: center;
    }

    .company-info {
        text-align: center;
    }

    .company-name {
        font-size: 1.5em;
    }

    .company-tagline {
        font-size: 0.95em;
    }

    .page-title {
        font-size: 1.6em;
    }

    .section-heading {
        font-size: 1.5em;
    }

    .question-text {
        font-size: 1.1em;
    }

    .answer {
        margin-left: 0;
    }

    .training-banner {
        flex-direction: column;
        text-align: center;
    }

    .training-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        max-width: 100px;
    }

    .q-marker {
        width: 30px;
        height: 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 12px;
    }

    .contact-info {
        font-size: 0.8em;
    }

    .page-header ~ * {
        padding-left: 15px;
        padding-right: 15px;
    }

    .company-logo {
        max-width: 120px;
    }

    .company-name {
        font-size: 1.3em;
    }

    .company-tagline {
        font-size: 0.9em;
    }

    .page-title {
        font-size: 1.4em;
    }

    .page-header {
        padding: 20px 15px 30px 15px;
    }

    .callout {
        padding: 12px 15px;
    }

    .training-banner {
        padding: 15px;
    }

    .page-footer {
        padding: 30px 20px 15px 20px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    body {
        background-color: white;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .top-bar {
        background-color: white;
        color: black;
        border-bottom: 1px solid #ccc;
    }

    .page-footer {
        background-color: white;
        color: black;
        border-top: 2px solid black;
    }

    .footer-section a {
        color: black;
    }

    .callout {
        border: 1px solid #ccc;
    }

    .training-banner {
        background: white;
        color: black;
        border: 2px solid #2f855a;
    }

    .page-header {
        background: white;
    }
}
