/*
Theme Name: David Shadle Portfolio - Simplified
Description: Clean, optimized single-page WordPress theme
Author: David Shadle
Version: 3.0.0
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Roboto+Slab:wght@300;400;700&family=Roboto+Serif:wght@600&display=swap');

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* TYPOGRAPHY SYSTEM - Grouped for efficiency */

/* Primary Headers */
.section-header {
    font-family: 'Roboto Slab', serif;
    font-size: 1.625rem;
    line-height: 1.875rem;
    font-weight: 400;
    color: #05668D;
    margin-bottom: 2rem;
}

.section-header.light {
    color: #D4F3FB;
}

/* Main Headline */
.main-headline {
    font-family: 'Roboto Slab', serif;
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 400;
    color: #295579;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    text-wrap: pretty;
}

.main-headline .light {
    font-weight: 300;
}

.main-headline .regular {
    font-weight: 400;
}

/* Sub Headlines */
.sub-headline {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    line-height: 2.5rem;
    font-weight: 600;
    color: #295579;
    margin-bottom: 1.5rem;
}

/* Contact Header */
.contact-header {
    font-family: 'Roboto Slab', serif;
    font-size: 1.625rem;
    line-height: 2.5rem;
    font-weight: 400;
    color: #295579;
    margin-bottom: 1.5rem;
}

/* Body Text Styles */
.body-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.375rem;
    line-height: 2.188rem;
    font-weight: 400;
    color: #295579;
}

.body-text.large {
    line-height: 1.875rem;
}

.body-text.light {
    color: #F5F5F5;
}

.body-text.bold {
    font-weight: 700;
}

.body-text.semi-bold {
    font-weight: 600;
}

/* Circle Text */
.circle-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #295579;
}

/* Endorsement Styles */
.quote-mark {
    font-family: 'Roboto Serif', serif;
    font-size: 4.063rem;
    line-height: 2.188rem;
    font-weight: 600;
    color: #05668D;
    margin-bottom: 0.25rem;
}

.endorsement-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.375rem;
    line-height: 2.188rem;
    font-style: italic;
    color: #295579;
    margin-bottom: 1rem;
}

.endorsement-name {
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #06455E;
    margin-bottom: 0.25rem;
}

.endorsement-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    line-height: 1.125rem;
    font-weight: 400;
    color: #05668D;
}

/* Form Styles */
.form-label {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 30px;
    font-weight: 600;
    color: #295579;
    display: block;
    margin-bottom: 0.5rem;
}

.form-button {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 30px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #05668D;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #044a66;
}

/* Footer Text */
.footer-main {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 32px;
    font-weight: 400;
    color: #FFFFFF;
}

.footer-main .bold {
    font-weight: 800;
}

.footer-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 32px;
    font-weight: 400;
    color: #D9F5F7;
}

.footer-name {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-name:hover {
    color: #D4F3FB;
}

/* Special Elements */
.asterisk {
    font-family: 'Roboto Slab', serif;
    font-size: 3.125rem;
    font-weight: 400;
    color: #05668D;
}

/* LAYOUT SYSTEM */

body {
    font-family: 'Raleway', sans-serif;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 4rem 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.three-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

/* BACKGROUND GRADIENTS */
.bg-intro {
    background: linear-gradient(to bottom, #B4EAF6, #B2E3F5);
}

.bg-dark {
    background-color: #06455E;
}

.bg-framework {
    background: linear-gradient(to bottom, #F5F4F3, #EDEAE8);
}

.bg-endorsements {
    background: linear-gradient(to bottom, #F5F4F3, #EDEAE8);
}

.bg-contact {
    background: linear-gradient(to bottom, #B4EAF6, #B2E3F5);
}

/* HEADER STYLES */
.site-header {
    background-color: #FFFFFF;
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Raleway', sans-serif;
    font-size: 23px;
    color: #05668D;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo .david {
    font-weight: 400;
}

.logo .shadle {
    font-weight: 800;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-navigation a {
    font-family: 'Raleway', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #05668D;
    text-decoration: none;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.7;
}

/* SECTION SPECIFIC STYLES */

/* Introduction Section */
.intro-section {
    padding: 6rem 0;
}

.intro-image {
    max-width: 100%;
    height: auto;
}

.intro-subsection {
    margin-top: 6rem;
}

.intro-subsection .body-text p {
    margin-bottom: 1.5rem;
}

.intro-subsection .body-text p:last-child {
    margin-bottom: 0;
}

.intro-subsection-header {
    font-family: 'Roboto Slab', serif;
    font-size: 26px;
    line-height: 30px;
    font-weight: 400;
    color: #05668D;
    margin-bottom: 1.5rem;
}

/* Desktop Introduction Layout */
.intro-desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.intro-image-desktop {
    display: block;
}

.intro-image-desktop .intro-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.intro-mobile-image {
    display: none;
}

/* Circles Section */
.circles-section {
    padding: 4rem 0;
    text-align: center;
}

.circles-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
}

.circles-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Who I Work With Section */
.who-section {
    padding: 6rem 0;
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 6rem;
}

.who-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.who-icon {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.who-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Framework Section */
.framework-section {
    padding: 6rem 0;
}

.framework-image {
    max-width: 100%;
    height: auto;
    margin: 4rem 0;
    margin-left: auto;
    margin-right: auto;
}

.framework-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.framework-item {
    margin-bottom: 2rem;
}

.engagement-note {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
}

.engagement-line {
    width: 1px;
    height: 100px;
    background-color: #06455E;
    flex-shrink: 0;
}

/* What You Get Section */
.get-section {
    padding: 6rem 0;
}

.get-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
}

.get-grid::before,
.get-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #D4F3FB;
}

.get-grid::before {
    left: 33.33%;
}

.get-grid::after {
    left: 66.66%;
}

/* Desktop break - visible by default */
.desktop-break {
    display: inline;
}

/* Background Section */
.background-section {
    padding: 6rem 0;
}

.background-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.background-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
}

.partners-section {
    margin-top: 6rem;
}

.partners-header {
    font-family: 'Raleway', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #05668D;
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.background-text .body-text p {
    margin-bottom: 2rem;
}

.background-text .body-text p:last-child {
    margin-bottom: 0;
}

.partner-logo img {
    max-width: 60%;
    height: auto;
    max-height: 25px;
    object-fit: contain;
}

.partner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.partner-logo img {
    max-width: 200px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-placeholder {
    width: 200px;
    height: 70px;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

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

.contact-cta {
    margin-bottom: 0;
}

.contact-form {
    background: none;
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #295579;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #05668D;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Endorsements Section */
.endorsements-section {
    padding: 6rem 0;
}

.endorsements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.endorsements-grid::before,
.endorsements-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #05668D;
}

.endorsements-grid::before {
    left: 33.33%;
}

.endorsements-grid::after {
    left: 66.66%;
}

.endorsement-item {
    padding: 0 1rem;
}

/* Footer */
.site-footer {
    background-color: #06455E;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #05668D;
    margin-bottom: 4px;
    transition: 0.3s;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* PLACEHOLDER PAGES STYLES */
.under-construction {
    text-align: center;
    padding: 4rem 0;
}

.construction-message {
    font-family: 'Roboto Slab', serif;
    font-size: 32px;
    color: #05668D;
    margin-bottom: 2rem;
}

.construction-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    color: #295579;
    margin-bottom: 4rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-placeholder {
    aspect-ratio: 16/9;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.portfolio-placeholder {
    height: 200px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.mobile-active {
        display: block;
    }
    
    .main-navigation.mobile-active ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        padding: 20px 40px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 20px;
    }
    
    .two-column,
    .three-column,
    .who-grid,
    .framework-grid,
    .get-grid,
    .endorsements-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .get-grid {
        gap: 3rem;
    }
    
    .who-grid {
        gap: 3rem;
    }
    
    .framework-grid {
        gap: 3rem;
    }
    
    .framework-column .framework-item {
        margin-bottom: 3rem;
    }
    
    .framework-column .framework-item:last-child {
        margin-bottom: 0;
    }
    
    .intro-subsection .body-text p {
        margin-bottom: 3rem;
    }
    
    .background-content {
        grid-template-columns: 1fr;
        text-align: left;
        display: flex;
        flex-direction: column;
    }
    
    .background-image-container {
        order: 1;
        text-align: center;
        margin: 2rem 0;
        align-self: center;
    }
    
    .background-text {
        order: 2;
    }
    
    .partners-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    /* Mobile specific positioning */
    .intro-mobile-image {
        display: block;
        margin: 0 0 2rem 0;
        text-align: center;
    }
    
    .intro-image-desktop {
        display: none;
    }
    
    .intro-desktop-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-content {
        grid-column: 1;
        display: flex;
        flex-direction: column;
    }
    
    .intro-headline {
        order: 2;
    }
    
    .intro-subhead {
        order: 3;
    }
    
    .intro-text {
        order: 4;
    }
    
    .intro-subsection {
        order: 5;
    }
    
    .intro-mobile-image {
        order: 1;
    }
    
    .circles-container {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }
    
    .circles-image {
        transform: rotate(90deg);
        margin: 3rem 0;
        max-width: 300px;
    }
    
    .main-headline {
        font-size: 32px;
        line-height: 48px;
    }
    
    .sub-headline {
        font-size: 20px;
        line-height: 32px;
    }
    
    .body-text {
        font-size: 18px;
        line-height: 28px;
    }
    
    .section-header {
        font-size: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .get-grid::before,
    .get-grid::after,
    .endorsements-grid::before,
    .endorsements-grid::after {
        display: none;
    }
    
    .engagement-note {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .engagement-line {
        display: none;
    }
    
    .desktop-break {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-overview {
        margin-bottom: 2rem;
    }
    
    .contact-cta {
        margin-bottom: 4rem;
    }
    
    .endorsements-grid {
        gap: 3rem;
    }
}

/* RESUME PAGE STYLES */
.resume-section {
    padding: 6rem 0 4rem;
    background-color: #FFFFFF;
}

.resume-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.resume-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #D4F3FB;
}

.resume-header .section-header-01 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #295579;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.resume-header .section-header-02 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #05668D;
    margin-bottom: 1rem;
}

.contact-info .section-body {
    font-family: 'Raleway', sans-serif;
    font-size: 1.125rem;
    color: #295579;
    margin: 0;
}

.resume-section-block {
    margin-bottom: 3rem;
}

.resume-section-block .section-header-01 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #295579;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #D4F3FB;
    padding-bottom: 0.5rem;
}

.resume-section-block .section-body {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #05668D;
    margin-bottom: 1rem;
}

.resume-section-block .section-body p {
    margin-bottom: 1rem;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #F0F8FF;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.experience-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #295579;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.experience-role {
    font-family: 'Raleway', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #05668D;
    margin-bottom: 1rem;
    font-style: italic;
}

.resume-section .experience-item p.experience-details {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #05668D !important;
    margin-bottom: 1rem;
}

.resume-section .experience-item p.experience-details b,
.resume-section .experience-item p.experience-details strong {
    color: #05668D !important;
}

.experience-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

p.experience-details {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #05668D !important;
    margin-bottom: 1rem;
}

.experience-details li {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #05668D;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details li:before {
    content: "•";
    color: #D4F3FB;
    font-weight: 600;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.additional-roles {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #D4F3FB;
}

.additional-roles .section-header-02 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #295579;
    margin-bottom: 1rem;
}

.additional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-list li {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #05668D;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.additional-list li:before {
    content: "•";
    color: #D4F3FB;
    font-weight: 600;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.education-item {
    margin-top: 1rem;
}

.education-item .experience-title {
    margin-bottom: 0.25rem;
}

.education-item .experience-role {
    margin-bottom: 0.5rem;
}

.education-item .section-body {
    margin: 0;
    font-style: italic;
    color: #295579;
}

/* Resume Mobile Styles */
@media (max-width: 768px) {
    .resume-section {
        padding: 4rem 0 3rem;
    }
    
    .resume-content {
        padding: 0 1rem;
    }
    
    .resume-header .section-header-01 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .resume-header .section-header-02 {
        font-size: 1.25rem;
    }
    
    .contact-info .section-body {
        font-size: 1rem;
    }
    
    .resume-section-block .section-header-01 {
        font-size: 1.5rem;
    }
    
    .experience-title {
        font-size: 1.125rem;
    }
    
    .experience-role {
        font-size: 1rem;
    }
    
    .experience-details li,
    .additional-list li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
    }
}

/* CASE STUDIES STYLES */
.case-studies-archive {
    padding: 6rem 0 4rem;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.archive-header .section-header {
    margin-bottom: 1rem;
}

.case-studies-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.case-study-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Desktop layout: image left, content right */
@media (min-width: 768px) {
    .case-study-card {
        flex-direction: row;
    }

    .case-study-image {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .case-study-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

@media (min-width: 768px) {
    .case-study-image {
        height: auto;
        min-height: 300px;
    }
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-thumbnail {
    transform: scale(1.05);
}

.case-study-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #D4F3FB, #05668D);
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

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

.case-study-title {
    margin-bottom: 1rem;
}

.case-study-title a {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #295579;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-title a:hover {
    color: #05668D;
}

.case-study-excerpt {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #05668D;
    margin-bottom: 1.5rem;
}

.case-study-link {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #05668D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-link:hover {
    color: #295579;
}

.no-case-studies {
    text-align: center;
    padding: 4rem 2rem;
}

/* Single Case Study Styles */
.case-study-single {
    background: #FFFFFF;
}

.case-study-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #F8FEFF, #D4F3FB);
}

.case-study-header {
    text-align: center;
    margin-bottom: 3rem;
}

.case-study-intro {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-featured-image {
    text-align: center;
    margin: 2rem 0;
}

.case-study-hero-image {
    max-width: 100%;
    height: auto;
}
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-study-content {
    padding: 4rem 0;
}

.case-study-body {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Raleway', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #05668D;
}

.case-study-body h1 {
    line-height: 1.2;
    margin-top: 80px;
    margin-bottom: 25px;
}

.case-study-body h2,
.case-study-body h3,
.case-study-body h4 {
    font-family: 'Roboto Slab', serif;
    color: #295579;
    margin: 2rem 0 1rem;
}

.case-study-body h2 {
    font-size: 2rem;
    font-weight: 600;
}

.case-study-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3rem;
}

.case-study-body h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

.case-study-body p {
    margin-bottom: 1.5rem;
}

.case-study-body ol,
.case-study-body ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.case-study-body ol {
    margin-top: 25px;
}

/* Image Caption Styling */
.image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Phases Wrapper */
.phases-wrapper {
    margin-bottom: 32px;
}

/* Slideshow Image Height Consistency */
.slideshow-slide img,
.case-study-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

.case-study-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-study-details {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: #F8FEFF;
    border-radius: 8px;
    border-left: 4px solid #D4F3FB;
}

.details-header {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #295579;
    margin-bottom: 1.5rem;
}

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

.detail-item {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #05668D;
}

.detail-item strong {
    color: #295579;
}

.case-study-navigation {
    padding: 3rem 0;
}

.case-study-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
}

.nav-item.center {
    justify-self: center;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    color: #05668D;
    transition: color 0.3s ease;
    text-align: center;
}

.nav-link:hover {
    color: #295579;
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.nav-direction {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 400;
    display: block;
}

.nav-link.all {
    padding: 0.75rem 1.5rem;
    background: #FFFFFF;
    border: 2px solid #D4F3FB;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link.all:hover {
    background: #D4F3FB;
    color: #295579;
}

/* Case Studies Mobile Styles */
@media (max-width: 767px) {
    .case-studies-archive {
        padding: 4rem 0 3rem;
    }

    .case-studies-grid {
        gap: 2rem;
        padding: 0 1rem;
    }

    .case-study-card {
        flex-direction: column;
    }

    .case-study-image {
        height: 250px;
    }
}
    
    .case-study-hero {
        padding: 4rem 0 3rem;
    }
    
    .case-study-content {
        padding: 3rem 0;
    }
    
    .case-study-body {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .case-study-details {
        margin: 2rem 1rem 0;
        padding: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-link.prev,
    .nav-link.next {
        text-align: center;
    }
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin: 2rem 0;
}

.nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #05668D;
    text-decoration: none;
    border: 1px solid #D4F3FB;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #D4F3FB;
    color: #295579;
}

.page-numbers.current {
    font-weight: 600;
    cursor: default;
}

.next.page-numbers,
.prev.page-numbers {
    font-weight: 600;
}

/* Contact Email Section */
.contact-email-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.contact-label {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem; /* 16px equivalent */
    font-weight: 500; /* Medium weight */
    color: #05668D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-email-box {
    background-color: #9BDDF9;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.contact-email {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem; /* 24px equivalent */
    font-weight: 500; /* Medium weight */
    color: #295579;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #05668D;
    text-decoration: underline;
}

/* Framework Image Responsive Display */
.framework-image.framework-desktop {
    display: block;
}

.framework-image.framework-mobile {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-cta {
        margin-bottom: 4rem; /* 4rem separation as requested */
    }
    
    .contact-email-container {
        align-items: center;
        text-align: center;
    }
    
    .contact-label {
        align-self: flex-start;
        text-align: left;
    }
    
    /* Framework image swap for mobile */
    .framework-image.framework-desktop {
        display: none;
    }
    
    .framework-image.framework-mobile {
        display: block;
    }
}

/* ========================================
   CASE STUDY SLIDESHOW STYLES (Single Hyphen Classes)
   ======================================== */

.case-study-slideshow {
    margin: 60px 0;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.slideshow-slide {
    display: none;
    width: 100%;
}

.slideshow-slide.active {
    display: block;
}

.slideshow-slide img,
.case-study-image {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.slideshow-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.slideshow-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.slideshow-btn::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
}

.slideshow-btn--prev::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid #333;
    margin-right: 2px;
}

.slideshow-btn--next::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #333;
    margin-left: 2px;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot.active {
    background: #0078d4;
    transform: scale(1.2);
}

/* ========================================
   CASE STUDY STYLES
   ======================================== */

/* Case Study Base Styles */
.case-study {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.case-study__hero {
    margin-bottom: 60px;
}

.case-study__hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.case-study__hero-caption {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Case Study Typography */
.case-study h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.case-study__subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 60px;
    font-weight: 500;
}

.case-study h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 80px;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.case-study h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2a2a2a;
}

.case-study p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #333;
}

.case-study strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Role Section */
.case-study__role {
    padding: 32px;
    margin: 60px 0;
}

.case-study__role h2 {
    margin-top: 0;
    font-size: 24px;
}

.case-study__role h4 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #0078d4;
}

.case-study__role ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-study__role li {
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
}

.case-study__role li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0078d4;
    font-weight: bold;
}

/* Image with Caption */
.case-study__image-block {
    margin: 60px 0;
}

.case-study__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.case-study__caption {
    margin-top: 16px;
    font-size: 15px;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* Slideshow */
.case-study__slideshow {
    margin: 60px 0;
    position: relative;
}

.slideshow__container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.slideshow__slide {
    display: none;
    width: 100%;
}

.slideshow__slide.active {
    display: block;
}

.slideshow__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow__controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.slideshow__btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.slideshow__btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.slideshow__btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.slideshow__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.slideshow__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow__dot.active {
    background: #0078d4;
    transform: scale(1.2);
}

/* Results/Checkmarks */
.case-study__results {
    margin: 40px 0;
}

.case-study__results ul {
    list-style: none;
    padding: 0;
}

.case-study__results li {
    padding-left: 36px;
    margin-bottom: 16px;
    position: relative;
    font-size: 18px;
    line-height: 1.6;
}

.case-study__results li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Key Takeaway Box */
.case-study__takeaway {
    background: #f0f7ff;
    border-left: 4px solid #0078d4;
    padding: 32px;
    margin: 60px 0;
    border-radius: 4px;
}

.case-study__takeaway p {
    margin-bottom: 16px;
}

.case-study__takeaway p:last-child {
    margin-bottom: 0;
}

/* Credits Section */
.case-study__credits {
    padding: 40px;
    margin-top: 80px;
}

.case-study__credits p {
    margin-bottom: 12px;
    font-size: 16px;
}

.case-study__credits p:last-child {
    margin-bottom: 0;
}

/* Case Study Responsive */
@media (max-width: 768px) {
    .case-study {
        padding: 40px 16px;
    }

    .case-study h1 {
        font-size: 32px;
    }

    .case-study-body h1 {
        margin-top: 40px;
    }

    .case-study__subtitle {
        font-size: 18px;
    }

    .case-study h2 {
        font-size: 26px;
        margin-top: 60px;
    }

    .case-study h3 {
        font-size: 20px;
    }

    .case-study p {
        font-size: 16px;
    }

    .slideshow__controls {
        padding: 0 8px;
    }

    .slideshow__btn {
        width: 36px;
        height: 36px;
    }
}