

/*  QUICKNAV   */
.quickNav {
    margin-top: 3rem;
    margin-left: 2rem;
    font-size: 16px;
    letter-spacing: 0.7px;
}

.quickNav .darkButton {
    margin-right: 2rem;
}

/*  BRIEFING */

.briefing {
    margin-top: 8rem;
    padding-left: 2rem;
    display: flex;
    border-top: #C6C6C6 solid 1px;
    border-bottom: #C6C6C6 solid 1px;
    font-size: 19px;
    line-height: 150%;
    position: relative;
}

.briefing .background {
    width: 45%;
    padding-top: 4rem;
    padding-left: 2rem;
    padding-right: 4rem;
    padding-bottom: 10rem;
    border-right: #C6C6C6 solid 1px;
}

.briefing .right {
    width: 55%;
}

.briefing .terms {
    padding: 2rem;
    position: relative;
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.briefing .relevance {
    padding: 2rem;
    border-top: #C6C6C6 solid 1px;
    padding-right: 2rem;
}

 h2 {
    margin-bottom: 2rem;
    font-weight: bold;
    font-size: 28px;
    letter-spacing: 3px;
    position: relative;
    width: fit-content;
}

.briefing .extendedBriefing {
    position: absolute;
    bottom: -1rem;
    right: 43.5%;
    font-size: 16px;
}

.briefing .terms ul {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    font-style: italic;
}

.link2 {
    font-style: italic;
    font-size: 15px;
    margin-right: 2rem;
    color:black;
    position: absolute;
    bottom: 0;
    right: 1rem;
}

.termLink {
    text-align: right;
}

/* DOWNLOADS */ 
.readingTextDownloads {
    padding : 7rem;
    font-size: 19px;
    line-height: 150%;
    border-bottom: #C6C6C6 solid 1px;
}

.readingTextDownloads .downloads {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.downloads .white {
    padding: 1rem;
    border-radius: 0.2rem;
    text-align: center;
    width: 43%;
}

.readingTextDownloads > p {
    width: 85%;
}

.readingTextDownloads h3 {
    font-family: Kleisch;
    font-style: italic;
    font-size: 29px;
    color: #0A1A2F;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.white p {
    margin-bottom: 1rem;
    font-style: italic;
}

/* Prevent body scroll when open */
body.overlay-active {
  overflow: hidden;
}

/* Overlay wrapper */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* Dark background */
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Sliding panel */
.overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  max-width: 720px;
  background: #f3efe9;
  padding: 4rem 3rem;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);

  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
  height: 100vh;          /* full viewport height */
  -webkit-overflow-scrolling: touch; /* smooth mobile scroll */
}

/* Active state */
.overlay.active {
  pointer-events: auto;
}

.overlay.active .overlay-backdrop {
  opacity: 1;
}

.overlay.active .overlay-panel {
  transform: translateX(0);
}

.overlay-content {
    height: 150%;
}

/* Close button */
.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Content styling */
.overlay h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.overlay h4 {
  margin-top: 2rem;
  font-weight: 600;
}

.overlay p {
  line-height: 1.6;
}

.overlay ul {
    margin-top: 1rem;
}

.overlay li {
    margin-left: 0.2rem;
}

main .link{
    position: relative;
    display: inline-block;
    color: black;
    text-decoration: none;
}

/* Animated underline */
main .link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;          /* adjust if needed */
    width: 100%;
    height: 1px;
    background: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

/* Hover animation */
main .link:hover::before{
    transform: scaleX(1);
}

main .other .side:hover .link::before{
    transform: scaleX(1);
}

.link2 {
    font-style: italic;
    font-size: 15px;
    margin-right: 2rem;
    color: black;
    position: absolute;
    bottom: 0;
    right: 1rem;

    display: inline-block;     /* REQUIRED for underline */
    text-decoration: none;
}

/* Animated underline */
.link2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 1px;
    background: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

/* Hover animation */
.link2:hover::before {
    transform: scaleX(1);
}

.downloads .darkButton:hover{
    background-color: white;
}

.wrapper {
    position: relative;
}


.fullscreen-btn {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 2;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background 0.3s ease;
    border-radius: 1rem;
    height: 2rem;
    width: 2rem;
}

.wrapper img {
    cursor: pointer;
}

.wrapper img {
    transition: transform 0.6s ease;
}

.wrapper:hover img {
    transform: scale(1.03);
}

.other .side:hover img{
    transform: scale(1.03);
}

.side {
    cursor: pointer;
}

/* Overlay */
.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Active state */
.image-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay image */
.image-overlay img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
}

/* Top bar */
.overlay-top {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 1rem;
}

/* Buttons */
.overlay-button {
    background: white;
    color: black;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.image-overlay .download::before {
    margin-top: -0.3rem;
}


/* Fullscreen image panel overrides */
.image-overlay .overlay-panel {
    width: 100%;
    max-width: 100%;
    background: rgba(0,0,0,0.95);
}

.image-fullscreen-content {
    position: relative;
    text-align: center;
}

.image-fullscreen-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

/* Download button */
.image-fullscreen-actions {
    text-align: center;
}

/* Make close button white */
.image-overlay .overlay-close {
    color: white;
}

.other {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
}

.other a {
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.other > div {
    display: flex;
    justify-content: space-between;
}

.other img {
    height: 14rem !important;
}

.before > div, .after > div {
    width: fit-content;
}

.other .wrapper {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.8rem;
}

.other p {
    margin-top: 0.5rem;
    font-size: 19px;
    font-weight: bold;
}

.before p {
    max-width: 80%;
}

.after {
    width: min-content;
}









