/* General Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Tab Navigation */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tabs a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.tabs a:hover {
    color: #0056b3;
}

.tabs a.active {
    border-bottom: 3px solid #007bff;
}

/* Main Content */
.resources-content {
    flex: 1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Section Boxes */
.resources-legal, .resources-other{
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.resources-legal h1, .resources-other h1 {
    font-size: 1.4rem;
    color: #102a4d;
    margin-bottom: 15px;
}

/* Table Styles */
.resources-table-container {
    overflow-x: auto;
    width: 100%;
}

.resources-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.resources-table th {
    background: #f1f1f1;
    font-weight: bold;
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    width: 200px;
}

.resources-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* FAQ */
 .faq-content {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.faq-content h1{
    font-size: 1.4rem;
}

/* FAQ Category */
.faq-category {
    font-size: 1rem;
    font-weight: bold;
    color: #102a4d;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* FAQ Category Tabs*/
.faq-tabs {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: -10px;
    margin-bottom: 5px; 
    padding: 5px 0;
    border-bottom: 2px solid #ddd;
}

/* Adjust tab styles */
.faq-tabs a {
    text-decoration: none;
    color:  #0056b3;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 8px 16px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.faq-tabs a:hover {
    color: #0056b3;
}

.faq-tabs a.active {
    border-bottom: 3px solid #007bff;
}

/* FAQ Accordion */
.accordion {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding-left: 10px; 
    padding-right: 10px;
    box-sizing: border-box; 
}

/* Ensure accordion items do not overflow */
.accordion-item {
    width: 100%;
    max-width: 100%;
}


/* Hide Checkboxes */
.accordion-toggle {
    display: none;
}

/* Accordion Header */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #f8f9fa;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e0e0e0;
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    display: flex;
    white-space: pre-wrap;
    line-height: 1.4rem;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-toggle:checked + .accordion-header + .accordion-content {
    max-height: none;
    opacity: 1;
    padding: 10px 15px;
  }  

/* Mobile Adjustments */
@media (max-width: 768px) {
    .resources-table-container {
        overflow-x: auto;
    }

    .resources-table th, 
    .resources-table td {
        font-size: 14px;
        padding: 8px;
    }

    .accordion {
        max-width: 100%;
        padding: 10px;
    }

    .accordion-header {
        font-size: 14px;
        padding: 12px;
    }

    .accordion-content {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .resources-table th, 
    .resources-table td {
        font-size: 12px;
        padding: 6px;
    }

    .accordion-header {
        font-size: 13px;
        padding: 10px;
    }

    .accordion-content {
        font-size: 12px;
    }
}
