/* cmsms stylesheet: Bernd Bornhauser CSS modified: Monday, November 17, 2025 4:21:28 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;
}

/* ====== 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;        /* prevent nav wrapping */
}

.logo-img {
    max-height: 40px;
    max-width: 85%;
    flex-shrink: 0;           /* logo won’t shrink */
}

.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;            /* hidden by default */
    z-index: 1100;            /* above nav-list */
}

.nav-list {
    padding: 0;
    display: flex;
    list-style: none;
    gap: 1.2rem;
    white-space: nowrap;       /* prevent link text wrapping */
}

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

.nav-list li a {
    color: #002d56;
    text-decoration: none;
    transition: color 0.2s;
}

/* Hover effect */
.nav-list li a:hover {
    color: #0077cc;
}

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

.hero-img {
    width: 100%;
    height: 100vw;
    max-height: 800px;
    object-fit: cover;
}

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

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

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

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

h2 {
    color: #002d56;
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 500;
    font-size: 1.6em;
}

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

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

ul li {
    margin-bottom: 0.8rem;
}

address {
    margin-bottom: 2em;
}

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

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

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

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

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

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

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

.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;
}

.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;
}

.card-body h3 {
    color: #002d56;
    margin: 0;
    padding: 0;
    display: inline;
}

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

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

/* ====== 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;       /* make toggle visible */
    }

    .nav-list {
        display: none;        /* hide nav items by default */
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;            /* below navbar */
        right: 0;
        width: 200px;
        padding: 0;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        white-space: normal;  /* allow wrapping in dropdown */
    }

    .nav-list.active {
        display: flex;        /* show dropdown when toggle clicked */
    }
}

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

    /* Layout adjustments */
    .qual-grid, .resume-grid {
        grid-template-columns: 1fr;
    }


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

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

/* ====== Striped Tables ====== */
table.striped {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 1rem;
}

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

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

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 inside cards ====== */
.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 */
.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;
}
