/* ===== Global Styles ===== */
html, body {
    height: 100%; /* for sticky footer */
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    color: #4B0D62;
    line-height: 1.6;
    background-color: #f9f9f9;
}

main, #page-content {
    flex: 1; /* push footer to bottom */
}

/* ===== Image Utilities ===== */
.scale-up {
    transform: scale(1.5);
    transform-origin: top left; /* anchor point for scaling */
}

/* ===== Tabs State Overrides ===== */
.ui-state-default.ui-corner-left {
    margin: 0 !important;
    border: none !important;
}

.ui-tabs-nav li.ui-state-focus,
.ui-tabs-nav li.ui-state-focus a {
    outline: none !important;
    box-shadow: none !important;
}

/* ===== Typography ===== */
/* Headings / Topics */
h1, h2, h5,h4,
#tabs ul li a {
    color: #4B0D62;
    font-weight: 550;
}

/* Normal text */
p, li, a, span, div {
    color: #4B0D62;
    font-weight: 500;
}

/* Links */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== Top Bar ===== */
#topbar {
    background: #4B0D62;
    padding: 10px 0;
    color: #fff;
}

#topbar .logo img {
    max-height: 50px;
}

#topbar .menu {
    text-align: right;
}

/* ===== Header Section ===== */
#header-title {
    background-color: #fff; /* white background */
    padding: 40px 0;
    text-align: center;
}

#header-title h1 {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4B0D62;
    white-space: nowrap;
    display: inline-block;
    border-radius: 6px;
    margin: 0;
}

/* ===== Page Content ===== */
#page-content {
    padding: 30px 0;
    background-color: rgba(227, 219, 235, 0.8);
}

#page-content h2 {
    margin-top: 20px;
    font-size: 24px;
}

#page-content p {
    margin-bottom: 15px;
}

/* ===== Tabs ===== */
#tabs {
    background-color: rgba(227, 219, 235, 0.6);
    padding: 20px;
    border-radius: 8px;
}

/* Tabs Navigation */
.ui-tabs-nav.ui-helper-reset.ui-helper-clearfix.ui-widget-header.ui-corner-all {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border: none;
    background: transparent;
    padding-bottom: 15px; /* increased bottom padding */
}

.ui-tabs-nav li {
    flex: 0 0 auto;
}

.ui-tabs-nav li a {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(227, 219, 235, 0.8);
    border: 1px solid #4B0D62;   /* add full border */
    border-radius: 4px 4px 4px 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4B0D62;
    transition: background 0.2s, border 0.2s;
}

/* Hover effect */
.ui-tabs-nav li a:hover {
    background: rgba(227, 219, 235, 0.9);
    border: 1px solid #4B0D62;
    border-radius: 4px 4px 4px 4px;
    color: #4B0D62;
}

/* Active tab */
.ui-tabs-nav li.ui-state-default.ui-corner-left.ui-tabs-active.ui-state-active a {
    background: rgba(75, 13, 98, 0.4);
    color: #4B0D62 !important;
    border-radius: 4px 4px 4px 4px;
    font-weight: 600;
    border: 1px solid #4B0D62;
    position: relative;
    top: 1px; /* visually align with the panel */
}

/* Tabs Container Border */
.ui-tabs.ui-widget.ui-widget-content.ui-corner-all.ui-tabs-vertical.ui-helper-clearfix {
    border: 1px solid #4B0D62;
    border-radius: 6px;
    padding: 10px;
}

.ui-tabs-anchor {
    border: 1px solid #4B0D62;
    border-radius: 6px;
    padding: 10px;
}

/* ===== Footer ===== */
footer {
    background: #4B0D62;
    color: #fff;
    padding: 20px 0;
    margin-top: auto; /* pushes footer down */
}

footer .copyright {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

footer .footer-logo {
    text-align: right;
}

footer .footer-logo img {
    max-height: 40px;
}

.col-md-3.logo {
    padding-bottom: 28px;
}

/* ===== Media Queries ===== */
@media (max-width: 767px) {

    #header-title h1 {
        font-size: 20px;
    }

    #page-content h2 {
        font-size: 14px;
    }

    .scale-up {
        padding-left: 16px;
        transform: scale(1.3);
        transform-origin: top left; /* anchor point for scaling */
    }

    .col-md-3.logo {
        padding-bottom: 10px;
    }

    .ui-tabs-nav li a {
        font-size: 13px !important;
    }

    #header-title {
        padding: 20px 0;
        text-align: left;
    }

    #page-content {
        padding: 10px 0;
    }
}

/* ===== Commented Out Legacy Styles ===== */
/*.ui-tabs-nav.ui-helper-reset.ui-helper-clearfix.ui-widget-header.ui-corner-all {*/
/*    background-color: #ffffff !important;*/
/*    border-bottom: 1px solid #4B0D62; !* keeps the tabs aligned with the panel *!*/
/*    padding: 20px; !* keeps spacing consistent *!*/
/*}*/
/*.ui-tabs.ui-widget.ui-widget-content.ui-corner-all.ui-tabs-vertical.ui-helper-clearfix {*/
/*    padding: 0px !important;*/
/*    border-radius: 8px;!* keeps spacing consistent *!*/
/*}*/
/*.ui-tabs-panel.ui-widget-content.ui-corner-bottom {*/
/*    background-color: #ffffff !important;*/
/*    padding: 30px; !* keeps spacing consistent *!*/
/*}*/
