﻿.pageHeader {
    background: var(--theme-neutral);
    width: 100%;
    padding-top: 110px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* allow stacking on small screens */
    box-sizing: border-box;
}

    .pageHeader h1 {
        font-size: 48px;
    }

    .pageHeader h2 {
        font-size: 32px;
    }

    .pageHeader h3 {
        font-size: 24px;
    }

    .pageHeader h4 {
        font-size: 16px;
    }

    .pageHeader img {
        display: block;
        max-width: 300px;
        max-height: 300px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.text-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 250px;
}

.inner-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Title bar (comes with a cute I to the left) */
.header {
    display: flex;
    align-items: center;
    gap: 15px; 
    padding-top: 20px;
    padding-bottom: 20px;
}

    .header::before {
        content: "";
        width: 6px; 
        height: 60px; /* Height to make it "I"-shaped */
        background-color: var(--theme-primary); 
        display: block;
        border-radius: 4px; /* Optional: Rounds the edges */
    }

    .header h1 {
        font-size: 32px;
        font-weight: 700;
        margin: 0;
    }

    .header.plain h1 {
        color: var(--theme-body-text);
    }

    .header.plain::before {
        display: none; /* Completely removes the vertical bar */
    }

/* Tiny cute grid. Used for hosting smaller elements. */
.small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 20px; 
    padding: 20px;
    margin: 0 auto; /* Centers the grid */
}

.grid-item {
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

    /* Icon Styling */
    .grid-item i {
        font-size: 36px; 
        color: var(--theme-primary); 
    }

    /* Title Styling */
    .grid-item h3 {
        font-size: 16px;
        margin: 0;
    }

    /* Summary Styling */
    .grid-item p {
        font-size: 14px;
        color: var(--theme-body-text);
    }

/* Projects Page */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    gap: 20px;
}

.project-card {
    position: relative;
    display: flex;
    height: 200px;
    max-width: 600px;
    background-color: var(--theme-neutral);
    overflow: hidden; /* Ensures no overflow from the image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    /* Project Image (50% Width and Full Height) */
    .project-card img {
        width: 30% !important;
        height: 100% !important;
        object-fit: cover;
    }

/* Project Details (Remaining 50%) */
.project-details {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

    /* Project Title */
    .project-details h3 {
        margin: 0;
        font-size: 18px;
        color: var(--theme-body-text);
        font-weight: 700;
    }

    /* Project Subtitle */
    .project-details p {
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        color: var(--theme-body-text);
    }

.overlay-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit; /* Keep button color consistent */
}

/* Overlay (Hidden by Default) */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 41, 41, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    /* Button Styling */
    .project-overlay button {
        padding: 10px 20px;
        background-color: var(--theme-primary);
        color: var(--theme-body-bg);
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        /* Button Hover Effect */
        .project-overlay button:hover {
            background-color: var(--theme-primary); /* Make it so the button bg does not change. */
        }

/* Show Overlay on Hover */
.project-card:hover .project-overlay {
    opacity: 1;
}

/* Hover Effect (Remove Translate) */
.project-card:hover {
    box-shadow: 2px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Blog pages */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    justify-items: stretch;
    align-items: start;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--theme-neutral);
    box-shadow: 2px 4px 10px rgba(100, 100, 100, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .blog-card img {
        width: 100%;
        height: 200px; /* force consistent height */
        object-fit: cover;
        object-position: center;
        display: block;
    }

.team-card img {
    height: 620px !important;
}

.blog-details {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

    .blog-details h3 a {
        text-decoration: none;
        color: var(--theme-body-text);
        font-size: 20px;
        font-weight: 700;
        transition: color 0.3s ease;
    }

        .blog-details h3 a:hover {
            text-decoration: underline;
            color: var(--theme-colorDarkHover);
        }

    .blog-details p {
        font-size: 15px;
        font-weight: 400;
        color: var(--theme-body-text);
        margin: 0;
    }

    .blog-details p {
        font-size: 14px;
        font-weight: 400;
        color: var(--theme-body-text);
        margin: 0;
    }

/* Read More Link (Clickable) */
.blog-read-more {
    margin-top: auto;
    padding: 15px 20px;
}

    .blog-read-more a {
        text-decoration: none;
        font-weight: bold;
        color: var(--theme-primary);
        transition: color 0.3s ease;
    }

        .blog-read-more a:hover {
            color: var(--theme-colorDarkHover);
            text-decoration: underline;
        }

    .blog-read-more h4 {
        margin-top: 10px;
        font-size: 12px;
        font-weight: 300;
    }

.blog p {
    font-size: 18px;
    font-weight: 400;
}

.blog li {
    font-size: 18px;
    font-weight: 400;
}

/* Contact */
.contact-social a {
    font-size: 24px !important;
    color: var(--theme-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
    gap: 20px; 
    padding: 30px;
    width: 100%;
}

    /* Ensure inputs have a gap of 20px */
    .contact-form .input {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid var(--theme-border, #ccc);
        border-radius: 5px;
    }

/* Ensure button stays centered */
.center-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Minor classes */
.button-row {
    display: flex; 
    gap: 5px; 
    justify-content: center; 
    align-items: center;
    padding: 10px 0;
}

.right-image {
    margin: 0;
    align-self: flex-end; 
}

.center-text {
    text-align: center;
}

.left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.bi {
    font-weight: bold;

}

.fat {
    padding: 15px 20px;
}

.quote {
    padding-top: 10px;
    padding-bottom: 30px;
    width: 85%;
    font-style: italic;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .pageHeader h1 {
        font-size: 32px;
    }

    .pageHeader h2 {
        font-size: 24px;
    }

    .pageHeader h3 {
        font-size: 20px;
    }

    .pageHeader h4 {
        font-size: 16px;
    }

    .pageHeader img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 1000px) {

    .project-grid {
        grid-template-columns: 1fr; /* Stack projects vertically on smaller screens */
    }

    .project-card {
        flex-direction: column; /* Stack image and text vertically */
    }

        .project-card img,
        .project-details {
            width: 100%;
            height: auto;
        }

    .project-details {
        padding: 15px;
    }

    .blog-card img {
        width: 100%;
        height: 160px;
    }

    .team-card img {
        width: 100%;
        height: auto;
        max-height: 320px;
    }

    .blog-card {
        width: 80%;
        flex-direction: column;
    }

    .blog-container {
        grid-template-columns: 2fr;
    }

    .button-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 10px 0;
    }

        .button-row .input,
        .button-row .button-main {
            width: 100%;
            max-width: 400px;
            box-sizing: border-box;
        }
}





