/* html {
    font-size: 15px;
} */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins, Helvetica, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    font-size: 0.93rem; 
}

/* Header Section */
.header-section {
    background-color: #ec1c24;
    color: white;
    padding: 5.33rem; 
    text-align: center;
    margin: auto 0;
}

.header-title {
    font-size: 2.33rem; 
    font-weight: 700;
    letter-spacing: 0.13rem;
    text-transform: uppercase;
}

.container {
    padding: 0;
}

/* Content Container */
.main-content {
    width: 72%;
    padding: 1.33rem; 
    margin-top: -2.67rem; 
    margin-bottom: 2.67rem; 
    background: white;
    border-radius: 0.53rem; 
    box-shadow: 0 0.27rem 1.33rem rgba(0, 0, 0, 0.1); 
    position: relative;
    z-index: 10;
}


/* Tab Navigation */
.tab-header {
    /*border-bottom: 0.07rem solid #dee2e6;*/ 
/*    background-image: -webkit-linear-gradient(120deg, #eeebec 1%, #d6d6d6 25%, #f2f2f2 59%, #f0efef 80%);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.tab-navigation {
    display: flex;
    overflow: hidden;
}

.tab-button {
    border: 0.07rem solid #dee2e6; 
    border-bottom: 0.2rem solid transparent; 
    flex: 1;
    max-width: 8rem; 
    padding: 0.6rem; 
    background: #f8f9fa;
    border-right: 0.07rem solid #e0e0e0; 
    cursor: pointer;
    font-size: 0.93rem; 
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
}

    .tab-button:last-child {
        border-right: none;
    }

    .tab-button.active {
        background: white;
        color: #333;
        border-bottom: 0.2rem solid #c41230; 
    }

    .tab-button:hover:not(.active) {
        background: #e9ecef;
        color: #333;
    }

/* Search Section */
.search-container {
    min-width: 35%;
}

input.form-control, select.form-select {
    border-radius: 0 !important;
}


.search-input {
    border: 0.13rem solid #ddd; 
    font-size: 0.93rem;
    background: #fafafa;
    transition: all 0.3s ease;
    padding: .27rem; 
}

    .search-input:focus {
        outline: none;
        border-color: #c41230;
        background: white;
        box-shadow: none;
    }

#searchIcon {
    font-size: 0.67rem;
    color: #666;
    position: absolute;
    top: 9px;
    right: 10px;
}

/* Content Area */
.content-area {
    padding-top: 2rem; 
    padding-bottom: 2rem;
    min-height: 40rem;
}

.tab-content {
    display: none;
}

    .tab-content p {
        font-size: 0.93rem; 
        line-height: 1.6;
        font-weight: 400!important;
        color: #000;
    }

    .tab-content.active {
        display: block;
    }

/* Definition List */
.definition-list {
    list-style: none;
    padding: 0;
}

.definition-item {
    margin-bottom: .53rem;
    padding: 0;
}

.definition-term {
    font-weight: bold;
    color: #000 !important;
    /* margin-right: 0.53rem;  */
    font-size: 0.93rem; 
}

.definition-text {
    color: #555;
    font-size: 0.93rem; 
    line-height: 1.6;
}

/* Sub-lists for nested definitions */
.sub-definition-list {
    margin: 1rem 0 1rem 3rem !important; 
    
}

    .sub-definition-list li {
        margin-bottom: 0.53rem;
        list-style: disc;
        color: #000;
        font-size: 0.93rem; 
        line-height: 1.5;
    }
 .sub-definition-dash {
    margin: 1rem 0 1rem 3rem !important;
    padding-left: 0;
}

.sub-definition-dash li {
    margin-bottom: 0.53rem;
    list-style: none;
    color: #000;
    font-size: 0.93rem;
    line-height: 1.5;
    position: relative;
}

.sub-definition-dash li::before {
    content: "- ";
    position: absolute;
    left: -15px;
}

/* Closing Clauses styling */
.closing-clauses {
    margin-top: 2rem; 
    padding: 1.33rem; 
    background: #f8f9fa;
    border-left: 0.27rem solid #c41230;
    border-radius: 0.4rem;
}

    .closing-clauses p {
        font-size: 1rem; 
    }

/* Highlight styles for search */
.highlight {
    background-color: yellow;
    padding: 0.07rem 0.13rem; 
    border-radius: 0.13rem; 
    font-weight: bold;
}

    .highlight.current {
        background-color: #c41230;
        color: white;
    }

/* Navigation buttons */
.nav-buttons {
    display: none;
    gap: 0.33rem;
}

    .nav-buttons.show {
        display: flex;
    }

.nav-button {
    background: #c41230;
    color: white;
    border: none;
    width: 2.13rem; 
    height: 2.13rem; 
    border-radius: 0.27rem; 
    font-size: 0.93rem; 
    transition: background-color 0.3s;
}

    .nav-button:hover {
        background: #a01027;
        color: white;
    }

    .nav-button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Accordion Styles */
.accordion-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    background: #ec1c24;
    padding: 0.67rem 1rem; 
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

    .accordion-header:hover {
        background: #c40007;
        color: #fff;
    }

    .accordion-header.active {
        background: #ec1c24;
        color: #fff;
    }

.accordion-title {
    color: #fff;
    font-size: 1.07rem; 
    font-weight: 600;
}

.accordion-icon {
    color: #fff;
    font-size: 0.8rem; 
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 1rem;
    display: none;
}

    .accordion-content.active {
        display: block;
    }

    .accordion-content h3 {
        color: #000;
        margin-bottom: 0.67rem; 
        font-size: 1.07rem; 
        font-weight: 600;
    }

    .accordion-content p {
        margin-bottom: 0.67rem; 
        color: #555;
        font-weight:400!important;
    }

    .accordion-content ul {
        margin-left: 1.33rem;
        margin-bottom: 0.67rem; 
    }

    .accordion-content li {
        margin-bottom: 0.33rem;
        color: #555;
    }
.custom-table-1 {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
}
.bold{
    font-weight:600!important;
}

    .custom-table-1 th,
    .custom-table-1 td {
        border: 1px solid #ccc;
        padding: 10px 15px;
        text-align: left; 
        font-size: 14px;
    }

.custom-table-1 th {
    background-color: #FBB995;
    font-weight: bold;
    color: #333;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

    /* --- Alternating Row Colors (Zebra Striping) for readability --- */
/*    .custom-table-1 tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }*/

    /* --- Hover effect for user engagement --- */
    .custom-table-1 tbody tr:hover {
        background-color: #f1f1f1;
        cursor: default;
    }

.table-scroll-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-scroll-wrapper .custom-table-1 {
        min-width: 600px;
        margin-bottom: 0;
    }
    .table-scroll-wrapper .custom-table-1 th,
    .table-scroll-wrapper .custom-table-1 td {
        white-space: normal;
        word-break: break-word;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}
span.search-counter {
    position: absolute;
    top: 103%;
    right: 0;
    font-size:1rem!important;
}

.nav-buttons.tnc-nav-fixed-btns {
    position: fixed;
    right: 2%;
    bottom: 10%;
    z-index: 9;
}
    .nav-buttons.tnc-nav-fixed-btns .nav-button {
        width: 3.13rem !important;
        background-color: #000000 !important;
    }
@media (max-width: 768px) {
    .nav-buttons.tnc-nav-fixed-btns {
        position: fixed;
        right: 18%;
        bottom: 3%;
        width: 3.13rem;
    }
}

/* --- Optional: Styling for text within the table (like the bold 'Applicability' cell) --- */
.skyhop-table-bold-term {
    font-weight: bold;
}

/* --- Optional: Styling for the introductory list and caption --- */
.skyhop-allowance-list {
    list-style: disc inside;
    margin-bottom: 10px;
    padding-left: 0;
}

    .skyhop-allowance-list li {
        font-size: 15px;
        margin-bottom: 5px;
        /* This handles the initial hyphen/bullet point structure */
        list-style-type: none;
        text-indent: -1em;
        padding-left: 1em;
    }

@media (max-width: 768px) {
    .header-title {
        font-size: 2.13rem; 
    }

    .tab-button {
        padding: 0.8rem 1rem; 
        font-size: 0.8rem; 
    }

    .content-area {
        padding:0;
    }
    .main-content{
        width:100%;
    }
}

/* Responsive Design */
@media (max-width: 660px) {
    .search-container {
        margin-top: .33rem; 
        margin-bottom: .33rem; 
        min-width: 100%;
    }

    .tab-header {
        flex-direction: column;
        align-items: start;
    }

    img#searchIcon {
        width: 1.2rem; 
    }

    #searchIcon {
        top: 13px;
    }

    .accordion-title {
        font-size: 1rem; 
    }
}

@media (max-width: 480px) {
    /* * NOTE: The previous rule to change html font-size to 55% was removed.
             * This keeps the 15px base consistent across all screen sizes.
             * The rem values below have been scaled down to achieve a similar visual effect.
             */

    .header-section {
        padding: 2.67rem 1rem 2rem; 
    }

    .header-title {
        font-size: 2rem; 
        letter-spacing: 0.13rem; 
    }

    .tab-button {
        border-right: none;
        border-bottom: 0.07rem solid #e0e0e0; 
    }
}
