/* This CSS script comprises of custom code and features made available by Bootstrap */

@import url('https://fonts.googleapis.com/css2?family=Average&family=Bentham&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

/* 0. MEDIA QUERIES */
@media (max-width:1920px) {
    .hero-text {
        font-size: 5vw;
    }
}

@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        max-width: 480px;
        margin: auto;
    }
    
    .video-wrapper {
        padding-bottom: 56.25%;
    }
}

/* 1. TEXT */
body {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    color: #3c3c3c
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10vw; 
    color: rgb(0, 0, 0);
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #6d6f70;
}

/* section-title2 is dedicated to longer section titles that require different */
/* sizing to have a pleasant visual representation on the page */
.section-title2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 7.5vw; 
    color: rgb(0, 0, 0);
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #6d6f70;
}

/* section-lower-title is like the subheadings of each section */
.section-lower-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    font-size: calc(1.525rem + 2vw);
    color: #acacac;
    margin-bottom: 20px;
}
  
  /* @media (min-width: 1200px) {
    .section-lower-title {
      font-size: 2.5rem;
    }
  } */

/* Only used for the big subchapters in the Study Domain and include a little */
/* underscore bar */
.h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 7vw; 
    color: #7b1010;
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

/* The underscore bar for the .h2 titles */
.h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #6d6f70;
}

.h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem; 
    color: #7b1010;
    position: relative;
    margin-top: 10px;
}

.h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.3rem; 
    color: #020202;
    position: relative;
    margin-bottom: 5px;
    margin-top: 5px;
}

.blockquote {
    padding: 40px 20px;
    margin-top: 20px;
    font-size: 2rem;
    color:#040404;
}

.blockquote-footer {
    font-family: "Average Sans", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 1.2rem;
    color: #6d6f70;
    margin-top: 0px;
    background-color: #f8f9fa;
}

/* 2. FUNCTIONALITIES */
html {
    scroll-behavior: smooth;
}

.external-link {
    display: inline-block;
    margin-top: 10px;
    color: #7b1010;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.external-link::before {
    font-size: 1rem;
}

.external-link:hover {
    color: #b3b3b3;
}

/* 3. THUMBNAIL */
.hero-section {
    position: relative;
    height: 110vh;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(84, 83, 83, 0.2), rgba(0,0,0,0.6)); */
}

.hero-text {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(9rem, 11vw, 9rem);
    color: rgb(247, 247, 247);
    text-align: right;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 0.8;
    
    position: absolute;
    top: 58%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 40px;
    box-sizing: border-box;
}

/* 4. NAVIGATION BAR */
.navbar {
    background-color: #ffffffd2 !important;
}

.navbar-brand {
    font-weight: 600;
    font-family: "Cormorant Garamond", serif;
    font-style: normal; 
    color: #7b1010 !important;
}

.nav-link {
    color: rgba(0, 0, 0, 0.85) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #7b1010 !important;
}

.active {
    color: #7b1010 !important;
    border-bottom: 2px solid #7b1010;
}

/* 5. ARCHIVE/ITEM CARDS */
.archive-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.archive-card:hover {
    transform: translateY(-5px);
}

.archive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.archive-card:hover .card-overlay {
    background: rgba(255, 255, 255, 0.826);
    opacity: 1;
}

.card-title {
    color: #7b1010;
    font-weight: 600;
    font-size: 2rem;
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    padding: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.archive-card:hover .card-title {
    transform: translateY(0);
    opacity: 1;
}

/* 6. MODAL/ITEM CARDS */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background-color: #7b1010;
    color: white;
    border-bottom: none;
}

.modal-body img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.8rem;
    color: #ffffff;
}

.modal-subtitle {
    font-family: "Average Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    color: #acacac;
    margin-top: 20px;
}

/* 7. BOXES */
#domain-study {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

#know-org {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

#metadata {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 10px;
}

#metadata-analysis {
    padding: 40px 0;
    margin-top: 10px;
}

#theoretical-model {
    padding: 40px 0;
    margin-top: 10px;
}

#conceptual-model {
    padding: 40px 0;
    margin-top: 10px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer {
    background-color: rgba(155, 155, 155, 0.7);
    color: white;
    padding: 30px 0;
}

pre code {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    display: block;
    padding: 5px;
    font-family: monospace; 
    white-space: pre-wrap;
}

/* 8. TABLE */
table, th, td {
  border-collapse:collapse;
  height: 40px;
  padding: 5px;
}
th {
  background-color: #96D4D4;
}
td {
    border-bottom: 1px solid #ddd;
}

.responsive {
    width: 100%;
    height: auto;

}

/* 9. ZOOMABLE IMAGES AND ENLARGED VIEW */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
    max-width: 100%;
    height: auto;
}

.zoomable-image:hover {
    transform: scale(1.05);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.modal-content-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ccc;
}

.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.zoom-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.zoom-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.zoom-hint {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

/* 10. VIDEO EMBED */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    margin-bottom: 1rem;
}
  
.video-wrapper iframe,
.video-wrapper #player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* END OF CSS FILE */