* {
    box-sizing: border-box;
}

body {
    /* margin is used to remove the default margin */
    margin: 0;
    /* padding is used to remove the default padding */
    padding: 0;
    min-height: 100vh;
    /* display is used to create a flex container 1D layout */
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1a2433;
    background: #f5f5f5;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-size: 1.02rem;
    line-height: 1.7;
}

main {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    /* flex 1 is used to make the main content take up the remaining space */
    flex: 1;
    /* padding is used to create space around the content */
    padding: 25px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;

  
    gap: 1.5rem;
}

.project-card-1,
.project-card-2 {
    width: 100%;
    min-width: 0;
    margin-bottom: 1.5rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #ffffff;
    /* overflow is used to hide the content that overflows the container */
    overflow: hidden;
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-bottom: 1px solid #e6edf6;
    background: #f7fafe;
}

.card-header h3 {
    margin: 0;
    color: #123c67;
    font-size: 1.2rem;
}

.card-header .links {
    font-size: 0.95rem;
}

.card-header a {
    color: #0f4f8a;
    text-decoration: none;
    font-weight: 700;
}

.card-header a:hover {
    text-decoration: underline;
}

.project-logo {
    width: 30px;
    height: 30px;
}

.card-body {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
}

.card-left .description {
    margin-top: 0;
    line-height: 1.6;
}

.card-left ul,
.card-info ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.card-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-right img,
.card-right video {
    width: 100%;
    max-width: 85%;
    border-radius: 6px;
    object-fit: cover;
}

.card-info {
    padding: 1rem;
}

.card-info p {
    margin-top: 0;
    line-height: 1.6;
}

.project-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 0.8rem 0.8rem;
}

.grid-item {
    width: min(100%, 500px);
}

.grid-item img,
.grid-item video {
    width: 100%;
    border-radius: 6px;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .card-body {
        grid-template-columns: 1fr;
    }
}
