﻿/* Bootstrap 5 layout restore for Studon */
:root {
    --studon-blue: #087df4;
    --studon-dark-blue: #33679a;
    --studon-gold: #f2aa1a;
}

html,
body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 16px;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2933;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

/* Header */
#header {
    background: #ffffff !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
}

#header .container {
    height: auto !important;
}

#header .row {
    align-items: center;
}

.headerimg_wrap {
    float: left;
    width: auto;
    height: auto;
    margin-right: 10px;
}

.headerimg_wrap img {
    width: 138px;
    height: 106px;
    object-fit: contain;
}

.headertext_wrap {
    float: left;
    padding-top: 25px;
}

h1.banner_wrap,
.banner_wrap {
    color: #33679a !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    padding: 0 0 2px !important;
    margin: 0 !important;
    text-transform: uppercase;
}

h2.fixhs,
.fixhs {
    color: #f2aa1a !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Header right menu */
.side_header_side {
    list-style: none !important;
    margin: 0 !important;
    padding: 17px 0 0 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.side_header_side > li {
    list-style: none !important;
    float: none !important;
    border-left: 1px solid #bbb;
}

.side_header_side > li > a {
    display: block;
    text-align: center;
    padding: 31px 17px;
    text-decoration: none !important;
}

.global-icon {
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.global-icon .icon {
    display: block;
    color: #f2aa1a !important;
    font-size: 30px !important;
    margin-bottom: 8px;
}

.global-icon .text {
    display: block;
}

/* Top blue navbar */
#navbar {
    background-color: #087df4 !important;
    min-height: 58px;
    margin-bottom: 0 !important;
}

#navbar .container {
    height: auto !important;
}

#navbar .nav-link {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Breadcrumb */
#breadcrumb {
    margin-bottom: 30px;
}

#breadcrumb .container {
    height: auto !important;
}

.breadcrumb {
    background: #cccccc !important;
    color: #333333 !important;
    padding: 14px 16px !important;
    margin-bottom: 0 !important;
    border-radius: 4px !important;
}

.breadcrumb a {
    color: #007bff !important;
    text-decoration: none;
}

/* General typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1f2933;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.85rem;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

h4 {
    font-size: 1.15rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--studon-blue);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--studon-dark-blue);
}

/* Page section headings */
.card-body h1,
.card-body h2,
.card-body h3,
#main h1,
#main h2,
#main h3 {
    position: relative;
    color: #172033;
    padding-bottom: 0.45rem;
    margin-top: 1.5rem;
}

.card-body h1:first-child,
.card-body h2:first-child,
.card-body h3:first-child,
#main h1:first-child,
#main h2:first-child,
#main h3:first-child {
    margin-top: 0;
}

.card-body h1::after,
.card-body h2::after,
.card-body h3::after,
#main h1::after,
#main h2::after,
#main h3::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--studon-gold), var(--studon-blue));
}

/* Card title should keep the Studon gold style */
.card-title {
    color: var(--studon-gold) !important;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0;
}

.card-title::after {
    display: none;
}

/* Breadcrumb */
.breadcrumb-section {
    margin-bottom: 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    border-bottom: 1px solid rgba(51, 103, 154, 0.12);
    padding: 14px 0;
}

.breadcrumb-section .container {
    height: auto !important;
}

.studon-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff !important;
    color: #334155 !important;
    padding: 13px 18px !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(51, 103, 154, 0.12);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    font-size: 0.95rem;
    font-weight: 500;
}

.studon-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    color: #64748b;
}

.studon-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1;
    padding-right: 0.55rem;
}

.studon-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--studon-blue) !important;
    text-decoration: none;
    font-weight: 700;
}

.studon-breadcrumb a:hover {
    color: var(--studon-dark-blue) !important;
}

.studon-breadcrumb .active {
    color: #1f2937 !important;
    font-weight: 700;
}

.studon-breadcrumb i {
    font-size: 0.9rem;
    color: var(--studon-gold);
}

/* Sidebar text */
.list-group-item {
    font-size: 0.96rem;
    font-weight: 500;
}

.list-group-item.active {
    font-weight: 700;
}

/* Table headings */
.table th {
    color: #172033;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

/* Form labels */
label,
.control-label {
    color: #263445;
    font-weight: 600;
}

/* Main area should push footer down */
body > div:has(#main) {
    flex: 1 0 auto;
}

#main .container {
    height: auto !important;
}

.page-main {
    flex: 1 0 auto;
}

/* Footer */
footer {
    flex-shrink: 0;
    background: #333333 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 34px 30px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

footer p {
    color: #ffffff !important;
    margin: 0 !important;
}

/* Mobile header */
@media (max-width: 767.98px) {
    .headerimg_wrap,
    .headertext_wrap {
        float: none;
        text-align: center;
    }

    .headertext_wrap {
        padding-top: 10px;
    }

    .side_header_side {
        justify-content: center !important;
        padding-top: 10px !important;
    }

    .side_header_side > li > a {
        padding: 15px 12px;
    }
}