/* cmsms stylesheet: Bernd Bornhauser CSS modified: Sunday, November 30, 2025 8:51:39 PM */
/* =======================================
   Global
======================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
background-color: #f7f9fc;
   
color: #002d56;
    line-height: 1.5;
    font-size: 1.0em;
}

/* =======================================
   Navbar
======================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: #ffffff;
    color: #003366;
    opacity: 0.95;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    text-transform: uppercase;
    flex-wrap: nowrap;
}

.logo {
    position: relative;
    top: 5px;
    left: 10px;
}

.logo-img {
    max-height: 40px;
    flex-shrink: 0;
}

/* Light/dark logo swap */
.logo-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .logo-light {
        display: none;
    }

    .logo-dark {
        display: inline;
    }
}

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    z-index: 1100;
    position: relative;
    top: -4px;
    left: -3px;
}

.nav-list {
    padding: 0;
    display: flex;
    list-style: none;
    gap: 1.2rem;
    white-space: nowrap;
    position: relative;
    top: 5px;
right: 10px;
}

.nav-list li {
    padding-top: 10px;
}

.nav-list li a {
    color: #002d56;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 300;
    font-size: 1.2em;
letter-spacing: 1px;
}

.nav-list li a:hover {
    color: #0077cc;
}

/* =======================================
   Hero
======================================= */
.hero {
    position: relative;
}

.hero-container {
  background-image: url("/uploads/images/hero_image1.avif");
background-size: cover;
  background-position: center; /* Center the image */
width: 100%;
  height: 100vw;
    max-height: 800px;
    object-fit: cover;
}

@media (prefers-color-scheme: dark) {
  .hero-container {
    background-image: url("/uploads/images/hero_image_dark1.avif");
  }
}

.hero-text {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    width: 60%;
    max-height: 250px;
    text-align: right;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.portrait {
    border-radius: 90px;
    width: 30%;
    max-width: 180px;
    min-width: 120px;
    height: auto;
    float: left;
}

.name-portrait {
    position: relative;
    padding-bottom: 10px;
}

.name-box {
    float: left;
    position: relative;
    left: 40px;
    top: 10%;
}

#location {
    position: relative;
    top: -10px;
}

#location img {
    float: left;
}

#location p {
    display: inline;
    position: relative;
    left: 10px;
    font-size: 0.9em;
}

.location,
.location-dark {
    width: 22px;
    height: 22px;
}

.location-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .location {
        display: none;
    }

    .location-dark {
        display: inline;
    }
}

.hero-text .quote {
    font-size: 3vw;
}

.hero-text .author {
    font-size: 1.8vw;
    margin-top: 2px;
    font-style: italic;
}




/* =======================================
   Content Sections
======================================= */
.content {
    padding: 1.5rem;
    max-width: 1000px;
    margin: auto;
}

h1 {
    color: #002d56;
    margin-bottom: 0.6rem;
    font-weight: 300;
    font-size: 2.3em;
}

h2 {
    color: #002d56;
    margin-bottom: 0.6rem;
    font-weight: 400;
    font-size: 1.7em;
    scroll-margin-top: 90px;
}

h3 {
    margin-top: 0.8em;
margin-bottom: 0.8em;
    font-weight: 500;
}

section {
    scroll-margin-top: 80px;
}

ul {
    list-style: circle outside;
    margin-left: 20px;
    margin-bottom: 0;
}

ul li {
    margin-bottom: 0.8rem;
}

address {
    margin-bottom: 2em;
}

/* =======================================
   Qualifications Layout
======================================= */
.qual-grid,
.biography-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.qual-grid h3 {
    margin-bottom: 1em;
    margin-top: 0.1rem;
}

.download {
color: #cfcfcf;
}

.download a {
text-decoration: none;
color: #cfcfcf;
}

/* =======================================
   Resume Cards
======================================= */
.resume-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.top-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.7rem;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 0.5rem 1rem 1rem;
    font-style: normal;
}

.card a {
    color: #002d56;
    text-decoration: none;
}

.card-body h3 {
    color: #002d56;
    margin: 0.1em 0 0.3em;
    padding: 0;
  

}

.card-body .date {
    display: inline;
    margin-left: 15px;
}

.details,
.statistics {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.details td,
.statistics td {
    padding: 4px 8px;
    vertical-align: middle;
}

.details tr td:first-child {
    width: 34%;
    padding: 6px 0 0 4px;
}

.statistics tr td:first-child {
    width: 70%;
    padding: 6px 0;
}

.details tr:nth-child(even),
.statistics tr:nth-child(even) {
    background-color: #f4f8fc;
}

.statistics td + td {
    text-align: right;
}

/* =======================================
   Footer
======================================= */
footer {
    background: #ffffff;
    color: #002d56;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: #002d56;
    text-decoration: none;
}

/* =======================================
   Responsive Navbar & Layout
======================================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 68px;
        right: 0;
        width: 220px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        white-space: normal;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 10px 15px;
        text-align: right;
    }

    .qual-grid,
    .resume-grid,
    .biography-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .qual-grid,
    .biography-grid {
        grid-template-columns: 1fr 1fr;
    }

    .resume-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =======================================
   Qualifications Tables
======================================= */
table.quali-head {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 5px;
}

table.quali-head td {
    vertical-align: top;
}

table.striped {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 1rem;
}

table.striped td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid #ddd;
}

table.striped a {
    color: #002d56;
    text-decoration: none;
}

table.striped tr:nth-child(odd) {
    background-color: #f4f8fc;
}

table.striped tr:nth-child(even) {
    background-color: #ffffff;
}

table.striped tr:hover {
    background-color: #e8f2ff;
    transition: background 0.3s ease;
}

/* =======================================
   Carousel
======================================= */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 220px;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
    pointer-events: none;
}

.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: background 0.3s;
}

.dots span.active {
    background: #fff;
}

/* =======================================
   Dark Mode
======================================= */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #131922;
        color: #e6eef8;
    }

    .navbar {
        background: #161b22;
    }

    .nav-list li a {
        color: #ffffff;
    }

    .nav-list li a:hover {
        color: #66b2ff;
    }

    .menu-toggle {
        color: #e6eef8;
    }

    .hero-text {
        color: #ffffff;
        text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
    }


    h1,
    h2,
    .card-body h3 {
        color: #ffffff;

    }

    .card,
    .top-card {
        background: #1c2128;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    .details tr:nth-child(even),
    .statistics tr:nth-child(even) {
        background-color: #161b22;
    }

    .details td,
    .statistics td {
        color: #e6eef8;
    }

    footer {
        background: #161b22;
        color: #c9ddff;
    }

    footer a {
        color: #c9ddff;
    }

    table.striped tr:nth-child(odd) {
        background-color: #161b22;
    }

    table.striped tr:nth-child(even) {
        background-color: #1c2128;
    }

    table.striped td {
        border-bottom: 1px solid #2a2f36;
    }

    table.striped a {
        color: #c9ddff;
    }

    table.striped tr:hover {
        background-color: #223045;
    }

    @media (max-width: 900px) {
        .nav-list {
            background: #1c2128;
            box-shadow: 0 4px 10px rgba(0,0,0,0.6);
        }

        .nav-list li {
            color: #e6eef8;
        }
    }

    .dots span {
        background: rgba(255,255,255,0.3);
    }

    .dots span.active {
        background: #fff;
    }

    #mapPopup {
        background: rgba(0,0,0,0.7);
    }

    #mapContent {
        background: #1c2128;
        color: #e6eef8;
    }

    #closeMap {
        color: #e6eef8;
    }
}


/* =======================================
   Button
======================================= */


/* Base button styling */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid #ddd;
    transition: 0.25s ease;
    cursor: pointer;
    user-select: none;
}

/* Hover and active effects */
.download-btn:hover {
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0);
}

/* Icon styling */
.download-btn .icon {
    font-size: 1.25rem;
}

/* Default light mode variables */
:root {
    --btn-bg: #f4f8fc;
    --btn-text: #ddd;
    --btn-border: #ddd;

    --btn-bg-hover: #002d56;
    --btn-border-hover: #bbb;

}

/* Auto-dark-mode (system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --btn-bg: #1c2128;
        --btn-text: #f0f0f0;
        --btn-border: #333;

        --btn-bg-hover: #1c2128;
        --btn-border-hover: #444;
    }
}

/* If your site uses a manual dark-mode class on the body */
body.dark-mode {
    --btn-bg: #1c2128;
    --btn-text: #e6eef8;
    --btn-border: #2a2f36;

    --btn-bg-hover: #1c2128;
    --btn-border-hover: #444;
}

/* Responsiveness: button scales for mobile */
@media (max-width: 480px) {
    .download-btn {
        width: 70%;
        justify-content: center;
        font-size: 1.1rem;
        padding: 8px 24px;
border: 1px solid #ddd;

    }
}

.fi {
  width: 1.2em;
  height: 0.9em;
}
