
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; 
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    font-weight: ;
}

header {
    background-color: #ffffff;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 100%; 
}
header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; 
}
@media (min-width: 768px) { 
    header {
        padding: 1.5rem;
    }
    header .header-content {
        flex-direction: row;
        padding: 0 1.5rem;
    }
}
header h1 {
    font-size: 1.875rem; 
    font-weight: bold;
    margin-bottom: 0.5rem; 
    text-align: center;
}
@media (min-width: 768px) { 
    header h1 {
        margin-bottom: 0;
        display: inline; 
    }
}
header h1 span.app-name {
    color: black; 
}
header nav {
    width: 100%; 
    text-align: center;
}
@media (min-width: 768px) { 
    header nav {
        width: auto; 
    }
}
header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem; 
}
header nav ul li a {
    display: block;
    font-size: 1rem;
    color: #4b5563; 
    background-color: #f0f4f8;
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
header nav ul li a:hover {
    background-color: #4b5563; 
    color: #ffffff;
}

header .active-link {
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
    color: #4b5563;
    font-weight: bold;
}
.main-layout-wrapper {
    display: flex;
    flex-direction: column; 
    flex-grow: 1; 
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (min-width: 768px) {
    .main-layout-wrapper {
        flex-direction: row; 
        align-items: stretch; 
    }
}

.sidebar {
    background-color: #ffffff; 
    color: #374151;
    padding: 1rem;
    width: 100%; 
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) { 
    .sidebar {
        width: 250px; 
        min-width: 250px; 
        box-shadow: none; 
        position: sticky; 
        top: 0; 
        align-self: flex-start; 
        height: 100vh; 
        overflow-y: auto; 
        padding-top: calc(1rem + 0.5rem); 
    }
}
.sidebar h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar nav ul li {
    margin-bottom: 0.75rem;
}
.sidebar nav ul li a {
    display: block;
    color: #4b5563; 
    background-color: #f0f4f8;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.sidebar nav ul li a:hover {
    background-color: #4b5563; 
    color: #ffffff;
}
.sidebar .active-link {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    color: #4b5563;
    font-weight: bold;
}

.profile-photo {
    display: block; 
    max-width: 160px; 
    max-height: 160px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin: 0 auto 1.5rem auto; 
    border: 2px solid #10261d; 
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-content-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.container {
    padding: 1rem;
    width: 100%;
}
@media (min-width: 768px) { 
    .container {
        padding: 1.5rem;
    }
}

main {
    flex-grow: 1;
    padding: 1rem; 
}
@media (min-width: 768px) { 
    main {
        padding: 1.5rem;
    }
}

section {
    margin-bottom: 2rem; 
    padding: 1.5rem; 
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}
section h2 {
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
    color: #1f2937; 
}
section p {
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}
section p.subtitle {
    color: #16181b; 
    margin-bottom: 1.5rem; 
}
section a {
    color: hsl(from var(--main-color) h s calc(l + 10%));
    font-style: italic;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; 
    margin-bottom: 1.5rem; 
}
@media (min-width: 640px) { 
    .input-group {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1.5rem; 
    }
}
.input-group select {
    flex-grow: 1; 
    width: 100%; 
    padding: 0.75rem;
    border: 1px solid #d1d5db; 
    border-radius: 0.375rem; 
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); 
    font-size: 1rem;
    color: #374151; 
}
.input-group select:focus {
    outline: 2px solid #3b82f6; 
    outline-offset: 2px;
    border-color: #3b82f6; 
}
@media (min-width: 640px) { 
    .input-group select {
        width: auto; 
    }
}
.input-group button {
    background-color: #3b82f6; 
    color: #ffffff;
    font-weight: bold;
    padding: 0.75rem 1.5rem; 
    border-radius: 0.375rem; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.2s ease-in-out;
    width: 100%; 
    border: none;
    cursor: pointer;
}
.input-group button:hover {
    background-color: #2563eb; 
}
@media (min-width: 640px) { 
    .input-group button {
        width: auto; 
    }
}

#placeholder {
    min-height: 150px;
    background-color: #f9fafb; 
    padding: 1rem;
    border-radius: 0.375rem; 
    border: 1px solid #e5e7eb; 
    color: #374151; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#placeholder p {
    margin: 0;
}
#placeholder h3 {
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loading-spinner svg {
    animation: spin 1s linear infinite;
    height: 2rem; 
    width: 2rem; 
    color: #3b82f6; 
    margin-bottom: 0.5rem; 
}
.loading-spinner p {
    font-size: 1.125rem; 
    font-weight: 500; 
    color: #1d4ed8; 
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.gridded-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
@media (min-width: 768px) { 
    .gridded-cards {
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (min-width: 1024px) { 
    .gridded-cards {
        grid-template-columns: repeat(3, 1fr); 
    }
}

.gridded-cards-2 {
    display: grid;
    grid-template-columns: 2fr;
    gap: 1rem; 
    margin-top: 0.5rem; 
}
@media (min-width: 768px) { 
    .gridded-cards-2 {
        grid-template-columns: repeat(1, 2fr 2.5fr); 
    }
}

.listed-cards {
    display: grid;
    grid-template-columns: 2fr;
    gap: 1rem; 
    margin-top: 0.5rem; 
}

.card {
    padding: 1rem;
    border-radius: 0.375rem; 
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); 
    border: 1px solid;
}
.card p.data {
    font-weight: 300; 
    font-size: 1rem;
}
.card h3{
    font-size: 1.125rem; 
    font-weight: normal;
    line-height: 1.5;
}
.card p.timestamp {
    font-size: 0.9rem; 
    color: #4b5563; 
    font-style: italic;
}

.card.blue-card {
    background-color: #eff6ff; 
    border-color: #bfdbfe; 
}
.card.blue-card h3 { color: #1e40af; }
.card.blue-card p.data { color: #2563eb; }

.card.green-card {
    background-color: #ecfdf5; 
    border-color: #a7f3d0; 
}
.card.green-card h3 { color: #065f46; }
.card.green-card p.data { color: #059669;  }

.card.yellow-card {
    background-color: #fffbeb; 
    border-color: #fde68a; 
}
.card.yellow-card h3 { color: #92400e; }
.card.yellow-card p.data { color: #d97706;}

.card.grey-card {
    background-color: #f0f4f8; 
    border-color: #4b5563; 
}
.card.grey-card h3 { color: #24292e; }
.card.grey-card p.data { color: #4b5563; }
.card.card.grey-card a {
    color: #24292e;
    font-style: italic;
    text-decoration: underline;
    }

.vertical-listing-item {
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem; 
}
.vertical-listing-item:last-child {
    margin-bottom: 0; 
}
.vertical-listing-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}
.vertical-listing-item p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.vertical-listing-item a {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}
.vertical-listing-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.vertical-listing-item .simpler a {
    color: #1d7c7c;
    font-style: italic;
    font-weight: 300;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

.vertical-listing-item .simpler a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.vertical-listing-item ul,
.timeline-item ul {
    list-style: disc;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem; 
}

.vertical-listing-item ul li,
.timeline-item ul li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151; 
    margin-bottom: 0.25rem;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { 
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) { 
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-post-card {
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}
.blog-post-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}
.blog-post-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; 
}
.blog-post-card .read-more {
    display: inline-block;
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    align-self: flex-start; 
}
.blog-post-card .read-more:hover {
    background-color: #2563eb;
}

.tag-list {
  list-style: none; 
  padding: 0;
  margin: 0; 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
}

.tag-list li {
  background-color: #f0f0f0; 
  padding: 5px 10px; 
  border-radius: 5px; 
  display: flex; 
  align-items: center; 
}

.tag-list li i {
  margin-right: 5px; 
}
figure {
    font-size:inherit;
}
main img {
  max-width: 100%; 
  height: auto;    
  display: block;  
  align-items: center;
}

figcaption {
    font-style: italic;
}

main .image-grid-1-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: .2rem;
    margin: .2rem 0;
}
@media (min-width: 640px) {
    main .image-grid-1-1 {
        grid-template-columns: 1fr 1fr;
    }
}

main .image-grid-1-1-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: .2rem;
    margin: .2rem 0;
}
@media (min-width: 640px) {
    main .image-grid-1-1-1 {
        grid-template-columns: repeat(3, 30%);
    }
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-month-group {
    margin-bottom: 2rem;
}

.timeline-month-group h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem; 
    border-left: 2px solid #d1d5db; 
}

.timeline-item:last-child {
    border-left: none; 
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #2563eb; 
    border: 3px solid #f0f4f8;
    box-sizing: content-box;
}

.timeline-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.timeline-item p.timeline-date {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-item p.timeline-description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
}

.go-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #004c97;
    color: #ffffff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 1000;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.go-to-top:hover {
    background-color: #004c97;
    transform: scale(1.1);
}

.update-note {
    color:#75777a;
    font-size:0.9rem;
    float:right;
}

.contact-form-container {
    position: relative;
    width: 500%;
    padding-bottom: 75%;
    height: 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 500px;
    height: 100%;
    border: 0;
}

.iframe-style{
    height:1000px;
}

@media (min-width: 768px) { 
    .iframe-style {
        width: 500px;
        height:1000px;
    }
}
@media (min-width: 1024px) { 
    .iframe-style {
        width: 800px;
        height:1000px;
    }
}




footer {
    background-color: #1f2937; 
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    margin-top: auto; 
    border-top-left-radius: 0.5rem; 
    border-top-right-radius: 0.5rem; 
    width: 100%; 
}
@media (min-width: 768px) {
    footer {
        padding: 1.5rem;
    }
}
footer p {
    margin: 0;
}
footer p.small-text {
    font-size: 0.875rem; 
    margin-top: 0.5rem; 
}
