.founder-image img {
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 5px;
}/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #5F4388, #114376);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
header {
    padding: 2rem 0;
}

.logo {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Navigation */
nav {
    margin-bottom: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.25rem;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

nav a:hover:after, nav a.active:after {
    width: 100%;
}

/* Main content */
main {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Page title */
.page-title {
    margin-bottom: 2rem;
    color: #5F4388;
    font-weight: 300;
}

/* Paragraph spacing */
p {
    margin-bottom: 1.2rem;
}

/* Georgia text styles */
.georgia-text {
    font-family: Georgia, serif;
}

.georgia-quote {
    font-family: Georgia, serif;
    font-style: italic;
    color: #5F4388;
    padding-left: 1rem;
    border-left: 3px solid #114376;
    margin: 1.5rem 0;
}

.georgia-highlight {
    font-family: Georgia, serif;
    font-weight: bold;
    color: #5F4388;
}

/* Featured image */
.featured-image {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 60%;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

/* Image with text wrap */
.image-left {
    float: left;
    margin: 0 2rem 1rem 0;
    border-radius: 5px;
    width: 40%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-right {
    float: right;
    margin: 0 0 1rem 2rem;
    border-radius: 5px;
    width: 40%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Spacing controls */
.text-block {
    margin-bottom: 2.5rem;  /* Extra space below content blocks */
}

.no-margin {
    margin-bottom: 0;  /* Remove margin from last paragraphs */
}

.extra-space {
    margin-bottom: 2rem;  /* Extra space for emphasis */
}

/* Clear floats */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* About page */
.about-intro {
    margin-bottom: 3rem;
}

.founders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.founder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder-image {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Services page */
.services-intro {
    margin-bottom: 3rem;
}


.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-title {
    color: #5F4388;
    margin-bottom: 1rem;
    font-weight: 300;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #114376;
}

/* Case studies page */
.case-studies-intro {
    margin-bottom: 3rem;
}

.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-study-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    overflow: hidden; /* Prevent image overflow */
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover container */
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-title {
    color: #5F4388;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #114376;
    text-decoration: none;
}

/* Individual case study page */
.case-study-detail {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-header {
    margin-bottom: 2rem;
}

.case-study-header h1 {
    margin-bottom: 0.5rem;
}

.case-study-meta {
    color: #666;
    margin-bottom: 1rem;
}

.case-study-detail-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 5px;
    margin-bottom: 2rem;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    overflow: hidden; /* Prevent image overflow */
}

.case-study-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain; /* Maintain aspect ratio within constraints */
    display: block;
}

.case-study-section {
    margin-bottom: 2rem;
}

.case-study-section h2 {
    color: #5F4388;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Contact page */
.contact-intro {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: #5F4388;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #114376;
}

.contact-link {
    color: #114376;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.location {
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 1rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    main {
        padding: 2rem;
    }
    
    .founders, 
    .services-grid, 
    .case-studies,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .image-left,
    .image-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 2rem 0;
    }
    
    .logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}