* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Gilroy", "Poppins", "Segoe UI", Tahoma, Geneva, Verdana,
        sans-serif;
    line-height: 2;
    color: #333333;
    background: none;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    min-height: 100vh;
}

/* this will fix the overflow issue large images */
img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.navigation {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(106, 56, 194, 0.08);
    width: 320px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    padding: 15px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #6a38c2;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid transparent;
    border-bottom: 2px solid #f3f3f3;
}

.nav-link.active {
    background: #efe8f9;
    color: #6a38c2;
    border-bottom: 2px solid #f3f3f3;
    /* font-weight: 600; */
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #f3f3f3;
}

.nav-link:hover:not(.active) {
    background: #f8f8fc;
    border-color: transparent;
    color: #6a38c2;
}

.nav-dropdown {
    position: relative;
    display: block;
    margin-top: 10px;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    bottom: 100%;
    left: 0;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    color: #2c2c2c;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

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

.dropdown-item:hover {
    background-color: #efe8f9;
    color: #6a38c2;
}

/* Active state for dropdown items when highlighted by scrollspy */
.dropdown-item.active {
    background: #efe8f9;
    color: #6a38c2;
}

/* .main-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(106, 56, 194, 0.08);
} */

.main-content {
    flex: 1;
    background: white;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(106, 56, 194, 0.08);
    /* New Added */
    border-radius: 20px;
    height: 600px;
    overflow-y: auto;
}

.content {
    color: #333333;
    line-height: 1.7;
    font-size: 16px;
}

.section {
    margin-bottom: 50px;
    padding: 0;
}

.section:last-child {
    margin-bottom: 0;
}

.section h3 {
    color: #6a38c2;
    font-size: 18px;
    margin: 30px 0 20px 0;
    font-weight: 600;
    /* border-bottom: 2px solid #efe8f9; */
    padding-bottom: 12px;
    
}

.section-content {
    color: #333333;
    line-height: 1.7;
    font-size: 16px;
}

.paragraph {
    margin-bottom: 14px;
    line-height: 1.3;
    color: #807982;
    font-size: 16px;
}


.bold {
    font-weight: bold;
color: #333333;
    margin-right: 5px;
   
}


.italic {
    font-style: italic;
}

.sub {
    vertical-align: sub;
    font-size: smaller;
}

.sup {
    vertical-align: super;
    font-size: smaller;
}

.list {
    list-style: none;
    padding: 0;
    /* margin: 20px 0; */
}

.list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
    color: #333333;
    position: relative;
    padding-left: 20px;
}

.list li:before {
    content: "\2022";
    color: black;
    font-weight: 500;
    position: absolute;
    left: 0;
}

.list li:last-child {
    border-bottom: none;
}

.multi-column-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.multi-column-list li {
    padding: 8px 0;
    border-bottom: none;
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

.multi-column-list li:before {
    content: "\2022";
    color: #6a38c2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.side-effects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    background: #f8f8fc;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #efe8f9;
}

.side-effects-list li {
    padding: 8px 0;
    border-bottom: none;
    font-size: 16px;
    color: #333333;
    position: relative;
    padding-left: 20px;
}

.side-effects-list li:before {
    content: "\2022";
    color: #6a38c2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.nested-sections {
    margin-top: 20px;
}

.nested-list {
    list-style: none;
    padding-left: 25px;
    margin: 15px 0;
}

.nested-list li {
    margin-bottom: 10px;
    padding: 12px;
    background: #f8f8fc;
    border-left: 3px solid #6a38c2;
    border-radius: 6px;
}

.nested-sections-content {
    margin: 20px 0;
    padding: 0;
}

.nested-section-item {
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: none;
}

.nested-list .nested-list {
    padding-left: 20px;
    margin: 8px 0;
}

.nested-list .nested-list li {
    font-size: 15px;
    color: #666666;
}

.nested-list .nested-list li:before {
    content: "\2022";
    color: #6a38c2;
}

.nested-content {
    margin: 12px 0;
    padding: 12px 0;
    border-left: 3px solid #6a38c2;
    padding-left: 15px;
    background: #f8f8fc;
    border-radius: 6px;
}


.nested-content strong {
    color: #6a38c2;
    font-weight: 600;
}

h2{
    color: #6a38c2;
    font-size: 20px;
    margin-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
    padding: 5px 0px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    /* border-radius: 10px; */
    overflow: hidden;
    /* box-shadow: 0 4px 20px rgba(106, 56, 194, 0.08); */
}

.table th {
    background: #f2f2f2;
    /* color: white; */
    padding: 18px;
    text-align: left;
    font-weight: 600;
    border :1px solid #ddd;
}


/* .list li:nth-of-type(odd)::before {
    content: "";
  }  */


li .bold{
    list-style: none !important;
}
.table td {
    padding: 15px 18px;
    /* border-bottom: 1px solid #f1f3f4; */
    color: #333333;
    border :1px solid #ddd;
}
tr{
    border :1px solid #ddd;
    
}

/* .table tr:hover {
    background: #f8f8fc;
} */

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    color: #666666;
    font-size: 14px;
    border-top: 1px solid #efe8f9;
}

.subsection-header {
    margin: 20px 0 15px 0;
    padding: 12px 18px;
    background: linear-gradient(135deg, #6a38c2 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(106, 56, 194, 0.2);
}

.subsection-header strong {
    color: white;
    font-weight: 600;
}

.subsection-content {
    margin: 15px 0 20px 0;
    padding: 18px 20px;
    background: #f8f8fc;
    border-left: 3px solid #6a38c2;
    border-radius: 6px;
    color: #333333;
    line-height: 1.7;
}

.warning-section {
    background-color: #f9fafb;

    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.warning-header {
    color: #856404;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 20px;
}

.warning-content {
    color: #856404;
    font-weight: 500;
}

.image-container {
    margin: 25px 0;
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(106, 56, 194, 0.08);
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(106, 56, 194, 0.15);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
}

.image-container img[src*=".jpg"],
.image-container img[src*=".jpeg"],
.image-container img[src*=".png"],
.image-container img[src*=".gif"],
.image-container img[src*=".webp"] {
    object-fit: contain;
}

.image-loading {
    display: inline-block;
    padding: 25px;
    background: #efe8f9;
    border: 2px solid #6a38c2;
    border-radius: 10px;
    color: #6a38c2;
    font-weight: 500;
    text-align: center;
    min-width: 200px;
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    color: #666666;
    font-style: italic;
}

.image-placeholder {
    display: inline-block;
    padding: 25px;
    background: #f8f8fc;
    border: 2px dashed #6a38c2;
    border-radius: 10px;
    color: #6a38c2;
    font-weight: 500;
    text-align: center;
    min-width: 200px;
}

.image-error {
    display: inline-block;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
    font-size: 14px;
}

.drug-summary {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(106, 56, 194, 0.08);
    margin-bottom: 25px;
}

.drug-summary h2 {
    color: #6a38c2;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #efe8f9;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
    }

    .navigation {
        width: 100%;
        position: static;
        margin-bottom: 25px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .nav-link {
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        margin-top: 12px;
        box-shadow: none;
        border: 1px solid #efe8f9;
    }

    .section h3 {
        font-size: 18px;
    }

    .content,
    .section-content,
    .paragraph {
        font-size: 15px;
    }

    .multi-column-list {
        grid-template-columns: 1fr;
    }

    .side-effects-list {
        grid-template-columns: 1fr;
    }

    .nested-content {
        margin: 10px 0;
        padding: 10px 0;
        padding-left: 15px;
    }

    .nested-list {
        padding-left: 20px;
    }

    .nested-list .nested-list {
        padding-left: 15px;
    }

    .subsection-header {
        margin: 15px 0 12px 0;
        padding: 10px 15px;
        font-size: 16px;
    }

    .subsection-content {
        margin: 12px 0 15px 0;
        padding: 15px 18px;
    }
}

ol {
    list-style-type: disc;
    padding-left: 25px;
}