:root {
    --primary: #2980b9;
    --primary-light: #ebf5fb;
    --primary-dark: #1a5a8a;
    --accent: #c8c332;
    --bg: #f8f9fb;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #5a6370;
    --text-body: #4a5568;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global ── */
body {
    background-color: var(--bg) !important;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    margin: 0;
}

hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0 1.5rem;
}

/* ── Navbar ── */
.navbar-logo {
    height: 44px !important;
    width: auto !important;
    max-height: 44px !important;
    border-radius: 8px;
}

nav.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    background: var(--surface) !important;
    z-index: 1030;
}

nav.navbar .navbar-brand {
    padding: 0;
    margin-right: 1rem;
    transition: opacity var(--transition);
}

nav.navbar .navbar-brand:hover {
    opacity: 0.8;
}

nav.navbar .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text) !important;
    padding: 0.5rem 0.7rem;
}

nav.navbar .nav-link:hover {
    color: var(--primary) !important;
}

nav.navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

nav.navbar .dropdown-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.5rem 1rem;
    background: transparent;
    height: auto;
}

nav.navbar .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ── Page Header Banner ── */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 5rem 0 3rem;
    margin-top: 56px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.page-header .page-header-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header { padding: 4rem 0 2rem; }
    .page-header h1 { font-size: 1.6rem; }
}

/* ── Content Sections ── */
.content-section {
    background: var(--surface);
    padding: 3.5rem 0;
}

.content-section.alt {
    background: #f1f5f9;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title h1,
.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    position: relative;
    padding-bottom: 0.6rem;
    letter-spacing: 0;
}

.section-title h1::after,
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ── Typography ── */
.about-text,
.body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.85;
    font-weight: 400;
    text-align: justify;
}

.about-text strong,
.body-text strong {
    color: var(--text);
}

.sub-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ── Accordion ── */
.accordion-item {
    font-family: 'DM Sans', sans-serif !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.15);
    border-color: var(--primary);
}

.accordion-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.75;
}

/* ── Nav Tabs ── */
.nav-tabs {
    border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.2rem;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
    border-bottom-color: rgba(41, 128, 185, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--primary);
}

/* ── List Group ── */
.list-group-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.7rem 1rem;
    transition: all var(--transition);
    background: var(--surface);
}

.list-group-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.list-group-item i.fa {
    color: var(--primary);
    margin-right: 0.5rem;
}

a.list-group-item {
    text-decoration: none;
    color: var(--text);
}

a.list-group-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Quick Link Cards ── */
.quick-link-card {
    display: block;
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    text-decoration: none;
}

.quick-link-card:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
    text-decoration: none;
}

.quick-link-card i {
    margin-right: 0.6rem;
    color: var(--primary);
    width: 18px;
    text-align: center;
}

/* ── Buttons ── */
.btn-primary-iscp {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary-iscp:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn-primary-iscp a {
    color: #fff;
    text-decoration: none;
}

.btn-info {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    width: auto;
    transition: all var(--transition);
}

.btn-info:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-info a {
    color: #fff !important;
    text-decoration: none;
}

/* ── Cards ── */
.card.hovercard {
    background: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding-top: 0;
    transition: all 0.35s ease;
}

.card.hovercard:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card.hovercard .cardheader {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    height: 120px;
}

.card.hovercard .avatar {
    position: relative;
    top: -75px;
    margin-bottom: -75px;
}

.card.hovercard .avatar img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 5px solid var(--surface);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card.hovercard:hover .avatar img {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}

.card.hovercard .info {
    padding: 0.5rem 1.2rem 1rem;
}

.card.hovercard .info .title {
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.card.hovercard .info .title a {
    color: var(--text) !important;
    text-decoration: none;
}

.card.hovercard .info .desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-muted) !important;
    font-family: 'DM Sans', sans-serif;
}

.card.hovercard .info .desc a {
    color: var(--primary);
    text-decoration: none;
}

.card.hovercard .info .desc b {
    color: var(--text-body);
    font-weight: 500;
    font-style: italic;
}

.card.hovercard .bottom {
    padding: 0 20px;
    margin-bottom: 1.2rem;
}

.card.hovercard .bottom .btn-danger {
    background-color: #0077b5 !important;
    border-color: #0077b5 !important;
    color: #fff !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card.hovercard .bottom .btn-danger:hover {
    background-color: #005f8d !important;
    border-color: #005f8d !important;
    transform: scale(1.1);
}

/* Legacy card override for hall_of_fame / extra_curr */
.legacy-card {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
}

.legacy-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.legacy-card .header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 70px;
    border-bottom: 1px solid var(--border);
    z-index: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.legacy-card .avatar {
    position: relative;
    margin-top: 15px;
    z-index: 9;
}

.legacy-card .avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.legacy-card .content {
    text-align: center;
    background: var(--surface);
    padding: 0.5rem 0.8rem 1rem;
}

.legacy-card .content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.legacy-card .content p a {
    color: var(--primary);
    text-decoration: none;
}

.legacy-card .content p a:hover {
    text-decoration: underline;
}

/* ── Table ── */
.table {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
}

.table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
}

.table tbody td {
    color: var(--text-body);
    padding: 0.7rem 1rem;
    border-color: var(--border);
}

.table tbody tr:hover {
    background: var(--primary-light);
}

/* ── Image Styling ── */
.img-styled {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    transition: transform 0.5s ease;
}

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

/* ── Quote Card ── */
.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    font-family: 'DM Sans', sans-serif;
    transition: all var(--transition);
}

.quote-card:hover {
    box-shadow: var(--shadow-md);
}

.quote-card p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    text-align: left;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
}

.quote-card strong {
    color: var(--primary);
    font-weight: 600;
}

/* ── Section Nav Pills ── */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.section-nav a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
}

.section-nav a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

/* ── Footer ── */
footer {
    background: #111827;
    min-height: 300px;
    font-family: 'DM Sans', sans-serif;
    padding: 3rem 0 1.5rem;
}

.footerleft {
    margin-top: 2rem;
    padding: 0 2rem;
}

.logofooter {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.footerleft p {
    color: #9ca3af;
    font-size: 0.85rem !important;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 0.8rem;
    letter-spacing: 0;
    line-height: 1.6;
    text-align: left;
    font-weight: 400 !important;
}

.footerleft p i {
    width: 20px;
    color: #6b7280;
}

.paddingtop-bottom {
    margin-top: 2rem;
}

.heading7 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 1.2rem;
    font-family: 'DM Sans', sans-serif;
}

.footer-ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.footer-ul li {
    line-height: 2.2;
    font-size: 0.85rem;
}

.footer-ul li a {
    color: #9ca3af;
    transition: color var(--transition);
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
}

.footer-ul li a:hover {
    color: var(--primary);
}

.copyright {
    min-height: 40px;
    background: #0a0f1a;
}

.copyright p {
    text-align: left;
    color: #6b7280;
    padding: 10px 0;
    margin-bottom: 0;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    font-family: 'DM Sans', sans-serif;
}

.copyright a {
    color: #9ca3af;
}

.bottom_ul {
    list-style-type: none;
    float: right;
    margin-bottom: 0;
}

.bottom_ul li {
    float: left;
    line-height: 40px;
}

.bottom_ul li:after {
    content: "/";
    color: #4b5563;
    margin: 0 8px;
}

.bottom_ul li a {
    color: #9ca3af;
    font-size: 0.8rem;
    text-decoration: none;
}

/* ── Misc ── */
.fb-comments {
    margin-top: 2rem;
}

div.subhead3,
div.subhead,
div.subhead1,
div.subhead2 {
    position: relative;
    display: inline-block;
}

div.subhead3:after,
div.subhead:after,
div.subhead1:after,
div.subhead2:after {
    display: none;
}
