/* Custom Typography Styles */
/* This file overrides Bootstrap and Agency theme typography */

/* Section Heading Styles */
h2.section-heading {
    font-size: 40px !important;
    border-bottom: 2px solid #333 !important;
}

/* H1 Styles */
h1 {
    color: #EA715E !important;
    font-family: 'Caudex', serif !important;
    font-size: 56px !important;
    text-align: center !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

/* H2 Styles */
h2 {
    color: #2c2787 !important;
    font-family: 'Caudex', serif !important;
    font-size: 45px !important;
    text-align: center !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    border-bottom: 3px solid #2c2787 !important;
    padding-bottom: 10px !important;
}

/* H3 Styles */
h3 {
    color: #2c2787 !important;
    font-family: 'Caudex', serif !important;
    font-size: 30px !important;
    text-align: center !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
}

/* H3 without underline (for subsections) */
h3.no-underline {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* H4 Styles */
h4 {
    color: #2c2787 !important;
    font-family: 'Caudex', serif !important;
    font-size: 20px !important;
    text-align: left !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

/* H5 Styles */
h5 {
    color: #000 !important;
    font-family: 'Caudex', serif !important;
    font-size: 18px !important;
    text-align: left !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

/* Paragraph Styles */
p {
    color: #000 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin-bottom: 20px !important;
}

/* Center-aligned subtitle paragraphs */
p.subtitle, 
.text-center p {
    text-align: center !important;
}

/* List Styles */
ul, ol {
    color: #000 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    padding-left: 20px !important;
}

ul li, ol li {
    margin-bottom: 10px !important;
}

/* Override Bootstrap's text-transform for headings */
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
}

/* Ensure proper spacing for lists within sections */
div ul, div ol {
    margin-bottom: 30px !important;
}

/* Override any Bootstrap heading margins */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0 !important;
}

/* Ensure proper font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix navigation overlap for pages */
section {
    padding-top: 150px !important;
}

/* Mobile: Reduce section padding for better spacing */
@media (max-width: 768px) {
    section {
        padding-top: 30px !important;
        padding-bottom: 50px !important;
    }
}

/* Ensure proper spacing for main content */
.container {
    margin-top: 20px !important;
}

/* Deliverable Features Grid */
.deliverables-grid,
section .deliverables-grid,
.container .deliverables-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
}

.deliverable-tile {
    background: #fff;
    border: 2px solid #2c2787;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44,39,135,0.1);
}

.deliverable-tile:hover {
    transform: translateY(-5px);
    border-color: #EA715E;
    box-shadow: 0 8px 25px rgba(234,113,94,0.2);
}

.deliverable-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.deliverable-tile h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    text-align: center !important;
}

/* Image section headings - specific styling to avoid conflicts */
.image-section-heading {
    margin: 15px 0 !important;
    font-size: 18px !important;
    color: #2c2787 !important;
    font-weight: bold !important;
    text-align: center !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}



        /* Background Image Modal Styling */
        .background-image {
            cursor: pointer;
            border: 2px solid #2c2787;
            border-radius: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(44,39,135,0.1);
        }

        .background-image:hover {
            border-color: #EA715E;
            box-shadow: 0 8px 25px rgba(234,113,94,0.2);
        }

        /* Portfolio Image Sizing */
        #portfolio .portfolio-item img,
        #portfolio .portfolio-item .portfolio-link img {
            width: 100% !important;
            height: 250px !important;
            object-fit: cover !important;
            object-position: center !important;
            max-width: none !important;
            border-bottom: 2px solid #2c2787 !important;
        }

        /* Fix Intro Heading Capitalization */
        header .intro-text .intro-heading {
            text-transform: none !important;
        }

        /* Skills Section Subtitle Spacing */
        #skills .section-subheading {
            margin-bottom: 60px !important;
        }

        /* Skills Section Headings */
        #skills .skills-heading {
            text-align: center !important;
        }

        /* Mobile Skills Section Spacing */
        @media (max-width: 767px) {
            #skills .col-md-4 {
                margin-bottom: 40px;
            }
            
            #skills .col-md-4:last-child {
                margin-bottom: 0;
            }
        }

        /* Contact Section Mobile Fixes - Working WITH Bootstrap */
        @media (max-width: 767px) {
            /* Center the form container */
            section#contact form {
                margin: 0 auto !important;
                max-width: 90% !important;
            }
            
            /* Ensure button is centered */
            section#contact .btn-xl {
                margin: 0 auto !important;
                display: block !important;
            }
        }



        /* New Portfolio Tile Styling - Matching Deliverable Features Design */
        #portfolio .portfolio-item {
            margin: 0 0 20px;
        }

        #portfolio .row > .col-md-4 {
            padding: 0 10px;
        }

        #portfolio .portfolio-item .portfolio-link {
            text-decoration: none;
            display: block;
        }

        #portfolio .portfolio-item .portfolio-tile {
            cursor: pointer;
        }

        #portfolio .portfolio-item .portfolio-cta-link {
            text-decoration: none;
            display: block;
        }



        #portfolio .portfolio-item .portfolio-tile {
            background: white;
            border: 2px solid #2c2787;
            border-radius: 8px;
            padding: 5px 5px 0 5px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-height: 350px;
        }

        #portfolio .portfolio-item .portfolio-tile:hover {
            border-color: #EA715E;
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        /* Fixed-size image container using Bootstrap grid */
        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper {
            height: 170px;
            margin: 15px auto;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
        }

        /* Create a pseudo-element overlay that covers the entire wrapper */
        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 999;
            pointer-events: none;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper:hover::before {
            opacity: 1;
        }

        /* Responsive images with object-fit: contain */
        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 4px;
            transition: all 0.3s ease;
            border: none;
            outline: none;
            box-shadow: none;
            position: relative;
        }

        /* Custom image widths for specific projects */
        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-client-onboarding {
            width: 150px;
            height: 250px;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-gas-safety-assessment {
            width: 120px;
            height: 250px;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-job-hunt-manager {
            width: 270px;
            height: 250px;
        }

        /* Override any existing image borders */
        #portfolio .portfolio-item .portfolio-tile img.img-responsive,
        #portfolio .portfolio-item .portfolio-tile img.img-centered {
            border: none !important;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper .portfolio-overlay {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background-color: transparent !important;
            color: white !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            opacity: 0 !important;
            transition: opacity 0.3s ease !important;
            border-radius: 4px !important;
            pointer-events: none !important;
            z-index: 1000 !important;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper:hover .portfolio-overlay {
            opacity: 1 !important;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper .portfolio-overlay i {
            margin-bottom: 8px;
            color: #EA715E;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-image-wrapper .portfolio-overlay span {
            font-weight: bold;
            font-size: 14px;
        }

        /* Portfolio tile titles and subtitles - more specific selectors */
        #portfolio .portfolio-item .portfolio-tile .portfolio-title,
        #portfolio .portfolio-item .portfolio-tile h4.portfolio-title {
            color: #333;
            font-weight: bold;
            margin: 15px 0 5px 0;
            font-size: 18px;
            text-align: center !important;
            display: block;
            width: 100%;
            line-height: 1.2;
            padding: 20px 0 0 0;
        }

        #portfolio .portfolio-item .portfolio-tile .portfolio-subtitle,
        #portfolio .portfolio-item .portfolio-tile p.portfolio-subtitle {
            color: #666;
            font-style: normal;
            font-size: 14px;
            text-align: center !important;
            display: block;
            width: 100%;
            line-height: 1.2;
        }

        #portfolio .portfolio-item .portfolio-cta {
            text-align: center;
            margin: 15px 0 10px 0;
        }

        #portfolio .portfolio-item .portfolio-cta .cta-text {
            background-color: #EA715E;
            color: white;
            font-weight: bold;
            padding: 8px 16px;
            font-size: 14px;
            border-radius: 5px;
            display: inline-block;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        #portfolio .portfolio-item .portfolio-cta-link:hover .cta-text {
            background-color: white;
            color: #EA715E;
            border: 2px solid #EA715E;
            transform: scale(1.05);
        }



        #portfolio .portfolio-item .portfolio-caption {
            padding: 15px 10px !important;
            background-color: transparent !important;
        }

        #portfolio .portfolio-item .portfolio-caption h4 {
            color: #333 !important;
            font-weight: bold !important;
            margin-bottom: 5px !important;
        }

        #portfolio .portfolio-item .portfolio-caption p {
            color: #666 !important;
            font-style: normal !important;
            margin: 0 !important;
        }

        /* Projects Page Styling - Same as Portfolio */
        #projects .portfolio-item .portfolio-tile {
            background: white;
            border: 2px solid #2c2787;
            border-radius: 8px;
            padding: 5px 5px 0 5px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-height: 350px;
        }

        #projects .portfolio-item .portfolio-tile:hover {
            border-color: #EA715E;
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper {
            height: 170px;
            margin: 15px auto;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 999;
            pointer-events: none;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper:hover::before {
            opacity: 1;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 4px;
            transition: all 0.3s ease;
            border: none;
            outline: none;
            box-shadow: none;
            position: relative;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-client-onboarding {
            width: 150px;
            height: 250px;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-gas-safety-assessment {
            width: 120px;
            height: 250px;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-job-hunt-manager {
            width: 270px;
            height: 250px;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper .portfolio-overlay {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background-color: transparent !important;
            color: white !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            opacity: 0 !important;
            transition: opacity 0.3s ease !important;
            border-radius: 4px !important;
            pointer-events: none !important;
            z-index: 1000 !important;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper:hover .portfolio-overlay {
            opacity: 1 !important;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper .portfolio-overlay i {
            margin-bottom: 8px;
            color: #EA715E;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper .portfolio-overlay span {
            font-weight: bold;
            font-size: 14px;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-title,
        #projects .portfolio-item .portfolio-tile h4.portfolio-title {
            color: #333;
            font-weight: bold;
            margin: 15px 0 5px 0;
            font-size: 18px;
            text-align: center !important;
            display: block;
            width: 100%;
            line-height: 1.2;
            padding: 20px 0 0 0;
        }

        #projects .portfolio-item .portfolio-tile .portfolio-subtitle,
        #projects .portfolio-item .portfolio-tile p.portfolio-subtitle {
            color: #666;
            font-style: normal;
            font-size: 14px;
            text-align: center !important;
            display: block;
            width: 100%;
            line-height: 1.2;
        }

        #projects .portfolio-item .portfolio-cta {
            text-align: center;
            margin: 15px 0 10px 0;
        }

        #projects .portfolio-item .portfolio-cta .cta-text {
            background-color: #EA715E;
            color: white;
            font-weight: bold;
            padding: 8px 16px;
            font-size: 14px;
            border-radius: 5px;
            display: inline-block;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        #projects .portfolio-item .portfolio-cta-link:hover .cta-text {
            background-color: white;
            color: #EA715E;
            border: 2px solid #EA715E;
            transform: scale(1.05);
        }

        /* Portfolio CTA Container Styling */
        .portfolio-cta-container {
            margin-top: 40px;
            margin-bottom: 20px;
        }

        .portfolio-cta-container .btn {
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .portfolio-cta-container .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        /* Mobile Navigation Fixes */
        @media (max-width: 768px) {
            .navbar-collapse {
                border-top: 1px solid #e7e7e7;
                box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
            }
            
            .navbar-nav > li > a {
                padding: 10px 15px;
                border-bottom: 1px solid #e7e7e7;
            }
            
            .navbar-nav > li:last-child > a {
                border-bottom: none;
            }
            
            .navbar-toggle {
                display: block !important;
            }
            
            .navbar-collapse.collapse {
                display: none !important;
            }
            
            .navbar-collapse.collapse.in {
                display: block !important;
            }
            
            /* Ensure Projects link is visible on mobile */
            .navbar-nav > li > a[href="/projects.html"] {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
            }
            
            /* Fix mobile navigation z-index */
            .navbar-collapse.in {
                z-index: 1000 !important;
            }
            
            /* Ensure mobile navigation is properly visible */
            .navbar-collapse.in .navbar-nav {
                display: block !important;
                float: none !important;
                width: 100% !important;
            }
            
            .navbar-collapse.in .navbar-nav > li {
                display: block !important;
                float: none !important;
                width: 100% !important;
            }
            
            .navbar-collapse.in .navbar-nav > li > a {
                display: block !important;
                width: 100% !important;
                text-align: left !important;
            }
            
            /* Force mobile navigation to be visible when expanded */
            .navbar-collapse.in {
                overflow-y: visible !important;
                height: auto !important;
                max-height: none !important;
            }
            
            /* Ensure mobile navigation toggle works */
            .navbar-toggle:focus,
            .navbar-toggle:hover {
                background-color: transparent !important;
            }
            
            .navbar-toggle .icon-bar {
                background-color: #333 !important;
            }
            
            /* Debug mobile navigation */
            .navbar-collapse {
                transition: none !important;
            }
            
            .navbar-collapse.in {
                transition: none !important;
            }
            
                    /* Ensure mobile navigation is clickable */
        .navbar-nav > li > a {
            cursor: pointer !important;
            pointer-events: auto !important;
        }
    }

    /* Fix navbar overlap with page content */
    body {
        padding-top: 60px; /* Adjust based on your navbar height */
    }

    /* Alternative: Add margin to main content sections */
    section:first-of-type,
    .container:first-of-type {
        margin-top: 60px;
    }

    /* Specific fix for H1 headings */
    h1, .h1 {
        margin-top: 20px;
        padding-top: 20px;
    }

    /* Fix for project pages specifically */
    .project-page h1,
    .project-page .h1 {
        margin-top: 40px;
        padding-top: 20px;
    }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .deliverables-grid,
            section .deliverables-grid,
            .container .deliverables-grid {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 20px !important;
                margin: 40px 0 !important;
            }

            .deliverable-tile {
                padding: 15px;
            }

            .deliverable-tile img {
                height: 150px;
            }

            /* Projects page mobile responsive */
            #projects .portfolio-item .portfolio-tile {
                min-height: 300px;
            }

            #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper {
                height: 140px;
            }

            #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-client-onboarding,
            #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-gas-safety-assessment,
            #projects .portfolio-item .portfolio-tile .portfolio-image-wrapper.portfolio-image-job-hunt-manager {
                width: 100%;
                height: 200px;
            }
        }

/* Deliverable Modal */
.deliverable-modal {
    display: none;
    position: fixed;
    z-index: 1025;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding-top: 120px;
}

.deliverable-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.deliverable-modal img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.deliverable-modal h3 {
    color: #EA715E !important;
    margin-bottom: 15px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.deliverable-modal p {
    color: #ffffff !important;
    text-align: left;
    margin-bottom: 30px;
}

/* ===================================
   UTILITY CLASSES FOR INLINE STYLES
   ===================================
   These classes replace common inline styles
   found across project pages
   =================================== */

/* Section Spacing */
.section-spacing {
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-spacing-top {
    margin-top: 60px;
}

.section-spacing-bottom {
    margin-bottom: 60px;
}

/* Project Subtitle */
.project-subtitle {
    font-style: italic;
}

/* Image Sizing */
.img-size-35 {
    max-width: 35%;
    height: auto;
}

.img-size-40 {
    max-width: 40%;
    height: auto;
}

.img-size-50 {
    max-width: 50%;
    height: auto;
}

/* Image with Hover Effects */
.img-hover-effect {
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-hover-effect:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Deliverable Image Styling */
.deliverable-img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
}

/* Custom heights for specific deliverable images */
.deliverable-img.deliverable-img-application-notes {
    height: 400px !important;
}

.deliverable-img.deliverable-img-interview-form {
    height: 450px !important;
}

.deliverable-img.deliverable-img-company-form {
    height: 400px !important;
}

.deliverable-img.deliverable-img-add-application {
    height: 450px !important;
}

/* List Item Spacing */
.list-item-spacing {
    margin-bottom: 10px;
}

/* Text Styling */
.text-body {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.text-body-large {
    color: #000;
    font-size: 18px;
    line-height: 1.6;
}

/* Container Spacing */
.container-spacing {
    margin-bottom: 40px;
}

.container-spacing-small {
    margin-bottom: 30px;
}

.container-spacing-large {
    margin-bottom: 60px;
}

/* Padding and Margins */
.padding-top-30 {
    padding-top: 30px;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-bottom-30 {
    margin-bottom: 30px;
}

.margin-bottom-50 {
    margin-bottom: 50px;
}

/* Custom Button for Deliverable Tiles */
.deliverable-btn {
    background-color: #EA715E;
    border-color: #EA715E;
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.deliverable-btn:hover {
    background-color: #d65a4a;
    border-color: #d65a4a;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Overlay and Modal Utilities */
.overlay-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: clamp(12px, 2.5vw, 18px);
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    padding: 10px;
    line-height: 1.2;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 6px;
}

.modal-title {
    color: #EA715E !important;
    margin-bottom: 15px;
    text-align: center !important;
}

.modal-description {
    color: #333;
    line-height: 1.6;
}

.modal-close-btn {
    background-color: #EA715E;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

/* ===================================
   DELIVERABLE FEATURES STYLES
   ===================================
   Styles for the deliverable features grid and tiles
   =================================== */

/* Video Tile Styling */
.video-tile {
    background: white;
    border: 2px solid #2c2787;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-tile:hover {
    border-color: #EA715E;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-tile h4 {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.video-tile a {
    text-decoration: none;
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Deliverable Tile Styling */
.deliverable-tile {
    background: white;
    border: 2px solid #2c2787;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.deliverable-tile:hover {
    border-color: #EA715E;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.deliverable-tile h4 {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

.deliverable-tile img {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.deliverable-tile a {
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}

/* ===================================
   VIDEO THUMBNAIL STYLES
   ===================================
   Styles for video thumbnail elements
   =================================== */

.video-thumbnail {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.play-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid #ff0000;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* ===================================
   LEGACY PRODUCTS CONTAINER
   ===================================
   Styles for legacy products layout
   =================================== */

.legacy-products-container {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 30px;
}

/* ===================================
   LEGACY PRODUCT ITEM STYLES
   ===================================
   Styles for individual legacy product items
   =================================== */

.legacy-product-item {
    flex: 1 1 45%;
    min-width: 300px;
    margin-bottom: 30px;
}

.legacy-figure {
    margin: 0;
    text-align: center;
}

.legacy-image {
    max-width: 100%;
    height: 350px;
    object-fit: contain;
    border: 2px solid #2c2787;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.legacy-caption {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
}

.legacy-image:hover {
    transform: translateY(-5px);
    border-color: #EA715E;
    box-shadow: 0 8px 25px rgba(234,113,94,0.2);
}

/* ===================================
   USER FLOWS CONTAINER STYLES
   ===================================
   Styles for user flows layout
   =================================== */

.user-flows-container {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 30px;
}

.user-flow-item {
    flex: 1 1 45%;
    min-width: 250px;
    margin-bottom: 30px;
}

/* ===================================
   USER FLOW ITEM STYLES
   =================================== */
.user-flow-item {
    flex: 1 1 45%;
    min-width: 300px;
    margin-bottom: 30px;
}

.user-flow-item:last-child {
    margin-bottom: 0;
}

.user-flow-figure {
    margin: 0;
    text-align: center;
}

.user-flow-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #2c2787;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-flow-caption {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
}

.user-flow-image:hover {
    transform: translateY(-5px);
    border-color: #EA715E;
    box-shadow: 0 8px 25px rgba(234,113,94,0.2);
}

/* ===================================
   WIREFRAMES CONTAINER STYLES
   =================================== */
.wireframes-container {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 30px;
}

.wireframe-item {
    flex: 1 1 45%;
    min-width: 300px;
    margin-bottom: 30px;
}

.wireframe-item:last-child {
    margin-bottom: 0;
}

.wireframe-figure {
    margin: 0;
    text-align: center;
}

.wireframe-image {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    border: 2px solid #2c2787;
    border-radius: 8px;
    margin-bottom: 15px;
}

.wireframe-caption {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
}

/* ===================================
   SECTION HEADING STYLES
   =================================== */
.section-heading-small {
    padding-top: 15px;
}

/* ===================================
   CTA BUTTON STYLES
   =================================== */
.cta-button {
    background-color: #EA715E;
    border-color: #EA715E;
    color: white;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 40px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #d65a4a;
    border-color: #d65a4a;
    transform: scale(1.05);
}

/* ===================================
   MODAL STYLES
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1025;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding-top: 120px;
}

.modal-close-button {
    position: fixed;
    right: 30px;
    top: 160px;
    z-index: 1026;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.modal-close-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.9);
}

.modal-close-button:hover .modal-close-icon {
    color: #EA715E;
}

.modal-close-icon {
    color: #000000;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.modal-title {
    color: #EA715E !important;
    margin-bottom: 15px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.modal-description {
    color: #ffffff !important;
    text-align: left;
    margin-bottom: 30px;
}

.deliverable-modal-close {
    top: 140px;
}

/* ===================================
   VIDEO MODAL CONTENT STYLES
   =================================== */
.video-modal-content {
    margin-bottom: 20px;
}

/* ===================================
   FOOTER STYLES
   =================================== */

/* Footer Quicklinks Styling */
footer ul.quicklinks li a {
    font-weight: bold !important;
    color: #007acc !important;
}

footer ul.quicklinks li a:hover,
footer ul.quicklinks li a:focus {
    color: #EA715E !important;
    text-decoration: none;
}

/* Enhanced Social Media Icons Hover */
ul.social-buttons li a:hover,
ul.social-buttons li a:focus,
ul.social-buttons li a:active {
    background-color: #EA715E !important;
}

/* ===================================
   END OF UTILITY CLASSES
   =================================== */

/* ===================================
   GAS SAFETY ASSESSMENT DELIVERABLE IMAGES
   =================================== */
.deliverable-img-gsa {
    height: 320px !important;
    object-fit: contain !important;
}

/* ===================================
   CLIENT ONBOARDING DELIVERABLE IMAGES
   =================================== */
.deliverable-img-co {
    height: 320px !important;
    object-fit: contain !important;
}

/* ===================================
   DELIVERABLE MODAL MOBILE OPTIMIZATION
   =================================== */
.deliverable-modal {
    padding: 20px;
    padding-right: 80px; /* Ensure content doesn't overlap with close button */
}

.deliverable-modal-content {
    max-width: 100%;
    margin: 0 auto;
}

.deliverable-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.deliverable-modal-content h3 {
    color: #EA715E !important;
    margin-bottom: 15px;
    text-align: center;
}

.deliverable-modal-content p {
    color: #ffffff !important;
    text-align: left;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .deliverable-modal {
        padding: 15px;
        padding-right: 70px; /* Smaller right padding on mobile */
    }
    
    .deliverable-modal-content h3 {
        font-size: 18px;
    }
    
    .deliverable-modal-content p {
        font-size: 14px;
    }
}
