/*
Theme Name: Mapping Infinity
Theme URI: https://mappinginfinity.com
Author: Mapping Infinity
Author URI: https://mappinginfinity.com
Description: A custom theme for Mapping Infinity
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mappinginfinity
*/

:root {
    --primary-color: #2196f3;
    --secondary-color: #ffc107;
    --accent-color: #4caf50;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --text-color: #666666;
    --border-color: #e9ecef;
}

/* General Styles */
body {
    background-color: #ffffff;
    color: #333;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-tagline {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}
.page-content { text-align: center;}
/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 80px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg-image-url);
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}
.social-link {
    padding: 10px;
}
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(45deg, rgba(33,150,243,0.9), rgba(33,150,243,0.7));*/
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Services Section */
.service-card {
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: rgba(33,150,243,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.service-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Milestones Section */
.milestone {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-color-blue { color: var(--primary-color); }
.brand-color-red { color: #f44336; }
.brand-color-yellow { color: var(--secondary-color); }
.brand-color-black { color: var(--dark-color); }

/* Industries Section */
.industry-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.industry-img:hover {
    transform: scale(1.05);
}

/* Process Workflow */
.workflow-stepper {
    position: relative;
    padding: 2rem 0;
}

.workflow-stepper-item {
    flex: 0 0 200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.workflow-stepper-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.workflow-stepper-connector {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: 40px;
}

/* Brands Section */
.brand-logos-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-logo-img {
    height: 60px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo-img:hover {
    opacity: 1;
}

/* Blog Section */
.blog-card h5 {
    font-weight: bold;
    color: var(--dark-color);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Footer Separator */
.footer-separator {
    width: 100%;
    height: 1px; /* A thin line for separation */
    background-color: #e0e0e0; /* Light grey line */
    margin-top: 3rem; /* Space above the separator */
    margin-bottom: 3rem; /* Space below the separator, before the footer */
}

/* Menu Separator */
.menu-separator {
    border-bottom: 1px solid var(--border-color); /* Add a subtle bottom border */
    width: 100%; /* Ensure the border spans the full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Text Colors */
.text-primary { color: var(--primary-color) !important; }
.text-warning { color: var(--secondary-color) !important; }
.text-success { color: var(--accent-color) !important; }

/* Responsive Styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .workflow-stepper {
        flex-direction: column;
    }
    
    .workflow-stepper-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }
    
    .workflow-stepper-item {
        margin-bottom: 2rem;
    }
}

/* Journey of Mapping Infinity Timeline */
.timeline-zigzag {
    position: relative;
    padding: 0;
    margin: 0 0 3rem 0;
}

.timeline-zigzag .row {
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.timeline-item {
    margin-bottom: 40px;
    position: relative; /* Ensure positioning context for the dot */
}

.timeline-content {
    position: relative;
    /* Default stacking for small screens */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    position: relative; /* Relative positioning for stacking on small screens */
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin-bottom: 10px; /* Space below dot on small screens */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 1;
}

/* Remove specific positioning for odd/even dots on small screens */
.timeline-item:nth-child(odd) .timeline-dot,
.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    transform: none;
    left: auto;
}

.timeline-box {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center text on small screens */
    width: 100%; /* Take full width on small screens */
    margin: 0 auto; /* Center the box on small screens */
}

.timeline-box strong {
    color: var(--dark-color); /* Style for the year */
}

.timeline-center-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #dee2e6; /* Light gray line */
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
}

/* Adjust spacing and layout for items next to the line on larger screens */
@media (min-width: 768px) {
    .timeline-item:nth-child(odd) {
        float: left; /* Float odd items to the left */
        clear: left; /* Clear left float to prevent items from lining up horizontally */
        width: 50%; /* Take 50% width of the row */
        padding-right: 60px; /* Increase space for the dot and gap */
        text-align: right; /* Align content to the right */
    }

    .timeline-item:nth-child(even) {
        float: right; /* Float even items to the right */
        clear: right; /* Clear right float */
        width: 50%; /* Take 50% width of the row */
        padding-left: 60px; /* Increase space for the dot and gap */
        text-align: left; /* Align content to the left */
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0; /* Remove margin */
        text-align: right; /* Ensure text is right aligned */
        width: 100%; /* Take full width of parent column */
        display: block; /* Revert to block display */
    }

     .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0; /* Remove margin */
        text-align: left; /* Ensure text is left aligned */
        width: 100%; /* Take full width of parent column */
        display: block; /* Revert to block display */
    }

     .timeline-item:nth-child(odd) .timeline-dot {
         position: absolute;
         right: -25px; /* Position dot on the center line */
         top: 15px; /* Vertically align dot */
         transform: translateX(50%);
         margin-bottom: 0; /* Remove margin */
     }

     .timeline-item:nth-child(even) .timeline-dot {
         position: absolute;
         left: -25px; /* Position dot on the center line */
         top: 15px; /* Vertically align dot */
         transform: translateX(-50%);
         margin-bottom: 0; /* Remove margin */
     }

     .timeline-content .timeline-box {
        width: 100%; /* Take full width of its parent (.timeline-content) */
        margin: 0; /* Remove centered margin */
        text-align: inherit; /* Inherit text alignment from parent */
     }

    /* Ensure the row containing timeline items clears floats */
    .timeline-zigzag .row::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Ensure the timeline item container aligns items correctly */
     .timeline-item:nth-child(odd) .timeline-content {
         align-items: flex-end; /* Align items to the right within flex if display: flex was kept */
     }

    .timeline-item:nth-child(even) .timeline-content {
         align-items: flex-start; /* Align items to the left within flex if display: flex was kept */
     }
}

/* Responsive adjustments for small screens */
@media (max-width: 767.98px) {
    .timeline-center-line {
        display: none; /* Hide vertical line on small screens */
    }

    .timeline-item {
        margin-bottom: 30px;
        float: none; /* Remove floats on small screens */
        clear: both; /* Clear floats on small screens */
        width: 100%; /* Full width on small screens */
        padding: 0; /* Remove padding */
        text-align: center; /* Center text */
    }

    .timeline-dot {
        margin: 0 auto 15px; /* Center dot above content on small screens */
        position: relative; /* Ensure relative positioning for stacking */
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }

    .timeline-content {
        width: 100%;
        text-align: center; /* Center text on small screens */
        align-items: center;
        margin-left: 0;
        margin-right: 0;
        flex-direction: column; /* Stack vertically */
        display: flex; /* Ensure flex display for stacking */
    }

     .timeline-content .timeline-box {
        width: 100%;
        margin: 0 auto;
        text-align: center;
     }
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Counter Animation */
.counter {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Contact Form Styles */
.contact-info {
    padding: 2rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
}

.contact-icon i {
    font-size: 1.25rem;
}

.contact-text h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Contact Form 7 Customization */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: #2196f3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.wpcf7-form textarea {
    min-height: 150px;
    width: 100% !important;
    display: block;
}

.wpcf7-submit {
    background-color: #2196f3;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.wpcf7-submit:hover {
    background-color: #1976d2;
}

.wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 0.25rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wpcf7 form.failed .wpcf7-response-output {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Map Styles */
.map-wrapper {
    height: 450px;
    background: #f8f9fa;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Experience Page Styles */
.experience-section {
    padding: 60px 0;
}

.experience-section.bg-dark {
    background-color: #1a1a1a;
}

.experience-section .display-5 {
    font-size: 2.5rem;
}

.experience-section.bg-dark .text-white {
    color: #ffffff;
}

.experience-section.bg-dark .text-light {
    color: #e0e0e0;
}

.experience-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-section .section-title {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.experience-section .section-title.text-danger {
    color: #dc3545 !important;
}

/* Ensure the subtitle above 'Campaigns Executed' has proper spacing */
.experience-section .text-center.mt-5 {
    margin-top: 3rem !important;
    margin-bottom: 2rem;
}

.experience-section .text-center .small {
    font-weight: 600;
    letter-spacing: 1px;
}

.experience-section .p-4 {
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.experience-section.bg-dark .p-4.bg-black {
    background-color: #0d0d0d !important; /* Slightly lighter black for contrast */
    border-color: #333333;
}

.experience-section .list-unstyled li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.experience-section .list-unstyled li i {
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Adjust checkmark color for better visibility on dark backgrounds */
.experience-section.bg-dark .list-unstyled li i.text-success {
    color: #4CAF50 !important; /* Slightly brighter green for dark background */
}

.experience-section .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.experience-section .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Ensure images in dark sections don't have white shadow */
.experience-section.bg-dark img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .experience-section .row {
        flex-direction: column !important; /* Stack columns on smaller screens */
    }
    .experience-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    .experience-section .text-start, .experience-section .text-end {
        text-align: center !important;
    }
}

/* Single Post and Sidebar Styles */
.post-thumbnail img {
    border-radius: 8px;
}

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.post-meta i {
    margin-right: 5px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-area {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.widget {
    margin-bottom: 2.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.widget ul {
    padding-left: 0;
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
}

.widget ul li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: #0056b3;
}

/* Adjust Contact Form 7 styling within sidebar */
.sidebar-area .wpcf7-form input[type="text"],
.sidebar-area .wpcf7-form input[type="email"],
.sidebar-area .wpcf7-form input[type="tel"],
.sidebar-area .wpcf7-form textarea {
    background-color: #fff;
    border: 1px solid #ced4da;
}

.sidebar-area .wpcf7-form input[type="text"]:focus,
.sidebar-area .wpcf7-form input[type="email"]:focus,
.sidebar-area .wpcf7-form input[type="tel"]:focus,
.sidebar-area .wpcf7-form textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Sidebar Specific Styles */
.sidebar-area .widget ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
}

.sidebar-area .widget ul li:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-area .sidebar-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid #dee2e6;
}

.sidebar-area .sidebar-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-area .widget ul li a {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-area .widget ul li a:hover {
    color: #007bff;
}

.sidebar-area .widget ul li:last-child {
    margin-bottom: 0;
}

/* Sidebar Separator */
.sidebar-separator {
    border: 0;
    height: 2px; /* Made slightly thicker */
    background-color: #adb5bd; /* A darker gray for better visibility */
    margin-top: 2rem; /* Increased space above */
    margin-bottom: 2rem; /* Increased space below */
}

/* Adjustments for Services Grid on page-services.php (old styles, now covered by .experience-section) */
/* #services-grid .service-card { height: 100%; display: flex; flex-direction: column; } */
/* #services-grid .service-card .btn-outline-primary { border-color: var(--primary-color); color: var(--primary-color); } */
/* #services-grid .service-card .btn-outline-primary:hover { background-color: var(--primary-color); color: #fff; } */ 