/* ===================================
   EXTRACTED INLINE STYLES FROM HTML
   =================================== */

/* WordPress Custom CSS (from wp-custom-css) */
#header {
    transition: all ease 0.2s;
}

#header.fixhead {
    padding: 20px 0px;
}

/* Home Banner Styles */
.banner-transformation-area {
    padding: 25px;
    padding-bottom: 0;
}

/* Banner Graphics Fix */
.home-banner-graphics-wrap {
    width: 100%;
    max-width: 500px; /* Further reduced to fit height within viewport */
    margin: 0 auto;
    padding: 0; /* Removed all padding */
    overflow: hidden;
}

.banner-img {
    width: 100%;
    display: block;
    position: relative;
    transform-origin: center center;
    max-height: 70vh; /* Increased to 70% of viewport */
}

.banner-img svg {
    width: 100%;
    height: 100%;
    max-height: 70vh; /* Increased to 70% of viewport */
    display: block;
    object-fit: contain;
}

/* Hero Section Layout Fix */
.homebanner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.homebanner-title {
    font-size: 52px !important; /* Reduced to prevent nav overlap */
    padding-top: 100px !important; /* Increased to push content below nav */
    margin-bottom: 20px !important;
}

.home-banner-title-wrap {
    margin-bottom: 0;
}

/* Home About Section */
.home-about-section {
    padding: 100px 0 40px 0px;
}

.home-content-img img {
    padding-right: 0 !important;
}

/* Home Content Section - Line 509 */
.home-content-img img {
    padding-right: 0 !important;
}

/* Responsive Overrides */
@media screen and (max-width: 1400px) {
    .home-banner-graphics-wrap {
        max-width: 600px; /* Increased */
    }
}

@media screen and (max-width: 1200px) {
    .home-banner-graphics-wrap {
        max-width: 500px; /* Increased */
    }
}

@media screen and (max-width: 992px) {
    .homebanner-title {
        font-size: 50px !important;
        padding-top: 30px !important;
    }
    
    .home-banner-graphics-wrap {
        max-width: 450px; /* Increased */
    }
}

@media screen and (max-width: 767px) {
    .home-content-img img {
        padding: 0 10px !important;
    }
    
    .home-about-section.position-relative {
        padding: 55px 0;
        text-align: center !important;
    }
    
    .homebanner-title {
        font-size: 28px !important; /* Reduced to fit better on mobile */
        padding-top: 20px !important;
    }
    
    .homebanner {
        min-height: auto;
        padding: 80px 0 40px 0;
    }
    
    .home-banner-graphics-wrap {
        max-width: 320px; /* Slightly bigger for mobile */
    }
}

/* Image Intrinsic Size (from WordPress) */
img:is([sizes="auto" i], [sizes^="auto," i]) { 
    contain-intrinsic-size: 3000px 1500px;
}

/* WordPress Emoji Styles (can be removed if not using emojis) */
img.wp-smiley, img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/* ===================================
   CASE STUDIES PAGE STYLES
   =================================== */

/* Case Study Cards */
.case-study-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.case-study-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Override flex layout for individual case study pages to prevent horizontal squishing */
.case-study-single-page .case-study-header {
    display: block;
    text-align: center;
}

.client-logo-container {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.case-study-meta {
    flex: 1;
    display: flex;
    align-items: center;
}

.client-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.industry-tag {
    font-size: 12px;
    background: #F67280;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.case-study-content {
    flex: 1;
    margin-bottom: 25px;
}

.case-study-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-study-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-study-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.highlight-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.highlight-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #F67280;
    margin-bottom: 5px;
}

.highlight-text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.case-study-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #F67280 0%, #e55a6f 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .theme-btn {
    background: white;
    color: #F67280;
    border: 2px solid white;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.cta-section .theme-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Dark Mode Styles */
.dark-mode .case-study-card {
    background: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

.dark-mode .case-study-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .client-logo {
    background: #2a2a2a;
}

.dark-mode .client-name {
    color: #e0e0e0;
}

.dark-mode .case-study-title {
    color: #e0e0e0;
}

.dark-mode .case-study-summary {
    color: #b0b0b0;
}

.dark-mode .highlight-text {
    color: #b0b0b0;
}

.dark-mode .case-study-footer {
    border-color: #333;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .case-study-highlights {
        justify-content: center;
    }
    
    .highlight-item {
        min-width: 100px;
    }
    
    .case-study-title {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 30px;
    }
}

@media screen and (max-width: 767px) {
    .case-study-card {
        padding: 20px;
    }
    
    .case-study-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .client-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .case-study-highlights {
        flex-direction: column;
        gap: 10px;
    }
    
    .highlight-item {
        min-width: auto;
    }
    
    .case-study-title {
        font-size: 18px;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .cta-description {
        font-size: 16px;
    }
}

/* Simple hamburger menu functionality */
body.nav-open-menu .menu-wrap {
    display: block !important;
}

/* Toggle buttons visibility */
body.nav-open-menu .menu-button {
    display: none !important;
}

body.nav-open-menu .mobile-menu-close {
    display: block !important;
}

/* Make sure the menu toggle is above the menu overlay */
body.nav-open-menu .menu-toggle {
    position: relative;
    z-index: 10000 !important;
}

/* Style the close button */
.mobile-menu-close {
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

/* Fix LaunchGood timeline alignment on desktop - Issue #53 */
@media (min-width: 768px) {
    .timeline-wrapper::before {
        top: 40px; /* Position line to pass through center of 80px year bubbles */
    }
}

/* Fix case study results section spacing - Issue #56 */
.case-study-results {
    padding: 100px 0 !important; /* Standard padding like other sections */
}

/* Fix industry tag alignment on mobile - Issue #67 */
@media screen and (max-width: 767px) {
    .case-study-card .industry-tag {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        display: inline-block !important;
        width: auto !important; /* Force width to content only */
        max-width: none !important; /* Remove any max-width constraints */
        margin: 0 !important; /* Remove any margins that might cause expansion */
        flex: none !important; /* Remove any flex properties */
    }
    
    /* Fix logo centering and prevent badge overlap */
    .case-study-card .case-study-header {
        margin-top: 45px; /* Push down to avoid badge overlap */
        margin-bottom: 20px;
    }
    
    /* Ensure all logos are properly centered */
    .case-study-card .client-logo-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .case-study-card .client-logo {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Remove all artificial backgrounds - logos now have natural backgrounds built-in */
.case-study-card .client-logo {
    background: transparent !important; /* Remove gray background */
    border-radius: 0 !important; /* Remove rounded corners since logos are self-contained */
}

/* Remove old theme.css backgrounds for LaunchGood and ISB */
.case-study-card .client-logo[alt*="LaunchGood"],
.case-study-card .client-logo[alt*="ISB"],
.case-study-card .client-logo[alt*="Islamic"] {
    background: transparent !important;
    padding: 0 !important;
}

/* Align logos with company names */
.case-study-header {
    align-items: flex-start !important; /* flex-start works better than center for logo alignment */
}