body {
    background-color: #0c1a2c;
    color: #c0c0c0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#logo {
    width: 450px;
    margin-bottom: 20px;
}

h1 {
    color: #ffffff;
    margin-top: 0;
    font-size: 3em;
}

a {
    color: #4a90e2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9em;
}

main {
    width: 80%;
    max-width: 960px;
    margin: 0 auto;
}

section {
    background-color: #1a2a3a;
    border: 1px solid #3a4a5a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* === Hero Section === */
#hero {
    padding: 20px;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
}

.hero-layout {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.large-tile {
    flex: 2;
}

.small-tiles-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hero-tile {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}

.hero-tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Specific adjustment for the founder's image */
a[href="#founder-video"] .hero-tile-content + img, /* This is just an example, a more specific selector might be needed */
a[href="#founder-video"] img {
    object-position: top; /* or 'center top' depending on the image */
}

.hero-tile:hover img {
    transform: scale(1.05);
}

.hero-tile-content {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    box-sizing: border-box;
}

.hero-tile h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.hero-tile p {
    margin: 0;
    font-size: 1em;
}
/* === End Hero Section === */

h2 {
    font-size: 2.2em;
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    background-color: #0c1a2c;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #3a4a5a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.service-emoji {
    font-size: 3em;
    display: block;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.iframe-container {
    width: 100%;
    height: 600px;
    border: 1px solid #3a4a5a;
    border-radius: 4px;
    overflow: hidden;
}

#blog iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* NIX_Skald Widget Customizations */
#NIX_Skald-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.NIX_Skald-post {
    background-color: #1a2a3a;
    border-radius: 8px;
    overflow: hidden;
    color: #c0c0c0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #3a4a5a;
}

.see-more-btn {
    display: inline-block;
    background-color: #4a90e2;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.see-more-btn:hover {
    background-color: #357abd;
}

.NIX_Skald-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.NIX_Skald-post-title {
    color: #4a90e2;
    font-size: 1.2em;
    padding: 15px;
    margin: 0;
}

.NIX_Skald-post-description {
    padding: 0 15px 15px;
    margin: 0;
    flex-grow: 1;
}