/*
Theme Name: My Twenty Twenty Four
Theme URI: 
Author: Markus Petroff
Author URI: 
Description: My version of the twenty twenty four theme.
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: my-twenty-twenty-four
Tags: 
*/



html {
    scroll-behavior: smooth;

}

/* Sticky Header */

#site-header {
    position: fixed;
    top: 0px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 -8px 27px rgba(0,0,0,0.8);
    z-index: 1000;
    transition: top 0.5s ease, opacity 0.7s ease;

}

/* timeline */

.timeline li {
  list-style: none;
  padding-bottom: 1.8rem !important;
  border-left: 4px solid #31468A;
  position: relative;
  padding-left: 20px !important;
  margin-left: -10px !important;
  margin-bottom: 0px !important;
}

.timeline li:last-child {
  border: 0px;
  padding-bottom: 0;
  margin-bottom: 0px !important;
  position: relative;
}

.timeline li:last-child:before {
  left: -7px; /* Adjust this value to ensure the dot is centered */
}

.timeline li:before {
  content: '';
  width: 15px;
  height: 15px;
  background: #31468A;
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.3); /* Half-transparent shadow */
  border-radius: 50%;
  position: absolute;
  left: -8px;
  top: 0px;
}

.timeline li span {
  margin-top: -6px;
  display: inline-block;
  font-weight: bold;
}


/*----------------------------------------------
/* Style css for contact form 7 - contact us */

/* General Form Styling */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #E6D9EE, #94A0B5);
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Label Styling */
.wpcf7-form label {
    display: block;
    margin-bottom: 5px; /* Reduce margin to align better with input fields */
    font-weight: bold;
    color: #333;
}

/* Input and Textarea Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: calc(100% - 20px); /* Adjust width to account for equal padding */
    padding: 10px;
    margin: 0 auto 20px auto; /* Add equal left and right margins */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Input Focus Styling */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
    outline: none;
}

/* Submit Button Styling */
.wpcf7-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto; /* Center the button */
    display: block; /* Ensures the button is centered */
}

/* Submit Button Hover Effect */
.wpcf7-form input[type="submit"]:hover {
    background-color: #005f8d;
}

/* Quiz and Acceptance Checkbox Styling */
.wpcf7-form .wpcf7-quiz,
.wpcf7-form .wpcf7-acceptance {
    margin-bottom: 20px;
}

.wpcf7-form .wpcf7-quiz label,
.wpcf7-form .wpcf7-acceptance label {
    display: inline-block;
    font-weight: normal;
}

.wpcf7-form .wpcf7-quiz input,
.wpcf7-form .wpcf7-acceptance input {
    margin-right: 10px;
}

/* Additional Styling for a Clean Look */
.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form select {
    cursor: pointer;
}


/* Language Switcher */
/* Tightly Spaced Language Switcher Styling */
/* Ensure .site-navigation's spacing doesn't affect the language switcher */
.site-navigation {
    display: inline-flex;
    margin-left: auto; /* Aligns the language switcher to the right */
    padding: 0; /* Remove any padding from the parent container */
    margin: 0; /* Remove any margin from the parent container */
}

/* Language Switcher Button Styling */
.site-navigation .language-switcher a {
    text-decoration: none;
    color: #1e2d61 !important; /* Text color set to blue */
    padding: 2px 8px; /* Compact padding */
    background-color: transparent; /* Transparent background */
    border: 2px solid #1e2d61; /* Blue border */
    border-radius: 14px; /* Rounded corners */
    font-weight: bold; /* Bold text for visibility */
    font-size: 1.1em; /* Slightly smaller font size */
    margin: 0 0px; /* Small margin to bring the buttons closer together */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Specific styles for the last two elements in .site-navigation */

/*.site-navigation > *:nth-child(-n+4) {
    margin: 4px !important; 
    padding: 4px !important;
}*/


/* Hover and Active States */
.site-navigation .language-switcher a:hover {
    background-color: #1e2d61; /* Blue background on hover */
    color: #ffffff !important; /* Text color changes to white */
    border-color: #1e2d61; /* Keep border color blue */
}

.site-navigation .language-switcher a:active {
    background-color: #1e2d61; /* Blue background on click */
    color: #ffffff !important; /* Text color changes to white */
    border-color: #1e2d61; /* Keep border color blue */
}





/*media break point */

/* Set your custom breakpoint, e.g., 820px */
@media (max-width: 990px) {
    /* Hide the regular navigation */
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }

    /* Show the burger menu icon */
    .wp-block-navigation__responsive-container-open {
        display: block !important;
    }
}

/* Ensure the regular navigation is shown and the burger menu is hidden above the breakpoint */
@media (min-width: 991px) {
    /* Show the regular navigation */
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: flex; /* or block depending on your theme layout */
    }

    /* Hide the burger menu icon */
    .wp-block-navigation__responsive-container-open {
        display: none;
    }
}



/* fig captions centered */
figcaption {
    text-align: center;
}

/* Table css style */

/* General Table Styling */
.custom-styled-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    border-collapse: collapse; /* Cleaner border collapse */
    border-radius: 12px; /* Rounded corners */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: #e9ecef; /* Less bright background color for the whole table */
}

/* Table Header Styling */
.custom-styled-table th {
    background-color: #4a6c8a !important; /* Slightly darker blue for the header */
    color: #fff !important; /* White font color for better contrast */
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
    border: 1px solid #ddd !important; /* Ensure borders are applied to header cells */
}

/* Table Caption Styling - Bottom Caption */
.custom-styled-table caption {
    background-color: #f6f6f6; /* Darker color to match header */
    color: #fff; /* White text color for better contrast */
    padding: 15px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    border-bottom-left-radius: 12px; /* Match table border radius */
    border-bottom-right-radius: 12px; /* Match table border radius */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15); /* Subtle shadow to lift the caption */
    margin-top: 20px; /* Space above the caption */
}

.custom-styled-table figcaption{
    background-color:#f6f6f6;
}

/* Table Body Cell Styling */
.custom-styled-table td {
    padding: 16px;
    font-size: 16px;
    color: #333 !important; /* Darker text color */
    border: 1px solid #ddd !important; /* Soft gray borders for a modern look */
    text-align: left;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Adjusting the Stripes for the WordPress Table Block */
.wp-block-table.custom-styled-table tr:nth-child(odd) {
    background-color: #f0f2f5 !important; /* Brightened light gray for odd rows */
}

.wp-block-table.custom-styled-table tr:nth-child(even) {
    background-color: #e6e9ec !important; /* Brightened slightly darker gray for even rows */
}

/* Ensure consistent borders in all rows */
.wp-block-table.custom-styled-table tr,
.wp-block-table.custom-styled-table th,
.wp-block-table.custom-styled-table td {
    border: 1px solid #ddd !important; /* Apply border to all table elements */
}

/* Optional: Add padding and border-radius for a modern look */
.wp-block-table.custom-styled-table td,
.wp-block-table.custom-styled-table th {
    padding: 10px !important;
    border-radius: 5px;
}

/* Hover Effect */
.wp-block-table.custom-styled-table tr:hover td {
    background-color: #d1d6db !important; /* Light blue-gray on hover */
    color: #333 !important;
}

/* Remove double border from the last row */
.custom-styled-table tr:last-child td {
    border-bottom: none !important;
}

/* Responsive Table Styling */
@media (max-width: 600px) {
    .custom-styled-table {
        font-size: 14px;
    }

    .custom-styled-table th,
    .custom-styled-table td {
        padding: 12px !important;
    }
}












/* custom image style for portfolio images */

/* Custom Image Class */
.custom-image-style {
    display: inline-block;
    max-width: 100%; /* Ensure the wrapper is responsive */
    margin: 20px auto; /* Center the image with some space around */
    border-radius: 10px; /* Rounded corners for a modern look */
    overflow: hidden; /* Ensure content doesn't overflow the borders */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); /* Subtle shadow for a clean, modern look */
    background-color: #fff; /* White background for a cleaner appearance */
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition for hover effects */
}

/* Image within the Custom Style */
.custom-image-style img {
    display: block;
    max-width: 400px;
    width: 100%; /* Make the image take the full width of the wrapper */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Match the wrapper's rounded corners */
    object-fit: cover; /* Ensure the image covers the container without distortion */
    transition: transform 0.3s ease-in-out; /* Smooth transition for zoom effect on hover */
}

/* Caption Styling */
.custom-image-style figcaption {
    padding: 10px 15px;
    font-size: 16px; /* Slightly smaller font for a modern look */
    color: #333; /* Darker color for text for better readability */
    background-color: #f8f9fa; /* Very light gray background for subtle contrast */
    border-radius: 0 0 10px 10px; /* Rounded corners at the bottom to match the image */
    text-align: center; /* Center-align the caption text */
    font-style: normal; /* Remove italics for a cleaner look */
    border-top: 1px solid #ddd; /* Subtle border separating the image and caption */
    width: 100%; /* Ensure caption takes the full width of the wrapper */
    box-sizing: border-box; /* Ensure padding is included within the width */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition for hover effects */
}

/* Hover Effect */
.custom-image-style:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Intensified shadow on hover */
    transform: translateY(-5px); /* Slight lift effect on hover */
}

/* Hover Effect for Image */
.custom-image-style:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Hover Effect for Caption */
.custom-image-style:hover figcaption {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover for caption */
}




/* General Gallery Styling */
.custom-gallery .custom-image-style {
    max-width: 400px; /* Set maximum width of gallery items */
    margin: 0 auto 20px; /* Center the gallery item and add space below each */
    overflow: hidden; /* Ensure no overflow of content */
}



/* Styling for the counter container */

/* Modern and Professional Styling for the Counter Container */
.counter-container {
    display: inline-block;
    text-align: center;
    padding: 20px;
    margin: 15px;
    border: 1px solid #e0e0e0; /* Light, subtle border */
    border-radius: 12px;
    background-color: #ffffff; /* White background for a clean look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%; /* Adjust width to content */
}

.counter-container:hover {

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Modern Styling for the Counter Number */
.countup {
    font-size: 3.5rem; /* Slightly larger font size for emphasis */
    font-weight: 700; /* Stronger font weight for a bold statement */
    color: #0056b3; /* A deeper, more business-like blue */
    line-height: 1.2;
    transition: color 0.3s ease;
}

.counter-container:hover .countup {
    color: #003f7f; /* Darker shade of blue on hover for contrast */
}

/* Refined Styling for Counter Label */
.counter-label {
    font-size: 1.1rem;
    color: #666666; /* Neutral gray color for the label */
    margin-top: 12px;
    display: block;
    font-weight: 500; /* Slightly bolder for readability */
}

/* Smooth Fade-in Animation for when the Counter Appears */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.counter-container {
    animation: fadeIn 0.8s ease-in-out; /* Slightly quicker fade-in */
}


/* profile picture shadow */
.profile-picture img {
  border-radius: 40px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  width: 100%; /* Ensure image scales responsively */
  max-width: 300px; /* Optional: Set a max width for the profile picture */
  display: block;
  margin: 0 auto; /* Center the image */
}



/* core competences styling */


/* Main Section Styling */
.core-competence-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
   
    padding: 10px; /* Padding for the section */
    background-color: transparent; /* Transparent background */
    

    width: 100%; /* Ensure the section takes full width */
    max-width: 100%; /* Prevent the section from exceeding the viewport width */
}


/* Center Image Styling */
.core-comp-img {
    position: relative;
    z-index: 10;
    padding: 10px;
    background-color: #fff; /* White background for the image */
    border-radius: 50%; /* Circular image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transform: translate(-0%, -0%); /* Center the image properly */
}


/* Competence Box Styling */
.core-comp-1, .core-comp-2, .core-comp-3, .core-comp-4 {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: box-shadow 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #333; /* Professional dark grey color */
    z-index: 20;
    
    margin-bottom: 40px;
    
}

/* Hover Effect for Competence Boxes */
.core-comp-1:hover, .core-comp-2:hover, .core-comp-3:hover, .core-comp-4:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}



/* Connecting lines */
.core-comp-1:before, .core-comp-2:before, .core-comp-3:before, .core-comp-4:before {
    content: "";
    position: absolute;
    background-color: rgba(50, 50, 50, 0.9); /* Dark grey for the lines */
    width: 3px; /* Slightly thicker line for modern look */
    height: min(146px, calc(14vw)); /* Adjusted height for spread */
    top: 50%;
    left: 50%;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow for lines */
    transform-origin: top left;
    z-index: 1;
}

/* Adjust line rotations */
.core-comp-1:before {
    transform: rotate(-70deg);
}

.core-comp-2:before {
    transform: rotate(70deg);
}

.core-comp-3:before {
    transform: rotate(110deg);
}

.core-comp-4:before {
    transform: rotate(-110deg);
}

/* Typography Adjustments */
.competence-boxes div {
    font-weight: 500;
    letter-spacing: 0.5px;
}




/* Responsive layout adjustments for mobile */
@media screen and (max-width: 768px) {
    /* Reduce height for mobile */
    .core-competence-section {
        height: 200px;
        padding: 10px;
        
  
    transform: translate(-1.5%, -0%); /* Center the image properly */
    }

    /* Center image size for mobile */
    .core-comp-img {
        width: 70px;
        height: 70px;
        transform: translate(6%, -0%); /* Center the image properly */
    }

    /* Adjust the competence box size and positioning for mobile */
    .core-comp-1, .core-comp-2, .core-comp-3, .core-comp-4 {
        width: 120px;
        height: 40px;
        padding: 10px;
        font-size: 14px; /* Smaller font size for readability on mobile */
        
        margin-bottom: 20px;
        

    }
    
    .core-comp-1:before, .core-comp-2:before, .core-comp-3:before, .core-comp-4:before {
        
        left: 51.5%;
    }


    /* Adjust line rotations */
    .core-comp-1:before {
        transform: rotate(-60deg);
    }
    
    .core-comp-2:before {
        transform: rotate(60deg);
    }
    
    .core-comp-3:before {
        transform: rotate(120deg);
    }
    
    .core-comp-4:before {
        transform: rotate(-120deg);
    }

    /* Shorten the lines for mobile view */
    .core-comp-1:before, .core-comp-2:before, .core-comp-3:before, .core-comp-4:before {
        height: 60px;
    }
}









