/* Terms page specific styles - based on Resources tab design */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding, 300px);
}

html, body {
    height: auto;
    margin: 0;
    padding: 0;
}

body {
    height: auto;
    font-family: Helvetica, sans-serif;
    min-width: 1024px; /* Adjust this value to your desired base width */
    overflow-x: auto; /* Enable horizontal scrolling if content exceeds the viewport */
    margin: 0;
    padding: 0 0 60px; /* Add padding-bottom to ensure space for footer */
    background-color: #000;
    font-size: 14px;
}

.header {
    background-color: #FFD700; /* Gold background */
    font-family: Helvetica, sans-serif;
    color: black;
    padding: 10px;
    position: sticky;
    top: 0; /* Stick to the top */
    z-index: 99999; /* Ensure it stays above other content */
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for visibility */
}


.header a {
    color: #000000;
    padding: 14px 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold !important;
    font-family: Helvetica, sans-serif; 
}

.header a:hover {
    background-color: #a6a6a6;
    font-family: Helvetica, sans-serif; 
    font-weight: bold !important;
}


.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns the items to the left */
}

.header-left a, .header-right a {
    color: #000000;
    margin-right: 15px;
    font-weight: bold !important;
    font-size: 8px;
    font-family: Helvetica, sans-serif; 
    white-space: nowrap;
}



/* Add rounded corners on hover over the logo */
.header-left a:hover {
    font-family: Helvetica, sans-serif; 
    font-size: 8px;
    border-radius: 10px; /* Adjust the value to your preference */
}

    .second-menu {
        margin-left: 100px; /* Adjust to your liking */
    margin-left: 10px; /* Space between the two menus */
    }

    .client-menu {
        margin-left: 100px; /* Adjust to your liking */
    margin-left: 10px; /* Space between the two menus */
    }

.header-right {
    text-align: right; /* Align text to the right */
    padding-right: 20px; /* Add some padding for consistent spacing */
    margin: 20px; /* Remove extra margin */
    -webkit-font-smoothing: antialiased; /* Smooth fonts in WebKit */
    color: #000000; /* Text color */
    font-weight: bold !important; /* Ensure bold text */
    font-size: 12px; /* Small font size */
    font-family: Helvetica, sans-serif; /* Font family */
    box-sizing: border-box; /* Include padding in width calculation */
    width: 100%; /* Make paragraph take the full width */
    overflow: hidden; /* Prevent overflow issues */
    white-space: nowrap; /* Prevent text wrapping */
}


/* Styling for the paragraph inside header-right */
.header-right p {
    text-align: right; /* Align text to the right */
    padding-right: 10px; /* Add some padding for consistent spacing */
    margin: 0; /* Remove extra margin */
    -webkit-font-smoothing: antialiased; /* Smooth fonts in WebKit */
    color: #000000; /* Text color */
    font-weight: bold !important; /* Ensure bold text */
    font-size: aspx; /* Small font size */
    font-family: Helvetica, sans-serif; /* Font family */
    box-sizing: border-box; /* Include padding in width calculation */
    width: 100%; /* Make paragraph take the full width */
    overflow: hidden; /* Prevent overflow issues */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Tabbed interface container - matches Resources tab */
.tabbed-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 50px auto;
    width: 90%;
    max-width: 1200px;
    padding-top: 30px;
}

/* Tabbed header styling */
.tabbed-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* Tab buttons */
.tabbed-tab {
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.tabbed-tab:hover {
    background: rgba(255,255,255,0.25);
}

.tabbed-tab.active {
    background: rgba(255,255,255,0.35);
    font-weight: 600;
}

.tabbed-tab:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/* Panel sections */
.panel-section {
    margin-bottom: 20px;
}

/* Definitions container - indented subsection */
.definitions-container {
    margin-left: 100px;
    Margin-right: 100px;
    padding-left: 15px;
    border-left: 3px solid #e9ecef;
    background: #f8f9fa;
    padding: 20px 20px 25px 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.definitions-container h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #274e13;
    font-size: 1.1em;
    font-weight: 600;
}

.definitions-container p {
    margin-bottom: 10px;
    color: #6c757d;
    line-height: 1.5;
}

/* Panel header styling - matches Resources tab */
.panel-header {
    display: flex;
    align-items: center;
    margin-left: 30px;
    margin-right: 30px;    
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.panel-icon {
    font-size: 2em;
    color: #007bff;
    width: 30px;
    margin-right: 10px;
}

.panel-title {
    margin: 0;
    margin-top: 20px;
    color: #0013de;
    font-size: 2em;
}

/* Content styling */
.panel-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.2em;
    font-weight: bold;
}

.panel-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    margin-left: 30px;
    margin-right: 30px;    
    color: #555;
    font-size: 1.2em;
    font-weight: bold;
}

.panel-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    margin-left: 30px;
    margin-right: 30px;    
    color: #0013de;
    font-size: 1.2em;
    font-weight: bold;
}

.panel-content p {
    margin-bottom: 15px;
    margin-left: 30px;
    margin-right: 30px;    
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

.panel-content ul {
    margin-bottom: 15px;
    margin-left: 30px;
    margin-right: 30px;    
    padding-left: 20px;
}

.panel-content li {
    margin-bottom: 8px;
    margin-left: 30px;
    margin-right: 30px;    
    line-height: 1.5;
    color: #666;
    font-size: 14px;
}

.panel-content a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.panel-content a:hover {
    text-decoration: underline;
}

/* Special content boxes - matches Resources tab */
.required-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 0.92em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-left: 30px;
    margin-bottom: 16px;
}

.info-box {
    font-size: 1.13em;
    color: #222;
    line-height: 1.75;
    margin-left: 30px;
    margin-right: 30px;    
    margin-bottom: 12px;
    padding: 16px 18px;
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
}

.support-box {
    margin-top: 15px;
    padding: 12px 14px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    font-size: 1.13em;
}

/* Footer styling */
footer {
    position: fixed;
    bottom: 0;
    font-family: Helvetica, sans-serif;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    font-size: 8px;
    z-index: 1000;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    body {
        min-width: auto;
        overflow-x: hidden;
        font-size: 14px;
    }

    .tabbed-container {
        width: 95%;
        margin: 20px auto;
    }

    .panel-content p,
    .panel-content li,
    .panel-content a {
        font-size: 14px;
    }
}
