﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Candara;
    background-color: #f0f0f0;
    background-image: url('/img/beige-paper.png');
    background-repeat: repeat;
    background-size: auto;
}

.bg-image {
    position: relative;
    max-width: 100%;
    height: auto;
    background-size: 100% auto;
    text-align: center;
}

.brownbold {
    color: brown;
    font-weight: 700;
}

.orangebold {
    color: orange;
    font-weight: 700;
}

.cyanbold {
    color: #40C4FF;
    font-weight: 700;
}

.purplebold {
    color: #D0B8FB;
    font-weight: 700;
}

.greenbold {
    color: #69F0AE;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-image {
    max-width:120px;
    max-height: 144px;
    height: auto;
    width: auto;
    padding: 3px 0px 0px 10px
}

.crop-text-2 {
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

a.bg-dark {
    color: #40C4FF;
}

.navbar.bg-dark .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.25rem;
}

.navbar.bg-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.5rem;
    height: 1.5rem;
}

.img-hover-select {
    transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
    cursor: pointer;
}

.img-hover-select:hover {
    transform: scale(1.03);
    z-index: 2;
}

.img-hover-text {
    display: none;
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    background: rgba(64,196,255,0.95);
    color: #02113c;
    padding: 0.3rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    font-weight: 700;
}

.img-hover-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.img-hover-container:hover .img-hover-text {
    display: block;
}

@media (max-width: 767.98px) {
    .img-hover-text {
        display: none !important;
    }
}

.link-black {
    color: #2e44ca;
    text-decoration: none;
    font-weight:bold
}

.link-black:visited {
    color: #2e44ca;
    font-weight:bold
}

.link-black:hover,
.link-black:focus {
    color: #2e44ca;
    text-decoration: underline;
    font-weight:bold
}

.custom-g {
    --bs-gutter-x: 2.5rem;
}

@media (max-width: 767.98px) {
    .mobile-big {
        font-size: 1.3rem !important;
        font-weight: bold;
    }
}

.tight-line {
    line-height: 1.1;
}

.CV-title1 {
    background-color: #fbe4d5;
    color: #c45911;
    font-weight: bold;
    font-size: 1.5rem !important;
    padding: 0.5rem 0.3rem 0.3rem 1rem;
}

.CV-title2 {
    background-color: #d1e3c5;
    color: #2a7b88;
    font-size: 1.3rem !important;
    padding: 0.5rem 0.3rem 0.3rem 1rem;
}

.CV-title3 {
    background-color: white;
    color: black;
    font-size: 1.2rem !important;
    padding: 0.5rem 0.3rem 0.1rem 1rem;
    line-height: 1.1;
}

.CV-title4 {
    background-color: white;
    color: black;
    font-size: 1.2rem !important;
    padding: 0.5rem 0.3rem 0.1rem 1rem;
    line-height: 1.5;
}

@media print {
    @page {
        margin: 10mm !important;
    }

    .no-print {
        display: none !important;
    }

    .link-black {
        display: none !important;
    }

    .CV-title1 {
        font-size: 1rem !important;
        padding: 0.1rem 0.3rem 0.1rem 0.3rem !important;
    }

    .CV-title2 {
        font-size: 0.9rem !important;
        padding: 0.3rem 0.3rem 0.1rem 0.3rem !important;
    }

    .CV-title3 {
        font-size: 0.9rem !important;
        padding:  0.6rem 0.3rem 0.1rem 0.3rem !important;
    }

    .CV-title4 {
        font-size: 0.9rem !important;
        padding: 0.6rem 0.3rem 0.1rem 0.3rem !important;
        line-height: 1.3;
    }
}

#tree-nav {
    background: #f8fafc;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(60,60,60,0.06);
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    min-height: 700px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

#tree-nav ul {
    margin-bottom: 0;
}

#tree-nav .tree-toggle {
    color: #09335c;
    font-size: 1rem;
    background: none;
    border: none;
    outline: none;
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
    margin-left: 0.5rem;
    padding-left: 0.2rem;
    transition: color 0.2s;
    text-decoration: none;
}

#tree-nav .tree-toggle:hover {
    color: #0d47a1;
    text-decoration: underline;
    font-weight: bold;
}

#tree-nav .collapse > li {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
}

#tree-nav .tree-link {
    color: #b29a14;
    text-decoration: none;
    display: block;
    padding: 4px 0 4px 0.5rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

    #tree-nav .tree-link:hover, #tree-nav .tree-link.active {
        color: #b29a14;
        font-weight: bold;
        text-decoration: underline;
    }

#tree-nav .tree-link {
    text-decoration: none;
    color: #be7f05;
}

#tree-nav .tree-link.active {
    font-weight: bold;
    color: #be7f05;
}

#tree-nav ul,
#tree-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 991.98px) {
    #tree-nav {
        min-width: 100px;
        padding: 0.5rem 0.2rem;
    }
}

@media (max-width: 767.98px) {
    #tree-nav {
        display: none;
        position: absolute;
        z-index: 1000;
        background: #fff;
        left: 1rem;
        right: 1rem;
        top: 60px;
        box-shadow: 0 2px 8px rgba(60,60,60,0.15);
        border-radius: 0.5rem;
        min-height: 300px;
    }

    #tree-nav.show {
        display: block;
    }

    #tree-nav-toggle {
        width: 90%;
        max-width: 320px;
        margin: 1.2rem auto 1rem auto;
        display: block;
        font-size: 1rem;
        padding: 0.6rem 0;
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(60,60,60,0.08);
    }
}

.desktop-display {
    display: block;
}

.mobile-display {
    display: none;
}

@media (max-width: 767.98px) {
    .desktop-display {
        display: none;
    }

    .mobile-display {
        display: block;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

table, th, td {
    border: 1px solid #bdbdbd;
}

td {
    font-size: 1.1rem;
    padding: 0.2rem 0.3rem 0.2rem 0.5rem;
}

th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 1.2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a237e;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1976d2;
}

h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1987d2;
}

.katex, .katex * {
    font-family: 'Times New Roman', Times, serif !important
}

.san-color {
    color: #70790c !important;
    font-weight: 800;
}

.eng-color {
    color: #FF6F00 !important;
}

.fre-color {
    color: #36B37E !important;
}

.spa-color {
    color: #FF4081 !important;
}

.lat-color {
    color: #7C4DFF !important;
}
