/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0 auto;
    padding: 20px;
    max-width: 900px;
}

/* Header and Navigation */
header {
    margin-bottom: 40px;
}

.header-logo-container {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
}

.header-logo-container h1 {
    margin: 0;
    line-height: 1;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo-img {
    max-width: 60px;
    height: auto;
    opacity: 0.9;
    vertical-align: middle;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: underline;
}

a:hover {
    color: #004499;
}

strong {
    font-weight: 600;
}

p {
    font-size: 16px;
    padding-bottom: 20px;
}

.nav-left {
    display: flex;
    gap: 0;
}

.nav-right {
    display: flex;
    align-items: center;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    background-color: #f8f8f8;
    color: #666;
    font-weight: 500;
    display: block;
    text-decoration: none;
}

.tab.active {
    background-color: #fff;
    color: #333;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.tab:not(.active) {
    border-bottom: 1px solid #e0e0e0;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
}

/* Profile section */
.profile {
    margin-bottom: 40px;
}

.profile-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.profile-links {
    margin-bottom: 20px;
}

.profile-links a {
    color: #0066cc;
    text-decoration: underline;
}

/* Contact section */
.contact {
    margin-bottom: 50px;
}

.contact a {
    color: #0066cc;
    text-decoration: underline;
}

/* Navigation links - now the tab itself is the link */
.tab {
    color: inherit;
    text-decoration: none;
}

.tab:hover {
    color: inherit;
}

/* Writing section - simple list styling */
.writing {
    margin-bottom: 50px;
}

#blog-posts {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#blog-posts li {
    margin-bottom: 10px;
}

/* EU Foundry page styling */
.foundry-intro {
    margin-bottom: 40px;
}

.foundry-support {
    margin-left: 20px;
}

.foundry-videos {
    margin-bottom: 50px;
}

/* Full blog post page styling */
.blog-post-container {
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    margin-bottom: 30px;
}

.back-link a:hover {
    color: #004499;
}

.full-blog-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.full-blog-post-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.full-blog-post-date {
    color: #666;
    font-size: 16px;
}

.full-blog-post-image {
    margin: 30px 0;
    text-align: center;
}

.full-blog-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inline-image {
    margin-bottom: 20px;
    text-align: center;
}

.full-blog-post-content {
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

.full-blog-post-content ul {
    margin-bottom: 30px;
    padding-left: 30px;
}

.full-blog-post-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.inline-image img {
    max-width: 80%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-subtitle {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-card {
    background: #ebf0ff;
    border: 1px solid #d8e2ff;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
}

.video-thumbnail:hover img {
    filter: brightness(0.4);
}

.video-thumbnail::after {
    cursor: pointer;
    content: 'Click to Play on Youtube';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 300;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-thumbnail:hover::after {
    opacity: 1;
}

.video-info {
    padding: 10px;
    padding-top: 0;
}

.video-title {
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    color: black;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-title a {
    color: black;
    text-decoration: underline;
}

.video-title a:hover {
    color: black;
    text-decoration: underline;
}

.video-company {
    font-size: 14px;
}

.video-location {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Email address styling */
.email-address {
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.95em;
    border: 1px solid #e0e0e0;
    margin-left: 4px; 
    display: inline-block;
}

/* Contact logo styling */
.contact-logo-container {
    text-align: center;
    margin: 40px 0;
}

.contact-logo-img {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

/* Mobile responsive design */
@media (max-width: 600px) {       
    .tab {
        padding: 8px 10px;
        font-size: 14px;
    }
    

    .video-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0 auto;
        padding: 0 10px;
    }

    .profile-content {
        display: block;
    }
    
    .profile-image {
        float: left;
        margin: 0 20px 20px 0;
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
        object-fit: cover;
    }
    
    .profile-text {
        text-align: justify;
        hyphens: auto;
    }
}