/* style.css */
body {
    font-family: Arial, sans-serif;
    color: rgb(220, 240, 220);
    margin: 40px;
    line-height: 1.6;
    background-image:
        url("images/topo.jpg");
}

footer {
  text-align: center;
  font-size: 16px;
  font-family: Verdana;
  padding: 10px;
  line-height: 1.5;
  border-top: 1px solid rgb(208, 224, 230);
  margin-top: 40px;
}
.columns {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
}
.left-col, .right-col {
        flex: 1 1 45%;
        min-width: 300px;
}
@media (max-width: 600px) {
    .button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* small space between buttons */
        width: 100%;
    }
    .lightbox-img-large {
        max-width: 95vw;
        max-height: 80vh;
      }
    .btn {
        width: 85%; /* narrower than full width */
        max-width: 260px; /* keeps them tidy on wide phones */
        font-size: 0.9em;
        padding: 0.5em 0.8em;
    }
}
h2 {
    color: rgb(200, 230, 201);
    border-bottom: 1px solid rgb(200, 230, 201);
    padding-bottom: 5px;
}
h1 {
        color: rgb(200, 230, 201);
        font-size: 2em;
        text-align: center;
        margin-bottom: 0;
}
h3 {
        font-family: Arial, sans-serif;
        color: rgb(200, 230, 201);
        margin-bottom: 0;
}
.subtitle {
        text-align: center;
        color: rgb(200, 230, 201);
        font-weight: bold;
        margin-top: 0;
}
.contact {
        color: rgb(200, 230, 201);
        text-align: center;
        margin-top: 5px;
}
.contact a {
        color: rgb(200, 230, 201);
        text-align: center;
        margin-top: 5px;
}
.job {
        margin-bottom: 20px;
}
ul {
        margin-top: 5px;
        text-align: left;
}
.center {
        text-align: center;
}
.left {
        text-align: left;
}
.header-bg {
        position: relative;
        background-image:
            linear-gradient(
            rgba(10, 30, 20, 0.6),
            rgba(43, 135, 91, 0.6)
            );
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: rgb(235, 245, 235); /* off-white, softer than pure white */
        text-align: center;
        padding: 40px 20px;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
        border-bottom: 1px solid rgba(200, 230, 201, 0.4);
}
details>summary {
        list-style: none;
}
summary::-webkit-details-marker {
        display: none
}
summary::after {
        content: ' +';
        color: rgb(200, 230, 201);
}
details[open] summary:after {
        content: " -";
        color: rgb(200, 230, 201);
}
.indent {
        margin-left: 50px;
}
/* ===== IMAGES ===== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}
img.large {
    display: block;
    max-width: 75vw;
    height: auto;
}

/* Styled images */
.img-center {
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Large images (general use) */
.img-large {
    max-width: 50%;
    max-height: auto;
}
@media (max-width: 600px) {
        img.center {
            margin: 10px auto;
            border-radius: 8px;
        }
}
.bottom_buttons {
        text-align: center;
        margin: 30px 0;
}
.btn {
        display: inline-block;
        font-family: Arial, sans-serif;
        font-size: 1em;
        padding: 0.6em 1.2em;
        margin: 0.5em; /* space between buttons */
        text-decoration: none;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
}

.btn-academic {
        background-color: rgba(25, 71, 48, 0.6); /* deep green, slightly translucent */
        color: rgb(200, 230, 201);
        border: 2px solid rgba(200, 230, 201, 0.8);
}
.btn-academic:hover {
        background-color: rgba(45, 115, 45, 0.9);
        border-color: rgb(200, 230, 201);
        transform: scale(1.02);
}
    /* Mobile responsiveness */
@media (max-width: 600px) {
        .button-group {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            margin-bottom: 8px;
        }
        .btn {
            width: 100%;
            text-align: center;
        }
}
.middle-box {
        align-self: center;
        align-items: center;
        max-width: 700px;          /* limits width in wide screens */
        margin: 40px auto;         /* center horizontally, with space above/below */
        padding: 20px 40px;         /* inside spacing */
        background-color: rgb(202, 224, 208); /* off-white with slight transparency */
        border: 1px solid rgb(202, 224, 208); /* soft border matching your green accent */
        border-radius: 8px;         /* rounded corners */
        text-shadow: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* subtle shadow */
        color: rgba(5, 16, 11, 0.8);     /* dark green text inside */
        line-height: 1.75;

}

.middle-box h2 {
        margin-top: 0;
        color: rgb(34, 102, 34);
}

.middle-box p {
        margin-bottom: 1.2em;
}

.middle-box .btn-outline {
        display: inline-block;
        background-color: transparent;
        color: rgb(34, 102, 34);
        border: 2px solid rgb(34, 102, 34);
        border-radius: 5px;
        padding: 0.6em 1.2em;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s ease, color 0.3s ease;
}

.middle-box .btn-outline:hover {
        background-color: rgb(34, 102, 34);
        color: rgb(235, 245, 235);
}

.collage {
        column-count: 3;
        column-gap: 10px;
        max-width: 1000px;
        row-gap: 0px;
        margin: 0;
        padding: 0;
        align-items: center;
        alignment-baseline: center;
        align-content: center;
        }

.collage img {
        width: 100%;
        border-radius: 0px;
        margin-bottom: 0px;
        display: block;
        transition: transform 0.3s;
}

.circle-collage {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 20px;
}
.circle-collage img {
        width: 100%;
        max-width: 220px; /* keeps them in a similar range */
        height: 180px;    /* standardizes overall visual size */
        object-fit: cover; /* crops to fill the box */
        border-radius: 10px;
}
.circle-collage img:hover {
        transform: scale(1.05);
}

.tooltip-container {
        position: relative; 
        display: inline-block;
        border-bottom: 1px dotted black;
}
.tooltip-text {
    visibility: hidden;
    width: 240px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 55%; /* Position above the container */
    left: 105%;
    margin-left: -60px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.thumbnail {
  width: 200px;
  cursor: pointer;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.lightbox:target {
    display: flex;
}

.lightbox-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  flex: none;
}

.lightbox a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
}

.lightbox .tooltip-container {
    max-width: 65vw;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.lightbox.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the container */
    left: 50%;
    margin-left: -60px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox img.large {
    max-width: 65vw !important;
    max-height: 70vh !important;
    width: auto;
    height: auto;
    object-fit: contain;
}