/*
Theme Name: transformation
Theme URI: http://anothercoffee,net
Author: Anthony Lopez-Vito
Author URI: http://anothercoffee,net
Description: A Nikola static site generator theme for Another Cup of Coffee using Bootstrap 4.
Version: 1.0.0
License: MIT

This theme follows the Digital Transformation Advisory style guide with:
- Typography: Montserrat (headings), Source Sans Pro (body), Merriweather (accents)
- Color Palette: Deep Teal, Warm Amber, Slate Blue, Soft Cream, Coral, Sage Green
- Components: Cards, buttons, and UI elements with consistent styling
*/

/* Color Palette (as defined in the style guide)
------------------
Primary Colors:
- Deep Teal (#1A535C) - Represents trust, depth of expertise and stability
- Warm Amber (#F7B32B) - Signifies transformation, energy and optimism

Secondary Colors:
- Slate Blue (#4F6D7A) - Adds professional credibility
- Soft Cream (#F9F7F3) - Creates breathing space and readability

Accent Colors:
- Coral (#FF6B6B) - For CTAs and important highlights
- Sage Green (#8AAA9A) - For success stories and positive outcomes
*/

:root {
    --deep-teal: #1A535C;
    --warm-amber: #F7B32B;
    --slate-blue: #4F6D7A;
    --soft-cream: #F9F7F3;
    --coral: #FF6B6B;
    --sage-green: #8AAA9A;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #FFFFFF;
    color: var(--slate-blue);
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0 !important;
}

hr {
    margin-top: 2em;
    margin-bottom: 2em;
}

/* Typography
   Following the style guide with:
   - Montserrat for headings (Semi-Bold/600 weight)
   - Source Sans Pro for body text
   - Merriweather for accents and quotes
*/
body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--slate-blue);
    font-weight: 400;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-teal);
    margin-top: 30px;
    font-weight: 600;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

h4 {
    font-size: 20px;
}

h5, h6 {
    font-size: 18px;
    font-weight: 600;
}

.display-1 {
    font-size: 3rem;
}
.display-2 {
    font-size: 2.5rem;
}
.display-3 {
    font-size: 2rem;
}
.display-4 {
    font-size: 1.5rem;
}

/* Base link styling - underlined by default */
a {
    color: var(--slate-blue);
    text-decoration: underline;
}

/* Ensure article content links are always underlined */
#content article p a:not(.cta-button):not(.modern-button):not(.modern-button-outline):not(.hero-cta):not(.btn):not(.case-study-title-link):not(.case-study-detail-link):not(.case-study-read-more),
#content article li a:not(.cta-button):not(.modern-button):not(.modern-button-outline):not(.hero-cta):not(.btn):not(.case-study-title-link):not(.case-study-detail-link):not(.case-study-read-more),
#content article div a:not(.cta-button):not(.modern-button):not(.modern-button-outline):not(.hero-cta):not(.btn):not(.case-study-title-link):not(.case-study-detail-link):not(.case-study-read-more) {
    text-decoration: underline;
}

/* Override for specific link types that should not be underlined */
.navbar a,
.navbar-nav .nav-link,
.modern-nav .nav-link,
.modern-button,
.btn,
.button-outline,
.readmore-button,
.control-button,
.cta-button,
.hero-cta,
.modern-button-primary,
.modern-button-secondary,
.modern-button-outline,
.modern-button-tertiary,
.footer-menu ul li a,
.card a,
.card-title a,
.social-icons a,
.icon-container a,
.client-logo a,
.featured-testimonial-author a,
.contact-social a,
.navbar-brand a,
.footer-social a,
.case-study-title-link,
.case-study-detail-link,
.case-study-read-more {
    text-decoration: none;
}

/* Hover state for regular links */
a:hover,
a:focus,
a:active {
    color: var(--deep-teal);
    text-decoration: underline;
}

/* Hero CTA button styling */
.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--coral);
    color: var(--deep-teal) !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: #e55c5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
    color: var(--deep-teal) !important;
    text-decoration: none !important;
}

/* Footer social links styling */
.footer-social a {
    display: inline-block;
    margin-right: 10px;
    color: var(--slate-blue);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--warm-amber);
    text-decoration: none !important;
}

/* Ensure buttons and nav links don't get underlined on hover */
.navbar a:hover,
.navbar-nav .nav-link:hover,
.modern-nav .nav-link:hover,
.modern-button:hover,
.btn:hover,
.button-outline:hover,
.readmore-button:hover,
.control-button:hover,
.cta-button:hover,
.hero-cta:hover,
.modern-button-primary:hover,
.modern-button-secondary:hover,
.modern-button-outline:hover,
.modern-button-tertiary:hover,
.card a:hover,
.card-title a:hover,
.client-logo a:hover,
.featured-testimonial-author a:hover,
.contact-social a:hover,
.navbar-brand a:hover,
.footer-social a:hover,
.case-study-title-link:hover,
.case-study-detail-link:hover,
.case-study-read-more:hover {
    text-decoration: none;
}

#content > article > div > ul > li,
#content > article > div > ol > li {
    padding-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.intro {
    font-size: 28px;
    text-align: center;
    margin: 1em 0 1em 0;
}

.guide-lead {
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--deep-teal);
}

.guide-lead p {
    font-size: 21px;
    line-height: 1.6;
    color: var(--slate-blue);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
}

.jumbo {
    font-size: 48px;
    text-align: center;
    margin: 0;
    line-height: 1;
}

.disclaimer {
    font-size: 14px;
    line-height: 1;
}

details summary {
    cursor: pointer;
    font-weight: 400;
    font-style: italic;
    padding-top: 0;
}

.text-decoration-underline {
    text-decoration: underline;
}

.byline-name,
.dateline,
.listdate,
.footnotes,
figcaption {
    color: var(--slate-blue);
}

.page-meta {
    color: var(--slate-blue);
    opacity: 0.7;
}
.posted {
    color: var(--slate-blue);
    opacity: 0.7;
    font-style: italic;
}

div.footnotes {
    margin: 50px 0 30px 0;
}

figcaption,
.footnotes {
    font-style: italic;
    font-size: 15px;
}
.footnotes a {
    color: var(--slate-blue);
}

.metadata {
    text-align: center;
}

.metadata p:before {
    content: " / ";
}

blockquote p,
blockquote {
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.25;
}

/* Case Study Header and Info Boxes */
.case-study-header {
    background-color: var(--deep-teal);
    color: white;
    padding: 3rem 0 2rem;
}

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

.case-study-info-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.case-study-info-box h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.case-study-info-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.case-study-info-box .client-industry {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Case Study Testimonial */
.case-study-testimonial {
    background-color: #f8f9fa;
    padding: 2rem 2rem 2rem 3rem;
    margin: 3rem 0;
    position: relative;
    border-left: 4px solid var(--deep-teal);
}

.case-study-testimonial-content {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--slate-blue);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
}

.case-study-testimonial-author {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: var(--deep-teal);
    margin-top: 1.5rem;
    position: relative;
}

@media (max-width: 768px) {
    .case-study-testimonial {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }

    .case-study-testimonial-content {
        font-size: 1.1rem;
    }
}

.green {
    color: var(--sage-green);
}

.red {
    color: var(--coral);
}

.dark-grey {
    color: var(--deep-teal);
}

.grey {
    color: var(--slate-blue);
}

.light-grey {
    color: var(--soft-cream);
}

.white {
    color: #ffffff;
}

.highlight {
    color: var(--warm-amber);
}


/* Font Awesome Styles */
.fa,
.fas,
.far,
.fal,
.fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

pre.code .err {
    border: none;
}

/* Main Container */
/*.container {*/
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 0 0;
}

/* Header */

header.storypage {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* Style the entry title in story pages */
header.storypage .entry-title {
    font-size: 2.5rem;
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Homepage specific - hide header */
header.notitle {
    display: none;
}

/* Align article.notitle with bottom of nav */
article.post-text.storypage.notitle {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure hero section in notitle pages aligns with navbar */
article.post-text.storypage.notitle .hero-section {
    margin-top: 0;
    padding-top: 0;
}

/* Make hero section flush with bottom of navbar for notitle pages */
article.post-text.storypage.notitle .hero-section.full-width {
    padding-top: 3rem;
    margin-top: 3.3rem;
}

/* Global padding reset for consistent alignment */
.container,
.navbar .container,
.hero-section .container,
.hero-section.full-width .container,
.modern-nav .container,
.modern-footer .container,
.footer-menu .container,
#content {
    max-width: 1200px;
    padding-left: 0;
    padding-right: 0;
}

/* Add consistent padding for all viewport widths below 1250px */
@media (max-width: 1250px) {
    .container,
    .navbar .container,
    .hero-section .container,
    .hero-section.full-width .container,
    .modern-nav .container,
    .modern-footer .container,
    .footer-menu .container,
    #content {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    /* Fix Bootstrap grid system */
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    /* Ensure content inside columns has proper padding */
    .row [class*='col-'] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Reduce padding for smaller screens to maximize content width */
@media (max-width: 768px) {
    .container,
    .navbar .container,
    .hero-section .container,
    .hero-section.full-width .container,
    .modern-nav .container,
    .modern-footer .container,
    .footer-menu .container,
    #content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Further reduce padding for mobile screens */
@media (max-width: 576px) {
    .container,
    .navbar .container,
    .hero-section .container,
    .hero-section.full-width .container,
    .modern-nav .container,
    .modern-footer .container,
    .footer-menu .container,
    #content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


.header {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid var(--deep-teal);
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Navigation Bar */
.navbar {
    background-color: #FFFFFF;
    padding: 10px 0;
}

/* Navbar CTA Button */
.navbar-cta {
    background-color: transparent;
    border: 2px solid var(--deep-teal);
    color: var(--deep-teal) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.5;
    text-decoration: none !important;
    font-weight: 600;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Fix dimensions to prevent layout shifts */
    min-width: max-content;
}

.navbar-cta:hover,
a.navbar-cta:hover {
    border: 2px solid var(--deep-teal);
    padding: 0.5rem 1rem !important;
    line-height: 1.5;
}

/* Ensure navbar items are properly aligned */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Ensure all nav links have the same vertical alignment */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

/* Target all states of the navbar-cta to prevent underline */
.navbar-cta:hover,
.navbar-cta:focus,
.navbar-cta:active,
a.navbar-cta:hover,
a.navbar-cta:focus,
a.navbar-cta:active,
.nav-link.navbar-cta:hover,
.nav-link.navbar-cta:focus,
.nav-link.navbar-cta:active,
.navbar-nav .nav-link.navbar-cta:hover,
.navbar-nav .nav-link.navbar-cta:focus,
.navbar-nav .nav-link.navbar-cta:active {
    background-color: var(--deep-teal);
    color: white !important;
    text-decoration: none !important;
    border: 2px solid var(--deep-teal) !important;
    border-bottom: 2px solid var(--deep-teal) !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem !important;
}

/* Navbar Logo */
.navbar-brand img {
    max-width: 150px;
    max-height: 50px;
    display: block;
}

#blog-title {
    font-weight: bold;
    color: var(--deep-teal);
}

/* Modern Navigation */
.modern-nav {
    padding: 1.5rem 0;
    background-color: #ffffff;
    position: absolute;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    top: 0;
    height: auto;
}

.modern-nav .container {
    max-width: 1200px;
    padding: 0;
}

.modern-nav .navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
}

.modern-nav.scrolled {
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    padding: 1rem 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.modern-nav .navbar-brand {
    font-weight: 700;
    color: var(--deep-teal);
    transition: color 0.3s ease;
}

.modern-nav .nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
}

/* Enable to create an underline effect
 *
.modern-nav .nav-link:not(.navbar-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0.7;
}
*/

.modern-nav .nav-link:not(.navbar-cta):hover {
    color: white;
}

.modern-nav .nav-link:not(.navbar-cta):hover::after {
    width: 80%;
}

.modern-nav.scrolled .navbar-brand {
    color: var(--deep-teal);
}

.modern-nav.scrolled .nav-link:not(.navbar-cta) {
    color: var(--slate-blue);
}

.modern-nav.scrolled .nav-link:not(.navbar-cta)::after {
    background-color: var(--warm-amber);
}

/* Original Navbar styling */

.navbar-expand-md .navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
}

.navbar-nav .nav-item {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.85714285714286;
}

.navbar .navbar-nav .nav-link {
    color: var(--deep-teal);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600; /* Semi-Bold */
    padding: 0;
    letter-spacing: 1px;
    line-height: 1.85714285714286;
    margin: 0 1em;
}

.navbar .navbar-nav .nav-link:not(.navbar-cta):hover {
    color: var(--warm-amber);
}

.navbar .navbar-nav .nav-link.navbar-cta:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Remove right margin from the Book a Consultation nav-item */
.navbar .navbar-nav .nav-item:last-child .nav-link,
.navbar .navbar-nav .nav-link.navbar-cta {
    margin-right: 0;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--coral);
}

.postpromonav {
    margin: 30px 0 30px 0;
}

.postpromonav ul.tags {
    margin: 10px 0 10px 0;
}

.postpromonav ul.pager {
    margin: 50px 0 30px 0;
}

/* Hamburger dropdown to the right of the page */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        padding: 1rem;
        margin-right: 20px;
        background-color: #FFFFFF;
        border: 1px solid var(--slate-blue);
        border-radius: 0 0 0.25rem 0.25rem;
        width: auto;
        min-width: 200px;
        z-index: 9999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .card {
        position: relative;
        z-index: 1;
    }

    .navbar-nav {
        text-align: right;
    }

    .navbar-nav .nav-item {
        padding: 0.5rem 0;
    }

    /* Remove border from Let's Talk button in hamburger menu */
    .navbar-nav .nav-link.navbar-cta {
        border: none !important;
        background-color: transparent;
        color: var(--deep-teal) !important;
        padding: 0 !important;
    }

    .navbar-nav .nav-link.navbar-cta:hover,
    .navbar-nav .nav-link.navbar-cta:focus,
    .navbar-nav .nav-link.navbar-cta:active {
        background-color: transparent;
        color: var(--warm-amber) !important;
        border: none !important;
    }

    .navbar .container.position-relative {
        position: relative;
        z-index: 9999;
    }

    .dropdown-menu {
        text-align: right;
        right: 0;
        left: auto;
        border: none;
    }

    .dropdown-item {
        text-align: right;
    }
}


/* Section bar */
.brown-bar {
    background-color: var(--deep-teal);
    width: 100%;
    padding: 10px 0;
}

.brown-bar-text {
    color: white;
    font-size: 2em;
    margin: 0;
    padding: 0;
}


/* Content Area */
.content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.main-content {
    flex: 0 0 70%;
    max-width: 70%;
    padding-right: 20px;
}

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
    padding-left: 20px;
    border-left: 1px solid #e5e5e5;
}

.featured-image-container,
.centred-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
}

.featured-image,
.centred-image {
    max-width: 100%;
    height: auto;
}

.alert-primary {
    color: var(--deep-teal);
    background-color: var(--soft-cream);
    border-color: var(--slate-blue);
}

.badge-secondary,
.tags > li a {
    color: #fff;
    background-color: var(--coral);
}

.toc {
    background-color: var(--soft-cream);
    border: 1px solid var(--slate-blue);
    padding: 2em;
}

/***************
 * Posts
 */
h1.entry-title {
    font-size: 48px;
    font-weight: 600; /* Consistent with style guide */
    text-align: center;
 }


.featured-image {
    margin-bottom: 25px;
}

.postpage header {
    border-bottom: 1px solid #e9ecef;
}

.pullquote blockquote {
    margin: 0;
}

.pullquote {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-style: italic;
    color: var(--slate-blue);
    text-align: center;
    position: relative;
    margin: 2em;
    padding: 20px 0;
}

.pullquote::before,
.pullquote::after {
    content: "";
    position: absolute;
    width: 10%;
    height: 1px;
    background: var(--warm-amber);
    left: 50%;
    transform: translateX(-50%);
}

.pullquote::before {
    top: 0;
}

.pullquote::after {
    bottom: 0;
}
/* Pullquote is always visible regardless of screen size */

/***************
 * Buttons and icons
 * Button hierarchy follows the style guide:
 * - Primary/CTA buttons: Coral background with white text
 * - Secondary buttons: Deep Teal outline with Deep Teal text
 * - Tertiary buttons: Text with Warm Amber underline on hover
 */

/* Modern Button Styles */
.modern-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
}

.modern-button-primary {
    background-color: var(--coral);
    color: var(--deep-teal);
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
    font-weight: 600;
}

.modern-button-primary:hover {
    background-color: #e55c5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.3);
    color: var(--deep-teal);
    text-decoration: none;
}

.modern-button-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.modern-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.modern-button-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--deep-teal);
    border-radius: 4px;
    color: var(--deep-teal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
}

.modern-button-outline:hover {
    background-color: var(--deep-teal);
    color: white;
    text-decoration: none;
}

.modern-button-tertiary {
    background-color: transparent;
    color: var(--deep-teal);
    padding: 0.5rem 0;
    position: relative;
    box-shadow: none;
}

.modern-button-tertiary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--warm-amber);
    transition: width 0.3s ease;
}

.modern-button-tertiary:hover {
    color: var(--deep-teal);
    transform: translateY(-1px);
}

.modern-button-tertiary:hover::after {
    width: 100%;
}

.modern-button-icon {
    margin-right: 0.5rem;
}

/* Original Button Styles */
button,
.btn-primary,
.button-outline,
.readmore-button,
.control-button,
.cta-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.button-outline {
    background-color: #ffffff;
    color: var(--deep-teal);
    border-style: solid;
    border-width: 3px 3px 3px 3px;
    border-color: var(--deep-teal);
}

.button-outline:hover {
    background-color: var(--deep-teal);
    color: #ffffff;
    border-style: solid;
    border-width: 3px 3px 3px 3px;
    border-color: #ffffff;
}

.button-outline a {
    color: var(--deep-teal);
    text-decoration: none;
}

.button-outline:hover a,
.button-outline a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Tertiary button style */
.button-tertiary {
    background-color: transparent;
    color: var(--deep-teal);
    border: none;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-tertiary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--warm-amber);
    transition: width 0.3s ease;
}

.button-tertiary:hover::after {
    width: 100%;
}

.control-button {
    background-color: var(--slate-blue);
    color: #ffffff;
    border: none;
}

.control-button:hover {
    background-color: var(--deep-teal);
    color: #ffffff;
}

.btn-primary,
.readmore-button,
.cta-button {
    background-color: var(--coral);
    color: var(--deep-teal);
    border: none;
    font-weight: 600;
}

/* Button hover effects are handled by the pseudo-element approach below */

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e55c5c; /* Updated to match style guide */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button span,
.cta-button i,
.cta-button a {
    position: relative;
    z-index: 2;
}

.control-button a,
.control-button a:hover {
    color: #ffffff;
    text-decoration: none;
}

.btn-primary a,
.readmore-button a,
.cta-button a,
.readmore-button a:hover,
a.readmore-button:hover,
.cta-button a:hover {
    color: var(--deep-teal);
    text-decoration: none;
}


.cta-button-icon {
    padding: 0 10px 0 0;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.icon-green {
    color: var(--sage-green);
}

.icon-white {
    color: #ffffff;
}

.icon-dark {
    color: var(--deep-teal);
}

ul.pager li a {
    border: none;
}

.pager .next .control-button i {
    padding-left: 10px;
}
.pager .previous .control-button i {
    padding-right: 10px;
}

/***************
 * Misc
 */
 .postlist .listdate:before {
    content: "(";
}

.postlist .listdate:after {
    content: ")";
}

.list-unstyled span.list-unstyled-text {
    padding-left: 10px;
}

/***************
 * Layout, grid and columns
 */

.above-fold {
    margin: 0 0 150px 0;
}

section {
    margin: 0;
}

figure {
    margin: 25px 0 25px 0;
}

/* Fixed-height columns */
.column-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.column-content > * {
    flex: 0 0 auto;
}

.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}
.col-eq-height {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.col-eq-height > * {
    flex: 0 0 auto;
}
.row-spacing {
    margin-bottom: 20px;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 15px;
}

.icon-container i {
    font-size: 2em;
}

/* Listing page card grid */
.card {
    border-radius: 8px;
    background-color: var(--white);
    border: 1px solid var(--slate-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.card-text {
    flex-grow: 1;
    color: var(--slate-blue);
    font-family: 'Source Sans Pro', sans-serif;
}

.text-right {
    text-align: right;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-auto {
    margin-top: auto;
}


/***************
* Page footer
*/

/* Footer menu */
.footer-menu section {
    margin: 20px 0 20px 0;
}

.footer-menu {
    background-color: var(--deep-teal);
    color: #fff;
    padding: 20px 0;
}

.footer-menu .container {
    padding: 0;
}

.footer-menu h5 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu ul li {
    margin-bottom: 10px;
    font-family: 'Source Sans Pro', sans-serif;
}

.footer-menu ul li a {
    color: var(--soft-cream);
    text-decoration: none;
}

.footer-menu ul li a:hover {
    color: var(--warm-amber);
    text-decoration: underline;
}

.footer-menu .social-icons i {
    margin-right: 8px;
}

.footer-menu .badge {
    padding-top: 10px;
}

div.footer-menu a {
    color: var(--warm-amber);
}

div.footer-menu a:hover {
    color: var(--coral);
}

div.footer-menu .icon-container {
    display: block;
    justify-content: left;
    align-items: left;
    margin: 0;
}

div.footer-menu .icon-container a.white .group-icon,
div.footer-menu .icon-container a.icon-white .group-icon {
    color: #ffffff;
}

div.footer-menu .icon-container a:hover .group-icon {
    color: var(--warm-amber);
}

div.footer-menu .icon-container a.icon-white i.group-icon {
    font-size: 20px;
}

/* Modern Footer */
.modern-footer {
    background-color: var(--deep-teal);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.modern-footer .container {
    padding: 0;
}

/* Add extra padding to the middle column in the footer */
.modern-footer .col-md-4:nth-child(2) {
    padding-left: 2rem;
    padding-right: 2rem;
}

.modern-footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.modern-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: underline;
    margin-bottom: 0.75rem;
}


.footer-bottom a {
    display: initial;
}

.modern-footer a:hover {
    color: var(--warm-amber);
    text-decoration: underline;
}

.modern-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

/* Remove bullets from Services list in footer */
.modern-footer ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.modern-footer ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.footer-social a i {
    position: relative;
    z-index: 2;
}

.footer-social a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--warm-amber);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: white; /* Ensure icon remains white and visible */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow for depth */
    text-decoration: none; /* Override the general footer link hover underline */
}

.footer-social a:hover::after {
    opacity: 0.7; /* Semi-transparent overlay */
}

/* Original Footer */
.footer {
    background-color: var(--slate-blue);
    padding: 0;
    text-align: center;
    color: #ffffff;
}

.footer,
.footer .copyright {
    color: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
}

footer.footer a,
div.footer-menu li a {
    color: var(--warm-amber);
}

footer.footer a:hover,
div.footer-menu li a:hover {
    color: var(--coral);
    text-decoration: underline;
}

/* Bottom contact section */
.footer-contact .row {
    margin: 0;
}

.footer-contact {
    background-color: var(--deep-teal);
    margin: 50px 0 0 0;
    padding: 0;
}
.footer-contact .left-section {
    background-image: url('/images/programmer-coffee-laptop-unsplash-01.jpg');
    background-size: cover;
    background-position: center;
    /* height: 100%; */
    height: 400px;
}
.footer-contact .right-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-menu .icon-container {
    font-size: 18px;
}

/* Fix right margin that causes bottom scrollbar
 * to appear when the viewport width is smaller
 * than around 1150 px
 */
.footer-menu .row {
    margin: 0 !important;
}


/***************
 * Homepage
 */

h1.front-heading {
    font-size: 60px;
    font-weight: bold;
    text-align: center;
 }

h2.front-heading,
h3.front-heading,
.front-intro {
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
 }

 #about h2,
 #contact h2,
 #testimonials h2,
 #services h2 {
    margin-top: 3rem;
}

h2.front-heading,
.front-intro {
    font-size: 30px;
}

h3.front-heading {
    font-size: 20px;
}

.front-banner-wrapper {
    /* height: 400px; */
    margin: 20px 0 20px 0;
    overflow: hidden;
}

.front-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.grid-container {
    margin: 40px 0 40px 0
}

.grid-heading {
    font-family: 'Montserrat', sans-serif;
    color: #212529;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.group-icon {
    color: var(--coral);
    font-size: 1.5em;
    margin: 0 5px;
}

/* Homepage drupal-to-wordpress-migration-service section */
#drupal-to-wordpress-migration-service .position-relative {
    position: relative;
    padding-right: 0;
}

#drupal-to-wordpress-migration-service .position-relative img {
    width: 100%;
}

#drupal-to-wordpress-migration-service .expert-advice-row {
    position: absolute;
    bottom: -25px;
    right: 0;
    left: 0;
    z-index: 10;
}

#drupal-to-wordpress-migration-service .expert-advice-column {
    background-color: var(--deep-teal);
    color: white;
    padding: 20px;
    width: 100%;
}

.migration-service-row .col-12 {
    padding-right: 0;
}
.row.migration-code-image,
.row.expert-advice-row {
    margin-right: 0;
}

#drupal-to-wordpress-migration-service .empty-column {
    background-color: transparent;
}

.migration-service-info {
    padding: 0 20px 0 25px;
}

#drupal-to-wordpress-migration-service .expert-advice-column h3 {
    margin-bottom: 15px;
}

#drupal-to-wordpress-migration-service ul {
    margin-top: 20px;
}

#drupal-to-wordpress-migration-service li {
    margin-bottom: 10px;
}

#drupal-to-wordpress-migration-service .far {
    color: var(--warm-amber);
    margin-right: 10px;
}

/***************
 * Tag page
 */

 article.tagpage > header > div.metadata {
    margin: 25px 0 0 0;
    text-align: right;
}

/***************
 * Embedded media
 */
.youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
}


/***************
 * Carousel
 */
 .siema {
    max-width: 100%;
    height: auto;
}

.siema-small {
    max-width: 400px;
    height: 300px;
}

.siema-medium {
    max-width: 800px;
    height: 600px;
}

.siema-large {
    max-width: 1200px;
    height: 800px;
}

.siema img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 912px) {
    .siema-medium {
        max-width: 600px;
        height: auto;
    }

    .siema-large {
        max-width: 800px;
        height: auto;
    }
}

@media (max-width: 576px) {
    .siema-medium {
        max-width: 400px;
        height: auto;
    }

    .siema-large {
        max-width: 500px;
        height: auto;
    }
}

/***************
 * Responsive styles
 */
@media (max-width: 1200px) {
    h1.front-heading {
        font-size: 50px;
    }
}

@media (max-width: 912px) {

    h1.front-heading {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    header {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    h1,
    h1.front-heading {
        font-size: 28px;
    }
    h2,
    h2.front-heading,
    h1.entry-title {
        font-size: 24px;
    }
    h3,
    h3.grid-heading {
        font-size: 18px;
        font-weight: bold;
    }
    .front-intro,
    .intro {
        font-size: 28px;
    }

    .row-spacing {
        margin-bottom: 0;
    }

    .migration-code-image .col-12,
    .migration-service-row .col-md-6 {
        padding-left: 0;
    }

    .row.mb-4.migration-code-image {
        margin-bottom: 0 !important;
    }

    #drupal-to-wordpress-migration-service .expert-advice-row {
        position: static;
        margin-top: 0;
    }

    #drupal-to-wordpress-migration-service .empty-column {
        display: none;
    }

    #drupal-to-wordpress-migration-service .expert-advice-column {
        margin-bottom: 20px;
    }

    #drupal-to-wordpress-migration-service .expert-advice-column {
        width: 100%;
        margin-left: 0;
    }

    #contact .right-section {
        padding: 20px;
    }

    #menu-footer-navigation > li,
    .footer-menu .badge,
    .footer-menu p,
    .footer-menu .icon-container,
    .footer p {
        padding: 0 10px 0 10px;
    }
}

@media (max-width: 430px) {

    .above-fold {
        margin: 0 0 0 0;
    }

    .front-intro,
    .intro {
        font-size: 18px;
        padding-left: 0;
        padding-right: 0;
    }
}


/*
 * Contact encoding
 */
.email-xfp,
.s0ef3-x {
    display: none;
}
.contact-s0ef3 {
    display: inline-flex;
    flex-wrap: nowrap;
    isolation: isolate;
    font-variant-numeric: slashed-zero tabular-nums;
    font-kerning: none;
}

.contact-s0ef3 .s0ef3-x {
    display: none;
}

/* Multi-layer transforms */
[class^="s0ef3-"] {
    display: inline-block;
    white-space: pre;
    text-transform: full-width;
    font-feature-settings: "ss01", "zero";
    letter-spacing: 0.01em;
    direction: rtl;
}

.s0ef3-a {
    writing-mode: sideways-lr;
    text-orientation: upright;
}

.s0ef3-a::before {
    content: "\0068\0065\006C";
    direction: rtl;
}
.s0ef3-a::after {
    content: "\006C\006F beans";
    direction: rtl;
}

.s0ef3-c {
    font-variant-position: sub;
    text-decoration-style: dashed;
    direction: ltr;
}

/* That's just noise */
.contact-s0ef3::before,
.contact-s0ef3::after {
    content: "\2060\200B\200C";
    display: inline;
    user-select: none;
}

/* Print considerations */
@media print {
    .contact-s0ef3 {
        unicode-bidi: normal;
        direction: ltr;
    }
}


/***************
 * Openstreetmap
 */
.map-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    border: 0;
    width: 100%;
    height: 100%;
}


/***************
 * Animations and Effects
 */

/* Subtle animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in for lists */
.stagger-fade-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-fade-in.visible > *:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in.visible > *:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in.visible > *:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in.visible > *:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in.visible > *:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in.visible > *:nth-child(n+6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Text highlight effect */
.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(247, 179, 43, 0.3);
    z-index: -1;
    transition: height 0.3s ease;
}

.text-highlight:hover::after {
    height: 100%;
}

/* Mark tag styling for testimonial highlights */
mark {
    background-color: rgba(247, 179, 43, 0.3);
    padding: 2px 0;
    color: inherit;
}


/***************
 * Modern Layout Components
 */
 .centred-heading {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--deep-teal);
    font-size: 1.8rem;
    font-weight: 600;
}

/* Modern Card Components */
.modern-card {
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid rgba(79, 109, 122, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.modern-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.modern-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--deep-teal);
}

.modern-card-text {
    flex-grow: 1;
    color: var(--slate-blue);
    margin-bottom: 1.5rem;
}

/* Services Cards */
.services-section {
    padding: 4rem 0;
    background-color: var(--soft-cream);
}

.services-heading {
    text-align: center;
    margin-bottom: 3rem;
}


section {
    padding: 0;

}

.section-grey {
    background-color: #fafafa;
}

.section-grey.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.section-grey.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px;
}

.section-white {
    background-color: #ffffff;
    padding: 50px 15px;
}


.section-cream {
    background-color: var(--soft-cream);
}

.section-cream.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.section-cream.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-blue {
    background-color: #3b5f8a;
    color: white;
}

.section-blue.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.section-blue.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px;
}


/* Testimonials Section */
#testimonials {
    padding-bottom: 4rem;
}


/* Featured Testimonial Section */
.featured-testimonial {
    padding: 0;
    text-align: center;
    position: relative;
}

.featured-testimonial-quote {
    font-size: 5rem;
    color: #38b2ac;
    margin-bottom: 1.5rem;
    line-height: 1;
    font-family: 'Georgia', serif;
}

.featured-testimonial-text {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.featured-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.featured-testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid #38b2ac;
}

.featured-testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-testimonial-author-info {
    text-align: left;
}

.featured-testimonial-author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.featured-testimonial-author-title {
    font-size: 0.9rem;
    color: #38b2ac;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #fff;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.contact-form-section.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.contact-form-container {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 4rem auto;
    max-width: 1100px;
}

.contact-form-left {
    flex: 1;
    background-color: var(--deep-teal);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.contact-form-right {
    flex: 1;
    background-color: var(--soft-cream);
    padding: 3rem;
    min-width: 300px;
}

/* Calendly widget styling */
.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
}

.contact-form-left h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-form-left p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.contact-benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
}

.contact-benefits-list li i {
    color: var(--warm-amber);
    margin-right: 1rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-social a i {
    position: relative;
    z-index: 2;
}

.contact-social a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--warm-amber);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.contact-social a:hover {
    transform: translateY(-3px);
    color: white; /* Ensure icon remains white and visible */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow for depth */
}

.contact-social a:hover::after {
    opacity: 0.7; /* Semi-transparent overlay */
}

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

.consultation-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-teal);
    font-weight: 500;
}

.consultation-form input,
.consultation-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(79, 109, 122, 0.2);
    border-radius: 4px;
    background-color: white;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 3px rgba(26, 83, 92, 0.1);
}

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

.consultation-submit {
    background-color: var(--coral);
    color: var(--deep-teal);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.consultation-submit:hover {
    background-color: #e05c5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
    color: var(--deep-teal);
}

@media (max-width: 992px) {
    .contact-form-container {
        flex-direction: column;
        margin: 3rem auto;
    }

    .contact-form-left,
    .contact-form-right {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    /* Improve contact form spacing for mobile */
    .contact-form-container {
        margin: 2rem auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .contact-form-left,
    .contact-form-right {
        padding: 1.5rem;
        width: 100%;
    }

    .contact-form-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .contact-form-left h2 {
        font-size: 1.75rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .contact-form-left p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-benefits-list {
        margin-bottom: 1.5rem;
    }

    .contact-benefits-list li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    /* Ensure even spacing for Calendly widget */
    .calendly-inline-widget {
        padding: 0;
        margin: 0;
        width: 100% !important;
        min-width: 100% !important;
        height: 600px !important;
    }
}

.client-profile-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.client-profile-card {
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid rgba(79, 109, 122, 0.1);
    border-top: 10px solid #4F6D7A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.client-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.client-profile-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.client-profile-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--deep-teal);
    font-weight: 600;
}

.client-profile-card-text {
    color: var(--slate-blue);
    margin-bottom: 1.5rem;
}

.client-profile-list {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    list-style: none;
    padding-left: 0;
}

.client-profile-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--slate-blue);
}

.client-profile-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--warm-amber);
    font-weight: bold;
}

.client-profile-decision-makers {
    font-style: italic;
    color: var(--slate-blue);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Client Logos Section */
.client-logos-section {
    padding: 4rem 0 5rem;
    background-color: #ffffff;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

.client-logos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    place-items: center;
}

.client-logo {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.client-logo:hover {
    transform: scale(1.05);
}

.client-logo img {
    max-height: 100%;
    max-width: 250px;
    object-fit: contain;
}

.sj39-logo {
    background-color: #282a2b;
    border-radius: 8px;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .client-logos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .client-logos-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        height: 80px;
        margin: 0 1rem;
    }

    .client-logo img {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .client-logos-container {
        grid-template-columns: 1fr;
    }

    .client-logo {
        height: 70px;
    }

    .client-logo img {
        max-width: 180px;
    }
}

.services-card {
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid rgba(79, 109, 122, 0.1);
    border-top: 10px solid #4F6D7A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.services-card-icon {
    font-size: 2.5rem;
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.services-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services-card-title {
    font-size: 1.5rem;
    color: var(--deep-teal);
    font-weight: 600;
}

h3.services-card-title {
    margin-top: 0;
}

.services-card-text {
    color: var(--slate-blue);
    margin-bottom: 0;
}

.services-benefits {
    flex-grow: 1;
}

.services-benefits h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--deep-teal);
    font-weight: 600;
}

.services-benefits ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.services-benefits li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--slate-blue);
}

.services-benefits li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--warm-amber);
}

/* Hero section with gradient background */
.hero-section {
    background: linear-gradient(90deg, #3a6073 0%, #16a085 100%);
    color: white;
    padding: 8rem 0 6rem; /* Desktop padding with gap from navbar for regular pages */
    position: relative;
    overflow: hidden;
    margin-top: 0;
    text-align: left;
}

/* Full-width hero section for homepage */
.hero-section.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    padding-top: 3rem; /* Adjusted padding for homepage to be flush with navbar */
    overflow-x: hidden;
}

.hero-section .container,
.hero-section.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Hero profile image */
.hero-profile-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 200px;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-profile-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 5;
}

/* Responsive adjustments for hero profile image */
@media (max-width: 992px) {
    .hero-profile-image {
        width: 180px;
    }

    .hero-content h1.entry-title {
        margin-right: 190px; /* Ensure text doesn't overlap with image */
    }
}

@media (max-width: 768px) {
    .hero-profile-image {
        width: 150px;
        position: relative;
        float: right;
        margin: 0 0 1rem 1rem;
        top: auto;
        right: auto;
    }

    .hero-content h1.entry-title {
        margin-right: 0; /* Reset margin */
    }

    .hero-content {
        clear: both;
    }
}

@media (max-width: 576px) {
    .hero-profile-image {
        width: 120px;
        margin: 0 0 1rem 1rem;
        float: right;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="0" y="0"/><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="50" y="50"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: white;
    position: relative;
    z-index: 2;
    font-weight: 600;
    max-width: 600px;
}

/* Entry title in hero section */
.hero-section .entry-title {
    text-align: left;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    max-width: 700px;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.hero-section .modern-button {
    position: relative;
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Modern grid system */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.modern-grid-item {
    display: flex;
    flex-direction: column;
}

/* Two-column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

/***************
 * Responsive Optimizations
 */

@media (max-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1140px;
    }

}


/* Mobile Navigation */
@media (max-width: 991px) {

    .navbar .container {
        max-width: 900px;
        padding: 0 30px;
    }

    .modern-nav {
        background-color: #FFFFFF;
        position: fixed; /* Fixed position on mobile */
        padding: 0;
        height: 4.5rem; /* Fixed height for mobile to ensure consistent spacing */
        display: flex;
        align-items: center;
        width: 100%;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .modern-nav .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .modern-nav .navbar-collapse {
        background-color: #FFFFFF;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .modern-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(79, 109, 122, 0.1);
    }

    .modern-nav .nav-link:last-child {
        border-bottom: none;
    }

    .modern-nav .nav-link::after {
        display: none;
    }

    article.post-text.storypage.notitle .hero-section.full-width{
        padding-top:3rem;
        margin-top:0;
    }

    /* Ensure content starts right after navbar */
    #content {
        margin-top: 4.5rem;
    }

    /* Adjust case study info boxes on mobile */
    .case-study-info-box {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .case-study-header .row > div {
        margin-bottom: 1rem;
    }

    .case-study-header .row > div:last-child {
        margin-bottom: 0;
    }

    /* Adjust story page header spacing on mobile */
    .storypage header,
    .story-header {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    /* Adjust entry title size on mobile */
    .storypage header .entry-title,
    .story-header .entry-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .entry-title {
        font-size: 2.75rem;
        max-width: 100%;
    }

    .hero-section p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-section.full-width .container {
        padding: 0 30px;
    }

    /* Story header responsive styles */
    .story-header .entry-title {
        font-size: 2.25rem;
    }

    .story-header .page-description {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .modern-footer {
        padding: 3rem 0 1.5rem;
    }

    .modern-card-body {
        padding: 1.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {

    .navbar .container {
        padding: 0 30px;
    }

    .modern-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .entry-title {
        font-size: 2.25rem;
    }

    /* Story header mobile styles */
    .story-header .entry-title {
        font-size: 1.75rem;
    }

    .story-header .page-description {
        font-size: 1rem;
    }

    .story-header .metadata {
        font-size: 0.9rem;
    }

    .modern-button {
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/***************
 * Case Study Styles
 */

/* Case Study Header */
.case-study-header {
    background: #1A535C; /* Deep Teal background */
    color: white;
    margin-top: 3.3rem; /* Add space below the navbar */
    padding: 3rem 0; /* Vertical padding */
    position: relative;
}

/* Full-width case study header */
.case-study-header.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

/* Story Header */
.story-header {
    background: #1A535C; /* Deep Teal background */
    color: white;
    margin-top: 3.3rem; /* Add space below the navbar */
    padding: 3rem 0; /* Vertical padding */
    position: relative;
}

/* Full-width story header */
.story-header.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

/* Style the entry title in story pages */
.story-header h1.entry-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

/* Style the page description */
.story-header .page-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 80%;
}

/* Style metadata in story header */
.story-header .metadata {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.story-header .page-meta,
.story-header .posted {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    text-align: left;
}

.story-header a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

.story-header a:hover {
    color: var(--warm-amber);
    opacity: 1;
}

/* Back to Case Studies Link */
.back-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    color: white;
    text-decoration: none;
    transform: translateX(-5px);
}

.back-link i {
    margin-right: 5px;
}

/* Case Study Title */
.case-study-header .entry-title {
    margin-bottom: 3rem;
    text-align: left;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Case Study Info Boxes */
.case-study-info-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-info-box:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.case-study-info-box p {
    margin-bottom: 0.25rem;
    color: white;
    opacity: 0.9;
}

.case-study-info-box .client-industry {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Case Study Content */
.case-study-content {
    padding-top: 3rem;
}

.case-study-content h2 {
    color: var(--deep-teal);
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.case-study-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--warm-amber);
}

.case-study-content h3 {
    color: var(--deep-teal);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.case-study-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-study-content ul,
.case-study-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.case-study-content li {
    margin-bottom: 0.5rem;
}

.case-study-content blockquote {
    border-left: 4px solid var(--warm-amber);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--slate-blue);
}

@media (max-width: 1250px) {
    .case-study-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Specific styling for The Challenge section */
.case-study-content h2:first-child {
    margin-top: 0;
}

/* Key Outcomes Section */
.key-outcomes {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.key-outcomes:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.key-outcomes h2 {
    color: var(--deep-teal);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.key-outcomes-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.key-outcomes-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.key-outcomes-list li:last-child {
    margin-bottom: 0;
}

.key-outcomes-list li:before {
    content: "\f058"; /* FontAwesome check-circle icon */
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--coral);
    font-size: 1.2rem;
}

/* Case Study Cards for Listing Page */
.case-study-card {
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid rgba(79, 109, 122, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.case-study-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Responsive adjustments for case study cards */
@media (max-width: 768px) {
    .case-study-card-body {
        padding: 1.5rem;
    }

    .case-study-card-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .case-study-card-body {
        padding: 1.25rem;
    }

    /* Make case study cards take full width on mobile */
    .col-md-6.mb-4 {
        width: 100%;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

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

    .case-study-card-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .case-study-industry-tag {
        padding: 4px 10px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .case-study-client {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .case-study-description {
        font-size: 0.95rem;
    }
}

/* Case Study Card Title Link */
.case-study-title-link {
    color: var(--deep-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-title-link:hover {
    color: var(--coral);
    text-decoration: none;
}

/* Case Study Card Detail Link */
.case-study-detail-link {
    color: var(--slate-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-detail-link:hover {
    color: var(--deep-teal);
    text-decoration: none;
}

.case-study-industry-tag {
    display: inline-block;
    background-color: #f2f2f2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    width: fit-content;
}

.case-study-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--deep-teal);
    font-weight: 600;
    line-height: 1.3;
}

.case-study-client {
    margin-bottom: 15px;
}

.case-study-section-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--deep-teal);
}

.case-study-description {
    margin-bottom: 20px;
    color: var(--slate-blue);
}

.case-study-read-more {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--deep-teal);
    border-radius: 4px;
    color: var(--deep-teal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.case-study-read-more:hover {
    background-color: var(--deep-teal);
    color: white;
    text-decoration: none;
}

/* Case Study CTA Section */
.case-study-cta {
    background-color: #4F6D7A; /* Slate Blue */
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
    margin-bottom: 3rem; /* Add bottom margin */
    text-align: center;
    border-radius: 8px; /* Add rounded corners */
    overflow: hidden; /* Ensure content respects the border radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    transition: box-shadow 0.3s ease; /* Smooth transition for hover effect */
}

.case-study-cta:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Slightly enhanced shadow on hover */
}

.case-study-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.case-study-cta p {
    color: white;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.case-study-cta .cta-button-container {
    margin-top: 1.5rem;
}

.case-study-cta .cta-button {
    background-color: var(--coral);
    color: var(--deep-teal);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.case-study-cta .cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e05c5c;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.case-study-cta .cta-button:hover::after {
    opacity: 1;
}

.case-study-cta .cta-button:hover {
    color: var(--deep-teal);
    text-decoration: none;
}

.case-study-cta .cta-button span,
.case-study-cta .cta-button i {
    position: relative;
    z-index: 2;
}

/* Case Study Responsive Styles */
@media (max-width: 768px) {
    .case-study-header {
        margin-top: 4rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

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

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

    .case-study-header .entry-title {
        font-size: 2rem;
    }

    .case-study-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .case-study-cta h2 {
        font-size: 1.85rem;
    }

    .case-study-cta p {
        max-width: 500px;
    }

    .key-outcomes {
        padding: 2rem;
        margin: 2rem 0;
    }

    .key-outcomes h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .case-study-header {
        margin-top: 3.5rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .back-link {
        margin-bottom: 1.5rem;
    }

    .case-study-header .entry-title {
        font-size: 1.75rem;
    }

    .case-study-cta {
        padding: 2rem 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .case-study-cta h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .case-study-cta p {
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 1.25rem;
    }

    .case-study-cta .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }

    .key-outcomes {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .key-outcomes h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .key-outcomes-list li {
        font-size: 0.95rem;
        padding-left: 1.75rem;
    }

    .key-outcomes-list li:before {
        font-size: 1rem;
    }
}

/* Fade-in animation for case study elements */
.case-study-header .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays for different elements */
.case-study-header .back-link.fade-in {
    animation-delay: 0.1s;
}

.case-study-header .entry-title.fade-in {
    animation-delay: 0.2s;
}

.col-md-4:nth-child(1) .case-study-info-box.fade-in {
    animation-delay: 0.4s;
}

.col-md-4:nth-child(2) .case-study-info-box.fade-in {
    animation-delay: 0.6s;
}

.col-md-4:nth-child(3) .case-study-info-box.fade-in {
    animation-delay: 0.8s;
}

/* Case Study Testimonial Styling */
.case-study-testimonial {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--warm-amber);
}

.case-study-testimonial h3 {
    color: var(--deep-teal);
    margin-top: 0 !important; /* Force override the general h3 styling */
    font-size: 1.5rem;
    padding-bottom: 0.75rem;
    /* Override general h3 styling */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    position: relative; /* Ensure it's part of the normal flow */
}

.case-study-testimonial-content {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--slate-blue);
    line-height: 1.7;
    position: relative;
    padding-left: 1rem;
}

.case-study-testimonial-content::before {
    content: "\201C";
    font-family: 'Georgia', serif;
    font-size: 4rem;
    color: var(--warm-amber);
    opacity: 0.3;
    position: absolute;
    left: -1.5rem;
    top: -1.5rem;
}

.case-study-testimonial-author {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--deep-teal);
    margin-top: 1.5rem;
    text-align: right;
}

@media (max-width: 768px) {
    .case-study-testimonial {
        padding: 2rem;
        margin: 2rem 0;
    }

    .case-study-testimonial-content {
        font-size: 1rem;
        padding-left: 0.5rem;
    }

    .case-study-testimonial-content::before {
        font-size: 3rem;
        left: -1rem;
        top: -1rem;
    }
}
