/* CSS Document */
/* Simple CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================ */
/* SCROLLBAR STYLING                                             */
/* ============================================================ */

/* WebKit Browsers (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

html::-webkit-scrollbar-track {
    background-color: #ffffff;
}

html::-webkit-scrollbar-thumb {
    background-color: #224336;
    border-radius: 8px;
    border: 3px solid #ffffff;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: #224d3c;
}

/* Firefox Support */
html {
    scrollbar-color: #224336 #ffffff;
    scrollbar-width: auto;
}

/* ============================================================ */
/* BODY WITH BACKGROUND                                          */
/* ============================================================ */

body {
    background-image: url('Backgrounds/AFinalMainBgPatchFormula.png');
    background-repeat: repeat;
}

/* ============================================================ */
/* TYPOGRAPHY — CLASSES                                          */
/* ============================================================ */

.Prof {
    font-size: 36px;
    font-weight: 700;
    color: #566B4A;
    font-family: Georgia, serif;
    text-decoration: none;
}

.Title {
    font-size: 32px;
    font-weight: 700;
    color: #2B4F4B;
    font-family: Georgia, serif;
    text-decoration: underline;
}

.Title11 {
    font-size: 32px;
    font-weight: 700;
    color: #2B4F4B;
    font-family: Georgia, serif;
    text-decoration: none;
}

.CVTop1 {
    color: #0e2f41;
    font-weight: 700;
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    line-height: 1.1;	
    display: inline-block;
    margin-bottom: 0px;    
	margin-top: 30px;   /* Add spacing above each CV heading */	
}

.CVTop2 {
    color: #0e2f41;
    font-weight: 700;
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    line-height: 1.1;	
    display: inline-block;
    margin-bottom: 0px;    
	margin-top: 0px;   /* Add spacing above each CV heading */
}
.CV {
    color: #0e2f41;
    font-weight: 700;
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    line-height: 1.1;	
    display: inline-block; 
	margin-bottom: 0px;
    margin-top: 24px;   /* Add spacing above each CV heading */
}

.Links { 
  font-size: 16px; 
  font-weight: 700; 
  color: #2B4F4B; 
  font-family: "Times New Roman", Times, serif; 
  text-decoration: underline; 
}

.LinksMobil { 
    font-size: 16px; 
    font-weight: 700; 
    color: #2B4F4B; 
    font-family: "Times New Roman", Times, serif; 
    text-decoration-line: underline;
}

.LinksCosmos {
    font-size: 14px;
    font-weight: 700;
    color: #2B4F4B;
    font-family: "Times New Roman", Times, serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: 0px;
    line-height: 1.1;
}

.LinksSept {
    font-size: 13px;
    font-weight: 500;
    color: #cccc99;
    font-family: "Times New Roman", Times, serif;
    text-decoration: underline;
}

.LinksArticle {
    font-size: 15px;
    font-weight: 700;
    color: #003333;
    font-family: "Times New Roman", Times, serif;
    text-decoration: underline;
}



.Who {
    font-size: 16px;
    font-weight: 700;
    color: #272419;
    font-family: "Times New Roman", Times, serif;
}

.formula {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
}

.publications {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
}

.formulaBig {
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    font-family: "Times New Roman", Times, serif;
}

.text {
    font-size: 15px;
    font-weight: 550;
    color: #164761;
    font-family: "Times New Roman", Times, serif;
    margin-bottom: 4px;
    line-height: 1.1;
}

.textSmaller {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    margin-bottom: 1px;
    line-height: 1.1;
}

.star {
    font-size: 12px;
    font-weight: 600;
    color: #164761;
    font-family: "Times New Roman", Times, serif;
    margin-bottom: 0px;
    line-height: 1.1;
}

.textUp {
    font-size: 16px;
    font-weight: 600;
    color: #123c53;
    font-family: "Times New Roman", Times, serif;
    margin-bottom: 1px;
    line-height: 1.1;
}

.textSmall {
    font-size: 1px;
    font-weight: 700;
    color: #ffffff;
    font-family: "Times New Roman", Times, serif;
    margin-bottom: 1px;
    line-height: 0.5;
}

.textBgger {
    font-size: 20px;
    font-weight: 400;
    color: #184f6c;
    font-family: "Times New Roman", Times, serif;
}

.textItalic {
    font-size: 16px;
    font-weight: 600;
    color: #4e4209;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
}

.Impact {
    font-size: 14px;
    font-weight: 700;
    color: #4e4209;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
}

.Contribution {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.7px;
    color: #41370a;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
    text-transform: uppercase;
}

/* ============================================================ */
/* TYPOGRAPHY — HEADINGS                                         */
/* ============================================================ */

h1.type1 {
    font-size: 31px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #22413e;
    font-family: "Times New Roman", Times, serif;
    text-decoration: none;
    margin: 0;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    h1.type1 {
        font-size: 30px;
        letter-spacing: 0.5px;
    }
}

@media screen and (max-width: 480px) {
    h1.type1 {
        font-size: 30px; /* Even smaller for phones */
        white-space: normal; /* Allow wrap on very small screens */
    }
}

h2.type2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #1e3a37;
    font-family: "Times New Roman", Times, serif;
    text-decoration: none;
    margin: 0;
}

h3.type3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #41370a;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
    text-decoration: none;
    margin-top: 22px;
    margin-bottom: 4px;
}

h4.type4 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #4e4209;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
    text-decoration: none;
    margin-top: 18px;
    margin-bottom: 4px;
}

h5.type5 {
    font-size: 13px;
    font-weight: 700;
    color: #164761;
    font-family: "Times New Roman", Times, serif;
    margin-top: 16px;
    margin-bottom: 4px;
    line-height: 1.0;
}

/* ============================================================ */
/* TABLE STYLES                                                  */
/* ============================================================ */

table.type2 {
    display: block;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-collapse: collapse;
}

table.type2 td {
    padding-bottom: 0px;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a37;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
}

.bottom {
    display: block;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 400;
    color: #184f6c;
    font-family: "Times New Roman", Times, serif;
    text-decoration: none;
}

/* ============================================================ */
/* FIXED CELL WITH BACKGROUND                                    */
/* ============================================================ */

td.fixed-cell {
    width: 434px;
    max-width: 434px;
    background-image: url('Backgrounds/ATDBG.png');
    background-repeat: repeat;
    background-position: left top;
    background-size: contain;
    overflow: hidden;
    box-sizing: border-box;
}

/* ============================================================ */
/* BOTTOM TABLE                                                  */
/* ============================================================ */

.bottom-table {
    border-collapse: collapse;
    text-decoration: none;
}

.fields-table {
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #0e3451;
}

.fields-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d4c8b8;
    vertical-align: top;
}

.fields-table tr:last-child td {
    border-bottom: none;
}

.fields-table hr {
    border: none;
    border-top: 1px solid #c4b8a8;
    margin: 4px 0;
}

/* Ensure HTML cellpadding is respected */
table[cellpadding] td {
    padding: inherit;
}

/* ============================================================ */
/* LISTS — consistent spacing                                    */
/* ============================================================ */

ul.text {
    margin-top: 4px;
    margin-bottom: 8px;
}

/* ============================================================ */
/* HORIZONTAL RULES — consistent spacing                         */
/* ============================================================ */

hr {
    margin-top: 24px;
    margin-bottom: 24px;
    border: none;
    border-top: 2px solid #3c5340;
}

/* ============================================================ */
/* RESPONSIVE DESIGN (Mobile & Tablet)                           */
/* ============================================================ */

/* Make images fluid */
img {
    max-width: 100%;
    height: auto;
}

/* Make tables horizontally scrollable on mobile */
.tableWrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* For smartphones */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Increase tap targets for mobile */
    a {
        display: inline-block;
        padding: 4px 6px;
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve readability on mobile */
    .text {
        font-size: 15px;
        line-height: 1.6;
    }
}

#TableLinks {
  background-image: url('your-image.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%; /* Forces the image to stretch to the exact width and height */
}