/*!
 * Start Bootstrap - Agency Bootstrap Theme (Modernized for Bootstrap 5)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

:root {
    --bs-primary: #fed136;
    --bs-primary-hover: #fec503;
    --bs-dark: #222222;
    --bs-light-gray: #f7f7f7;
    --bs-text-muted: #777777;
    --bs-font-serif: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-font-sans: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    overflow-x: hidden;
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    touch-action: manipulation;
}

/* Video & Media Responsiveness */
video {
    width: 100% !important;
    height: auto !important;
}

.videoWrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Typography Helpers */
.text-muted {
    color: var(--bs-text-muted) !important;
}

.text-bright {
    color: #F7F7F7 !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

p {
    font-size: 14px;
    line-height: 1.75;
}

p.large {
    font-size: 16px;
}

a,
a:hover,
a:focus,
a:active,
a.active {
    outline: 0;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover,
a:focus,
a:active,
a.active {
    color: var(--bs-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    font-family: var(--bs-font-sans);
    font-weight: 700;
}

.img-centered {
    margin: 0 auto;
}

.img-professor {
    margin-bottom: 30px;
    float: left;
    max-width: 20vw;
}

.bg-light-gray {
    background-color: var(--bs-light-gray);
}

.bg-darkest-gray {
    background-color: var(--bs-dark);
}

/* Buttons */
.btn-primary {
    border-color: var(--bs-primary);
    text-transform: uppercase;
    font-family: var(--bs-font-sans);
    font-weight: 700;
    color: #fff;
    background-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    border-color: #f6bf01;
    color: #fff;
    background-color: var(--bs-primary-hover);
}

.btn-primary:disabled,
.btn-primary.disabled {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
}

.btn-primary .badge {
    color: var(--bs-primary);
    background-color: #fff;
}

.btn-xl {
    padding: 20px 40px;
    border-color: var(--bs-primary);
    border-radius: 3px;
    text-transform: uppercase;
    font-family: var(--bs-font-sans);
    font-weight: 700;
    color: #fff;
    background-color: var(--bs-primary);
}

.btn-init {
    padding: 20px 40px;
    border-color: var(--bs-dark);
    border-radius: 3px;
    color: #fff;
    background-color: var(--bs-dark);
}

.btn-xl:hover,
.btn-xl:focus,
.btn-xl:active,
.btn-xl.active,
.show > .btn-xl.dropdown-toggle,
.btn-init:hover,
.btn-init:focus,
.btn-init:active,
.btn-init.active {
    border-color: #f6bf01;
    color: #fff;
    background-color: var(--bs-primary-hover);
}

.btn-xl:disabled,
.btn-xl.disabled {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
}

.btn-xl .badge {
    color: var(--bs-primary);
    background-color: #fff;
}

/* Navigation (Bootstrap 5 Compatible) */
.navbar-custom {
    border-color: transparent;
    background-color: var(--bs-dark);
}

.navbar-custom .navbar-brand {
    font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
    color: var(--bs-primary);
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-brand:active,
.navbar-custom .navbar-brand.active {
    color: var(--bs-primary-hover);
}

.navbar-custom .navbar-collapse {
    border-color: rgba(255, 255, 255, 0.02);
}

.navbar-custom .navbar-toggler {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
    color: #fff;
}

.navbar-custom .nav-link {
    text-transform: uppercase;
    font-family: var(--bs-font-sans);
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 3px;
    color: #fff;
    background-color: var(--bs-dark);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    outline: 0;
    color: var(--bs-primary);
    background-color: var(--bs-dark);
}

.navbar-custom .nav-link.active {
    border-radius: 0;
    color: #fff;
    background-color: var(--bs-primary);
}

.navbar-custom .nav-link.active:hover,
.navbar-custom .nav-link.active:focus {
    color: #fff;
    background-color: var(--bs-primary-hover);
}

@media (min-width: 768px) {
    .navbar-custom {
        padding: 25px 0;
        border: 0;
        background-color: transparent;
        transition: padding 0.3s;
    }

    .navbar-custom .navbar-brand {
        font-size: 2em;
        transition: all 0.3s;
    }

    .navbar-custom .nav-link.active {
        border-radius: 3px;
    }

    .navbar-custom.navbar-shrink {
        padding: 10px 0;
        background-color: var(--bs-dark);
    }

    .navbar-custom.navbar-shrink .navbar-brand {
        font-size: 1.5em;
    }
}

/* Header / Hero */
header {
    text-align: center;
    color: #fff;
    background-attachment: scroll;
    background-image: url(../img/heatlab-bg.jpg);
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    header {
        background-image: url(../img/heatlab-bg.jpg);
    }
}

header .intro-text {
    padding-top: 100px;
    padding-bottom: 50px;
}

header .intro-text .intro-lead-in,
header .intro-text .intro-lead-out,
header .intro-text .intro-heading {
    margin-bottom: 4px;
    font-family: 'Muli', sans-serif;
    text-shadow: #111111 0px 1px 1px;
}

header .intro-text .intro-lead-in {
    font-size: 24px;
    line-height: 24px;
}

header .intro-text .intro-lead-out {
    font-size: 14px;
    line-height: 14px;
}

header .intro-text .intro-heading {
    text-transform: none;
    font-size: 80px;
    line-height: 108px;
}

@media (max-width: 320px) {
    header .intro-text {
        padding-top: 50px;
        padding-bottom: 25px;
    }
    
    header .intro-text .intro-lead-in {
        font-size: 12px;
        line-height: 12px;
    }
    
    header .intro-text .intro-lead-out {
        font-size: 8px;
        line-height: 8px;
    }
    
    header .intro-text .intro-heading {
        font-size: 36px;
        line-height: 48px;
    }
}

@media (min-width: 768px) {
    header .intro-text {
        padding-top: 200px;
        padding-bottom: 100px;
    }

    header .intro-text .intro-lead-in {
        font-size: 40px;
        line-height: 40px;
    }
    
    header .intro-text .intro-lead-out {
        font-size: 16px;
        line-height: 24px;
    }

    header .intro-text .intro-heading {
        font-size: 80px;
        line-height: 180px;
    }
}

@media (min-width: 992px) {
    header .intro-text {
        padding-top: 300px;
        padding-bottom: 150px;
    }
    
    header .intro-text .intro-lead-out {
        font-size: 24px;
    }
    
    header .intro-text .intro-heading {
        font-size: 120px;
    }
}

/* Sections */
section {
    padding: 100px 0;
}

section h2.section-heading,
section h2.section-heading-withsep {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 40px;
}

section h3.section-subheading {
    margin-bottom: 40px;
    text-transform: none;
    font-family: var(--bs-font-serif);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
}

@media (min-width: 768px) {
    section {
        padding: 150px 0;
    }
}

.service-heading {
    margin: 15px 0;
    text-transform: none;
}

.fb-page {
    margin-bottom: 15px;
}

/* Portfolio & Publications */
#publications .portfolio-item {
    right: 0;
    margin: 0 0 15px;
    overflow: hidden; 
    min-height: 400px;
    max-height: 400px;
    padding-bottom: 20px;
}

#publications .portfolio-item .portfolio-link {
    display: block;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

#publications .portfolio-item .portfolio-link .portfolio-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: rgba(254, 209, 54, 0.9);
    transition: all ease 0.5s;
}

#publications .portfolio-item .portfolio-link .portfolio-hover:hover {
    opacity: 1;
}

#publications .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 20px;
    margin-top: -12px;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

#publications .portfolio-item .portfolio-caption {
    margin: 0 auto;
    padding: 25px;
    max-width: 400px;
    min-height: 180px;
    max-height: 180px;
    text-align: center;
    background-color: #fff;
}

#publications .portfolio-item .portfolio-caption h4 {
    margin: 0;
    font-size: 16px;
    text-transform: none;
}

#publications .portfolio-item .portfolio-caption p {
    margin: 0;
    font-family: var(--bs-font-serif);
    font-size: 14px;
    font-style: italic;
}

#publications * {
    z-index: 2;
}

@media (min-width: 767px) {
    #publications .portfolio-item {
        margin: 0 0 30px;
    }
}

/* Teaching */
#teaching .course-item {
    right: 0;
    margin: 0 0 15px;
}

#teaching .course-item .course-caption h4 {
    margin: 0;
    font-size: 16px;
    text-transform: none;
    text-align: center;
}

#teaching .course-item .course-caption p {
    margin: 0;
    font-family: var(--bs-font-serif);
    font-size: 14px;
    text-align: justify;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    margin-left: -1.5px;
    background-color: #f1f1f1;
}

.timeline > li {
    position: relative;
    margin-bottom: 50px;
    min-height: 50px;
}

.timeline > li::before,
.timeline > li::after {
    content: " ";
    display: table;
}

.timeline > li::after {
    clear: both;
}

.timeline > li .timeline-panel {
    float: right;
    position: relative;
    width: 100%;
    padding: 0 20px 0 100px;
    text-align: left;
}

.timeline > li .timeline-image {
    z-index: 100;
    position: absolute;
    left: 0;
    width: 80px;
    height: 80px;
    margin-left: 0;
    border: 7px solid #f1f1f1;
    border-radius: 100%;
    text-align: center;
    color: #fff;
    background-color: var(--bs-primary);
}

.timeline > li .timeline-image h4 {
    margin-top: 12px;
    font-size: 10px;
    line-height: 14px;
}

.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 20px 0 100px;
    text-align: left;
}

.timeline > li:last-child {
    margin-bottom: 0;
}

.timeline .timeline-heading h4 {
    margin-top: 0;
    color: inherit;
}

.timeline .timeline-heading h4.subheading {
    text-transform: none;
}

.timeline .timeline-body > p,
.timeline .timeline-body > ul {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
    }

    .timeline > li {
        margin-bottom: 100px;
        min-height: 100px;
    }

    .timeline > li .timeline-panel {
        float: left;
        width: 41%;
        padding: 0 20px 20px 30px;
        text-align: right;
    }

    .timeline > li .timeline-image {
        left: 50%;
        width: 100px;
        height: 100px;
        margin-left: -50px;
    }

    .timeline > li .timeline-image h4 {
        margin-top: 16px;
        font-size: 13px;
        line-height: 18px;
    }

    .timeline > li.timeline-inverted > .timeline-panel,
    .timeline > li .timeline-panel-photo {
        float: right;
        width: 41%;
        padding: 0 30px 20px 20px;
        text-align: left;
    }

    .timeline > li.timeline-inverted > .timeline-panel-photo {
        float: left;
        padding: 0 20px 20px 30px;
        text-align: right;
    }
}

@media (min-width: 992px) {
    .timeline > li {
        min-height: 150px;
    }

    .timeline > li .timeline-panel,
    .timeline > li.timeline-inverted > .timeline-panel {
        padding: 0 20px 20px;
    }

    .timeline > li .timeline-image {
        width: 150px;
        height: 150px;
        margin-left: -75px;
    }

    .timeline > li .timeline-image h4 {
        margin-top: 30px;
        font-size: 18px;
        line-height: 26px;
    }
}

@media (min-width: 1200px) {
    .timeline > li {
        min-height: 170px;
    }

    .timeline > li .timeline-panel {
        padding: 0 20px 20px 100px;
    }

    .timeline > li .timeline-image {
        width: 170px;
        height: 170px;
        margin-left: -85px;
    }

    .timeline > li .timeline-image h4 {
        margin-top: 40px;
    }

    .timeline > li.timeline-inverted > .timeline-panel {
        padding: 0 100px 20px 20px;
    }
}

/* Team Section */
.team-member {
    padding: 35px;
    margin-bottom: 35px;
    text-align: center;
    max-height: 320px;
}

.img-header {
    margin: 0 auto;
    position: absolute;
    left: 15px;
    top: 15px;
    border-radius: 6px;
    max-width: 45%;
    max-height: 125%;
}

.img-header-modal {
    margin: 0 auto;
    position: absolute;
    left: 75px;
    top: 25px;
    max-width: 45%;
    height: 75px;
    max-height: 20vh;
}

@media (max-width: 320px) {
    .img-header-modal {
        left: 25px;
        top: 5px;
    }
}

@media (min-width: 768px) {
    .img-header {
        max-width: 25%;
    }
}

@media (min-width: 992px) {
    .img-header {
        max-width: 35%;
    }
}

.img-intro {
    margin: 0 auto;
    border-radius: 6px;
    max-width: 75%;
}

.team-member img {
    margin: 0 auto;
    border: 7px solid #fff;
    max-width: 240px;
    max-height: 240px;
}

.team-member h4 {
    margin-top: 25px;
    margin-bottom: 0;
    text-transform: none;
}

.team-member p {
    margin-top: 0;
}

aside.clients img {
    margin: 50px auto;
}

/* Get Involved Section */
section#get-involved {
    background-color: var(--bs-dark);
    background-image: url(../img/map-image.png);
    background-position: center;
    background-repeat: no-repeat;
}

section#contact .section-heading {
    color: #fff;
}

section#contact .form-group {
    margin-bottom: 25px;
}

section#contact .form-group input,
section#contact .form-group textarea {
    padding: 20px;
}

section#contact .form-group input.form-control {
    height: auto;
}

section#contact .form-group textarea.form-control {
    height: 148px;
}

section#contact .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: none;
}

section#contact .form-control::placeholder {
    text-transform: uppercase;
    font-family: var(--bs-font-sans);
    font-weight: 700;
    color: #bbb;
}

section#contact .text-danger {
    color: #e74c3c;
}

/* Footer */
footer {
    padding: 25px 0;
    text-align: center;
}

footer span.copyright,
footer ul.quicklinks {
    text-transform: none;
    font-family: var(--bs-font-sans);
    line-height: 40px;
    margin-bottom: 0;
}

ul.social-buttons {
    margin-bottom: 0;
}

ul.social-buttons li a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    font-size: 20px;
    line-height: 40px;
    outline: 0;
    color: #fff;
    background-color: var(--bs-dark);
    transition: all 0.3s;
}

ul.social-buttons li a:hover,
ul.social-buttons li a:focus,
ul.social-buttons li a:active {
    background-color: var(--bs-primary);
}

.btn:focus,
.btn:active,
.btn.active {
    outline: 0;
}

/* Portfolio Modal & PDF Embedding */
.portfolio-modal .modal-content {
    padding: 100px 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    text-align: left;
    background-clip: border-box;
    box-shadow: none;
}

.portfolio-modal .modal-content .modal-body {
    min-height: 100%;
    border: 0;
    border-radius: 0;
    opacity: 1;
    text-align: left;
    background-clip: border-box;
    box-shadow: none;
}

.pdf-object {
    width: 100%;
    height: 80vh;
    opacity: 1;
    min-height: 80vh;
}

.portfolio-modal .modal-content .modal-body .modal-iframe-container {
    min-height: 100%;
    min-width: 100%;
    opacity: 1;
}

.portfolio-modal .modal-content h2 {
    margin-bottom: 15px;
    font-size: 3em;
}

.portfolio-modal .modal-content p {
    margin-bottom: 30px;
}

.portfolio-modal .modal-content p.item-intro {
    margin: 20px 0 30px;
    font-family: var(--bs-font-serif);
    font-size: 16px;
    font-style: italic;
}

.portfolio-modal .modal-content img {
    margin-bottom: 30px;
    float: right;
    max-width: 30vw;
    opacity: 1;
}

.portfolio-modal .close-modal {
    position: absolute;
    font-family: 'Muli', sans-serif;
    font-size: 60px;
    top: 25px;
    right: 25px;
    width: 75px;
    height: 75px;
    background-color: transparent;
    cursor: pointer;
}

@media (max-width: 320px) {
    .portfolio-modal .close-modal {
        font-size: 24px;
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
    }
}

.portfolio-modal .close-modal:hover {
    opacity: 0.3;
}

.portfolio-modal .close-modal .lr {
    z-index: 1051;
    width: 1px;
    height: 75px;
    margin-left: 35px;
    background-color: var(--bs-dark);
    transform: rotate(45deg);
}

.portfolio-modal .close-modal .lr .rl {
    z-index: 1052;
    width: 1px;
    height: 75px;
    background-color: var(--bs-dark);
    transform: rotate(90deg);
}

.portfolio-modal .modal-backdrop {
    display: none;
    opacity: 0;
}

/* Universal Selection Styles */
::selection {
    text-shadow: none;
    background: var(--bs-primary);
}

img::selection {
    background: transparent;
}

/* ==========================================================================
   7. Aspect Ratio Grid Helpers
   ========================================================================== */

/* 4:3 Ratio Lock */
.ratio.ratio-4x3,
.portfolio-grid .ratio.ratio-4x3,
.team-grid .ratio.ratio-4x3,
#portfolio .ratio.ratio-4x3,
#team .ratio.ratio-4x3 {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    padding-bottom: 75% !important;
    height: 0 !important;
    overflow: hidden !important;
    display: block !important;
}

.ratio img,
.ratio.ratio-4x3 img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    float: none !important;
    max-width: none !important;
    max-height: none !important;
}
