/* general */
body {
    background-color: var(--ts_std_bg_color);
    overflow-x: hidden;
}

main {
    background-color: var(--ts_std_bg_color);
    background-image: var(--ts_main_bg_image);
    padding-top: 91px;
}

.ts-custom-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure border-box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/*  NEW */
.ts-navbar {
    width: 100%;
    font-family: var(--ts_std_font), sans-serif;
    background-color: var(--ts_std_bg_color);
    font-size: var(--ts_navbar_text_size);
    padding-top: var(--ts_spacer_xxs);
    padding-bottom: 0; 
    width: 100%; /* Ensure navbar spans full width */
    z-index: 1030; /* Ensure navbar stays on top */
    color: var(--ts_std_font_color);
}

.nav-link {
    font-size: 16px; /* var(--ts_navbar_text_size); */
    color: var(--ts_std_font_color) !important;
}

.navbar-toggler {
    border: none;
    
}

.ts-brand {
    font-family: var(--ts_brand_font), sans-serif;
    font-size: var(--ts_brand_size);
    color: var(--ts_brand_color);
    padding-left: var(--ts_brand_l_padding);
}

.ts-dropdown-nav {
    color: rgba(0, 0, 0, .55);
    background-color: var(--ts_std_bg_color);
}

.ts-contact-button {
    color: var(--ts_contact_color);
    border: 1px solid var(--ts_contact_color);
    text-decoration: none !important;
    padding: 0 5px;
    font-family: var(--ts_std_font), sans-serif;
    background-color: var(--ts_std_bg_color);
    font-size: 16px;
}

.ts-footer {
    font-family: var(--ts_std_font), sans-serif; 
    color: var(--ts_std_font_color);
    font-size: var(--ts_std_font_size);
    padding-top: var(--ts_spacer_xs);
}

.ts-divider-footer {
    width: calc(100% - 2 * var(--ts_spacer_xxxs)); /* Adjust width to account for margins */
    box-sizing: border-box;
    margin-left: var(--ts_spacer_xxxs);
    margin-right: var(--ts_spacer_xxxs); 
    margin-top: var(--ts_spacer_xs);
    border-top: 0.5px solid var(--ts_std_font_color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding-left: var(--ts_spacer_xxxs);
    padding-right: var(--ts_spacer_xxxs);
}

.footer-container p {
    flex: 1;
    text-align: center;
}

.footer-container p.text-start {
    text-align: left;
}

.footer-container p.text-end {
    text-align: right;
}

.ts-sign-in {
    font-family: var(--ts_std_font), sans-serif;
    font-size: var(--ts_std_font_size);
    color: inherit; /* Inherit the color from the parent element */
    text-decoration: underline; /* Ensure the text is underlined */
}

.ts-login-status {
    padding-top: var(--ts_spacer_xs);
    padding-bottom: var(--ts_spacer_xs);
    margin: 0;
}
/* Footer line */
.footer::after {
    content: "";
    display: block;
    width: 130px;
    height: 4px;
    background-color: #545F71;
    margin: 0 auto; /* Center the line */
    margin-top: 5px; /* Adjust the spacing as needed */
    padding-bottom: 2px; /* Adjust the spacing as needed */
}

/* *********************** STANDARD CLASSES *********************** */
.ts-h1 {
    font-family: var(--ts_h1_font), sans-serif;
    font-size: var(--ts_h1_size_mobile);
    color: var(--ts_h1_color);
    line-height: 1.2;
}

.ts-h2 {
    font-family: var(--ts_h2_font), sans-serif;
    font-size: var(--ts_h2_size);
    color: var(--ts_h2_color);
    line-height: 1;
}

.ts-std-text {
    font-family: var(--ts_std_font), sans-serif;
    font-size: var(--ts_std_font_size);
    color: var(--ts_std_font_color);
    line-height: 1.2;
}

.ts-std-regular-text {
    font-family: var(--ts_std_regular_font), sans-serif;
    font-size: var(--ts_std_font_size);
    color: var(--ts_std_font_color);
}

.ts-std-bold-text {
    font-family: var(--ts_std_bold_font), sans-serif;
    font-size: var(--ts_std_font_size);
    color: var(--ts_std_font_color);
}

.ts-std-text-color {
    color: var(--ts_std_font_color) !important;
}

.ts-summernote { 
    line-height: 1.214; 
}

.ts-summernote p {
    margin-bottom: 0; 
}

.ts-summernote span { 
    line-height: 1.214 !important; /* Ensure this overrides any inline styles */ 
}

.ts-divider {
    width: calc(100% - 2 * var(--ts_spacer_xxxs)); /* Adjust width to account for margins */
    box-sizing: border-box;
    margin-left: var(--ts_spacer_xxxs);
    margin-right: var(--ts_spacer_xxxs); 
    margin-top: var(--ts_spacer_m);
    border-top: 0.5px solid var(--ts_std_font_color);
}

.btn-signup,
.btn-edit {
    background-color: #188181;
    color: #fff;
}

.btn-signup:hover,
.btn-signup:active {
    background-color: #fff;
    color: #23BBBB;
}

.ts-error {
    color: red;
}

/* ************************ SPACERS **************************** */
.ts-std-lr-padding {
    padding-left: var(--ts_spacer_xxxs);
    padding-right: var(--ts_spacer_xxxs);
}

/* TOP SPACERS */
.ts-spacer-lg {
    padding-top: var(--ts_spacer_lg);
}
.ts-spacer-m {
    padding-top: var(--ts_spacer_m);
}
.ts-spacer-s {
    padding-top: var(--ts_spacer_s);
}
.ts-spacer-xs {
    padding-top: var(--ts_spacer_xs);
}
.ts-spacer-xxs {
    padding-top: var(--ts_spacer_xxs);
}
.ts-spacer-xxxs {
    padding-top: var(--ts_spacer_xxxs);
}

/* RESPONSIVE TOP SPACERS */
.ts-spacer-xs-resp {
    padding-top: var(--ts_spacer_xs); /* s for larger screens */
}

.ts-spacer-m-resp {
    padding-top: var(--ts_spacer_m); /* lg for larger screens */
}

.ts-spacer-s-resp {
    padding-top: var(--ts_spacer_s); /* m for larger screens */
}

.ts-spacer-s_lg-resp {
    padding-top: var(--ts_spacer_s); /* m for larger screens */
}

/* BOTTOM SPACERS */
.ts-spacer-bottom-m {
    padding-bottom: var(--ts_spacer_m);
}
.ts-spacer-bottom-s {
    padding-bottom: var(--ts_spacer_s);
}
.ts-spacer-bottom-xs {
    padding-bottom: var(--ts_spacer_xs);
}
.ts-spacer-bottom-xxs {
    padding-bottom: var(--ts_spacer_xxs);
}
.ts-spacer-bottom-xxxs {
    padding-bottom: var(--ts_spacer_xxxs);
}

/* RESPONSIVE BOTTOM SPACERS */
.ts-spacer-bottom-s-resp {
    padding-bottom: var(--ts_spacer_s); /* m for larger screens */
}
.ts-spacer-bottom-m-resp {
    padding-bottom: var(--ts_spacer_m); /* lg for larger screens */
}

/* LEFT SPACERS */
.ts-spacer-left-s {
    padding-left: var(--ts_spacer_s);
}
.ts-spacer-left-xs {
    padding-left: var(--ts_spacer_xs);
}
.ts-spacer-left-xxs {
    padding-left: var(--ts_spacer_xxs);
}
.ts-spacer-left-xxxs {
    padding-left: var(--ts_spacer_xxxs);
}

.ts-gap-spacer-left {
    padding-left: var(--ts_gap_spacer);
}

/* RIGHT SPACERS */
.ts-spacer-right-lg {
    padding-right: var(--ts_spacer_lg); 
}
.ts-spacer-right-m {
    padding-right: var(--ts_spacer_m); 
}
.ts-spacer-right-s {
    padding-right: var(--ts_spacer_s); 
}
.ts-spacer-right-xs {
    padding-right: var(--ts_spacer_xs);
}
.ts-spacer-right-xxs {
    padding-right: var(--ts_spacer_xxs);
}
.ts-spacer-right-xxxs {
    padding-right: var(--ts_spacer_xxxs);
}
.ts-gap-spacer-right {
    padding-right: var(--ts_gap_spacer);
}

/* BOTTOM MARGIN */
.ts-m-spacer-bottom-m {
    margin-bottom: var(--ts_spacer_m);
}

/* TOP MARGINS */
.ts-margin-xxs {
    margin-top: var(--ts_spacer_xxs);
}

.ts-margin-s {
    margin-top: var(--ts_spacer_s);
}

.ts-margin-m {
    margin-top: var(--ts_spacer_m);
}

.ts-margin-lg {
    margin-top: var(--ts_spacer_lg);
}

/* ************************ home ************************************** */

.ts-home-intro-section-bg {
    background-color: var(--ts_home_intro_section_bg);
}

.ts-home-img {
    width: 100%; 
    height: auto; 
    object-fit: cover; /* Scale and crop the image to cover the area */
    object-position: center; /* Center the image within the container */
}

.custom-tooltip {
    --bs-tooltip-bg: var(--ts_tooltip_bg);
    --bs-tooltip-color: var(--ts_tooltip_text_color);
}

.ts-socials-container {
    width: 30px;
    height: 30px;
    background-color: var(--ts_social_container_bg); 
    display: flex; /* Use Flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 10px; /* Add padding */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.ts-social-icon-link {
    color: var(--ts_social_container_color);
    text-decoration: none;
    display: flex; /* Use Flexbox for centering the icon */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 100%; /* Ensure the link takes the full width of the container */
    height: 100%; /* Ensure the link takes the full height of the container */
}
.ts-icon-link {
    color: var(--ts_social_container_color);
    margin: 12px 6px 12px 0;
    text-decoration: none;
}

.ts-home-circle {
    padding-top: var(--ts_home_circle_top);
}

.line-circle-home {
    position: relative;
    display: flex;
    align-items: center; /* Vertically center the line */
}

.line-circle-home::before {
    content: "";
    position: absolute;
    top: 50%; /* Vertically center the line */
    left: 0;
    width: 100%; /* Line width ends at the center of the circle */
    height: 1px; /* Line thickness */
    background-color: var(--ts_circle_line_color);
    transform: translateY(-50%); /* Correct vertical alignment */
}

.line-circle-home::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%; /* Start at the right edge of the column */
    width: 110px; /* Diameter of the circle */
    height: 110px; /* Diameter of the circle */
    background-color: transparent; /* Transparent circle */
    border: 1px solid var(--ts_p_details_circle_color); /* Red border */
    border-radius: 50%; /* Make it a circle */
    transform: translate(-50%, -50%); /* Center the circle on the right edge of the column */
}

.line-circle-home .arrow {
    position: absolute;
    top: 50%;
    right: 0; /* Position the arrow just before the circle */
    width: 0;
    height: 0;
    border-left: 5px solid var(--ts_circle_line_color); /* Arrowhead color */
    border-top: 3px solid transparent; /* Triangle shape */
    border-bottom: 3px solid transparent; /* Triangle shape */
    transform: translateY(-50%); /* Vertically center the arrow */
}

/*********** Circle Overlapping home mobile view*************/
.ts-home-circle-mobile {
    position: relative;
}

.circle-overlap {
    position: absolute; 
    width: 140px;
    height: 140px;
    background-color: transparent; /* Transparent background */
    border: 1px solid var(--ts_p_details_circle_color); /* Red outline */
    border-radius: 50%; /* Make it a circle */
    left: -55px; /* Move half of the circle off-screen */
    top: var(--ts_home_mobile_circle_top); /* Position it vertically relative to the parent container */
    transform: translateY(-50%); /* Ensure vertical centering */
    z-index: 1; /* Ensure it's above the text */
}

/********************** customer logo reel **********************/
.ts-customer-bg {
    background-color: var(--ts_customer_bg_color);
}

.ts-logo-reel-container {
    overflow: hidden;
    position: relative;
   /*  padding: var(--ts_spacer_s) 0; */
}

.ts-logo-reel {
    display: flex;
    align-items: center;
    animation: scroll-logos 30s linear infinite;
    transform: translateZ(0); /* Trigger hardware acceleration */
    will-change: transform; /* Optimize rendering */
}

.ts-logo-item {
    flex: 0 0 auto;
    margin-right: 20px;
}

.ts-logo {
    height: 20px;
    width: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Updated keyframes with translate3d */
@keyframes scroll-logos {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}
/*************************** project list SECTION *********************/
.ts-project-h1 {
    font-family: var(--ts_h1_font), sans-serif;
    font-size: var(--ts_h1_size_mobile);
    color: var(--ts_h1_color);
    line-height: 1.2;
    padding-left: 0;
}

.ts-project-frame {
    padding-left: var(--ts_spacer_xs);
    padding-right: var(--ts_spacer_xs);
}

.ts-home-proj-container {
    margin: 0;
    padding-top: 0;
    padding-left: 0;
    padding-right:0;
}

.ts-home-featured-container {
    position: relative; /* Make this container relative to position the text inside */
}

.ts-project-title-white * {
    color: white !important;
    text-decoration: none !important;
    font-family: var(--ts_project_title_font), sans-serif;
    font-size: var(--ts_project_title_size);
    margin-top: var(--ts_spacer_xxxs);
    margin-bottom: var(--ts_spacer_xxxs);
}

.ts-divider-white {
    margin-bottom: var(--ts_spacer_xxxs);
    margin-top: var(--ts_spacer_xxxs);
    border-top: 0.5mm solid white;
    line-height: 1px;
}

.project-text-overlay {
    position: absolute;
    top: 15px; /* 15px from the top of the image */
    left: 15px; 
    color: white !important; /* Adjust the color if needed for better visibility */
    z-index: 1; /* Ensure the text appears above the image */
    background: transparent; /* Optional: add a background for readability */
    width: 80%;
}

.project-text-overlay span {
    color: white !important; /* Adjust the color if needed for better visibility */
}

.ts-project-link {
    text-decoration: none !important;
}

/* Ensure all project images have the same width and height */
.ts-project-img {
    width: 100%; /* Make the image responsive to the container */
    height: 296px; /* Set a fixed height, adjust as needed */
    object-fit: cover; /* Scale and crop the image to cover the area */
    object-position: center; /* Center the image within the container */
}

.ts-home-neg-mar {
    margin-top: -36px;
    background-color: var(--ts_std_bg_color);
}

.ts-project-title {
    font-family: var(--ts_project_title_font), sans-serif;
    font-size: var(--ts_project_title_size);
    color: var(--ts_project_title_color);
    margin-top: var(--ts_spacer_xxxs);
    margin-bottom: var(--ts_spacer_xxxs);
}

.ts-divider-black {
    margin-bottom: var(--ts_spacer_xxxs);
    margin-top: var(--ts_spacer_xxxs);
    border-top: 0.5mm solid var(--ts_std_font_color);
    line-height: 1px;
}

.ts-more-link {
    font-size: var(--ts_std_font_size);   
    font-family: var(--ts_std_bold_font), sans-serif; 
    color: var(--ts_std_font_color);
    text-decoration: none;
    /* padding-right: var(--ts_spacer_xxs); */
}

/*********************** ABOUT INTRO SECTION ***************************/

.ts-about-circle {
    top: var(--ts_about_circle_top);
    margin-right: 140px;
}

.line-circle-about {
    position: relative;
    display: flex;
    align-items: center; 
}

.line-circle-about::before {
    content: "";
    position: absolute;
    top: 50%; 
    left: 0;
    width: 100%; 
    height: 1px; 
    background-color: var(--ts_circle_line_color);
    transform: translateY(-50%); 
}

.line-circle-about::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 100%;
    width: 140px; 
    height: 140px; 
    background-color: transparent; 
    border: 1px solid var(--ts_p_details_circle_color);
    border-radius: 50%; 
    transform: translate(-50%, -50%); 
}

.line-circle-about .arrow {
    position: absolute;
    top: 50%;
    right: 0; /* Position the arrow just before the circle */
    width: 0;
    height: 0;
    border-left: 5px solid var(--ts_circle_line_color); /* Arrowhead color */
    border-top: 3px solid transparent; /* Triangle shape */
    border-bottom: 3px solid transparent; /* Triangle shape */
    transform: translateY(-50%); /* Vertically center the arrow */
}

.ts-role-text {
    display: none; /* Default state is collapsed */
}

.ts-role-text.expanded {
    display: block; /* Expanded state */
}

.ts-about-intro-section-bg {
    background-color: var(--ts_about_intro_section_bg);
}

.ts-roles-section-bg {
    background-color: var(--ts_roles_section_bg);
}

.ts-about-aboutme {
    font-family: var(--ts_about_intro_section_h_font), sans-serif; 
    font-size: var(--ts_about_intro_section_h_size);  
    color: var(--ts_about_intro_section_color);
}

/********* ROLE SECTION ***********/
.ts-about-role-h {
    font-size: var(--ts_about_role_h_size);
    font-family: var(--ts_about_role_h_font), sans-serif; 
    color: var(--ts_about_role_h_color);
}

.ts-about-role-h-sm {
    font-size: var(--ts_about_role_h_size);
    font-family: var(--ts_std_font), sans-serif; 
    color: var(--ts_about_role_h_color);
    text-wrap:wrap;
    text-align: center;
    width: 100px;
    line-height: 1.12;
}

.ts-about-role-h-sm-active {
    font-size: var(--ts_about_role_h_size);
    font-family: var(--ts_about_role_h_font), sans-serif; 
    font-weight: bolder;
    color: var(--ts_role_highlight_color);
    text-wrap:wrap;
    text-align: center;
    width: 100px;
    line-height: 1.12;
}

.ts-about-roles-container {
    width: 315px;
    background-color: var(--ts_role_container_bg);
}

.ts-about-roles-container {
    padding: 1rem;
}

.ts-about-role-icon-sm {
    width: 28px;
    height: 28px;
}

.ts-about-role-icon {
    width: 28px;
    height: 28px;
}

.ts-about-roles-container-sm {
    /* Remove margins and paddings if necessary */
    margin: 0;
    padding: 0;
}

.ts-role-icon-color i {
    color: var(--ts_role_icon_color) !important;
}

.ts-about-role-h button {
    text-decoration: none;
}

.ts-about-arrow-down {
    text-decoration: none;
    color: var(--ts_about_role_h_color);
    font-size: var(--ts_about_role_h_size);
}

.ts-summernote.collapse {
    transition: height 0.35s ease;
}

/********* SKILLS SECTION ***********/
.ts-skills-section-bg {
    background-color: var(--ts_skills_section_bg);
}

.ts-skills-container {
    background-color: var(--ts_skills_section_card_bg_color);
    opacity: var(--ts_skills_section_card_bg_color_opacity);
    padding: 7px;
}

.ts-skills-container-text {
    font-size: var(--ts_skills_section_card_text_size); 
    font-family: var(--ts_skills_section_card_text_font), sans-serif;
    color: var(--ts_skills_section_card_text_color);
}

.ts-skills-heading {
    font-size: var(--ts_skills_section_h_size);
    font-family: var(--ts_skills_section_h_font), sans-serif;
    color: var(--ts_skills_section_h_color);
}

.ts-skills-text {
    font-size: var(--ts_skills_section_text_size); 
    font-family: var(--ts_skills_section_text_font), sans-serif;
    color: var(--ts_skills_section_text_color);
    line-height: 1.4;
}

/* skills_section_bar.html */
.ts-skills-progress-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: start; 
    box-sizing: border-box;
}

.ts-progress-bar-container {
    background-color: var(--ts_skills_section_card_bg_color);
    height: 6px;
}

.ts-progress-bar {
    background-color: var(--ts_skills_section_progress_bar);
}

.ts-skill-arrow-down {
    text-decoration: none;
    font-size: 12px; 
    color: var(--ts_skill_proficiency_text_color);
}

/* skills_section_grid.html */
.ts-skill-group-container {
    display: grid;
    grid-template-columns: 1fr; /* 1 column  for small devices */
    gap: 10px; 
}

.ts-skills-group-heading {
    font-size: var(--ts_skills_group_h_size); 
    font-family: var(--ts_skills_group_h_font), sans-serif;
    color: var(--ts_skills_group_h_color);
}

.ts-skill-proficiency-text {
    font-size: var(--ts_skills_section_text_size); 
    font-family: var(--ts_skills_section_text_font), sans-serif;
    color: var(--ts_skills_section_text_color);
    display: none;
    width: 100%;   /* Ensure it occupies full width */
    clear: both;   /* Start on a new line */
}

.ts-skill-text-hover {
    cursor: pointer; /* Optional: Indicate that the element is interactive */
}

.ts-skill-rating-text {
    font-size: var(--ts_skill_proficiency_text_size); 
    font-family: var(--ts_skill_proficiency_text_font), sans-serif;
    color: var(--ts_skill_proficiency_text_color);
    line-height: 1.4;
}

.ts-proficiency-heading {
    font-size: var(--ts_skill_proficiency_text_size); 
    font-family: var(--ts_skill_proficiency_text_font), sans-serif;
    color: var(--ts_skill_proficiency_text_color);
}

/*********** TOOLS SECTION ***********/
.ts-tools-section-bg {
    background-color: var(--ts_tools_section_bg);
}

.ts-tools-container {
    background-color: var(--ts_tools_section_card_bg_color);
    opacity: var(--ts_tools_section_card_bg_color_opacity);
    padding: 7px;
}

.ts-tools-heading {
    font-size: var(--ts_tools_section_h_size);
    font-family: var(--ts_tools_section_h_font), sans-serif;
    color: var(--ts_tools_section_h_color);
}
.ts-tools-container-text {
    font-size: var(--ts_tools_section_card_text_size); 
    font-family: var(--ts_tools_section_card_text_font), sans-serif;
    color: var(--ts_tools_section_card_text_color);
}

.ts-tools-text {
    font-size: var(--ts_tools_section_text_size); 
    font-family: var(--ts_tools_section_text_font), sans-serif;
    color: var(--ts_tools_section_text_color);
}

/*********** EMPLOYMENT SECTION ***********/
.ts-employment-section-bg {
    background-color: var(--ts_employment_section_bg);
}

.ts-employment-section-h {
    font-size: var(--ts_employment_section_h_size);
    font-family: var(--ts_employment_section_h_font), sans-serif; 
    color: var(--ts_employment_section_h_color);
}

.ts-employer-name {
    font-size: var(--ts_employer_name_size_mobile);
    font-family: var(--ts_employment_section_h_font), sans-serif; 
    color: var(--ts_employment_comp_name_color);
}

.ts-employment-section-p {
    font-size: var(--ts_employment_section_p_size);   
    font-family: var(--ts_employment_section_p_font), sans-serif; 
    color: var(--ts_employment_section_color);
    line-height: 1.39;
}
/* Adjustments to the flex container */
.d-flex.align-items-center.me-2 {
    flex-wrap: nowrap;      /* Prevent items from wrapping */
    position: relative;     /* For absolute positioning of the circle */
}

/* Style for the circle */
.circle-container {
    width: 55px;       /* Adjust the size as needed */
    height: 55px;      /* Adjust the size as needed */
    border-radius: 50%;
    border: 1px solid var(--ts_p_details_circle_color);
    flex-shrink: 0;     /* Prevent the container from shrinking */
    position: absolute;
    right: 0;          /* Align to the right end */
    z-index: 1;        /* Ensure the circle is on top */
}

/* Style for the link */
.ts-cv-link {
    font-size: 11px;   
    font-family: var(--ts_employment_section_p_font), sans-serif; 
    color: var(--ts_employment_section_color);
    text-decoration: none;
    white-space: nowrap;       /* Prevent text wrapping */
    padding-right: 10px;       /* Add right padding to accommodate the circle overlap */
    cursor: pointer;
    z-index: 2; 
}

.ts-cv-link:visited {
    color: var(--ts_employment_section_color); /* Ensure the visited color is the same */
    text-decoration: none; /* Ensure no underline for visited links */
}

/********* AWARDS SECTION ***********/
.ts-awards-section-bg {
    background-color: var(--ts_awards_section_bg);
}

.ts-awards-logo {
    width: auto;
    height: 60px;
}

.ts-awards-header {
    font-size: var(--ts_awards_section_h_size);
    font-family: var(--ts_awards_section_h_font), sans-serif;
    color: var(--ts_awards_section_h_color);
}

.ts-awards-heading {
    font-size: var(--ts_awards_section_heading_size);
    font-family: var(--ts_awards_section_heading_font), sans-serif;
    color: var(--ts_awards_section_heading_color);
}

.ts-awards-text {
    font-size: var(--ts_awards_section_text_size); 
    font-family: var(--ts_awards_section_text_font), sans-serif;
    color: var(--ts_awards_section_text_color);
    line-height: 1.4;
}

/*********** CERTIFICATES SECTION ***********/
.ts-certificates-logo {
    width: 15px;
    height: 15px;
}

.ts-certificates-logo-color {
    color: var(--ts_certificates_color);
}


.ts-certificates-section-bg {
    background-color: var(--ts_certificates_section_bg);
}

.ts-certificates-header {
    font-size: var(--ts_certificates_section_h_size);
    font-family: var(--ts_certificates_section_h_font), sans-serif;
    color: var(--ts_certificates_section_h_color);
}

.ts-certificates-heading {
    font-size: var(--ts_certificates_section_heading_size);
    font-family: var(--ts_certificates_section_heading_font), sans-serif;
    color: var(--ts_certificates_section_heading_color);
}

.ts-certificates-text {
    font-size: var(--ts_certificates_section_text_size); 
    font-family: var(--ts_certificates_section_text_font), sans-serif;
    color: var(--ts_certificates_section_text_color);
    line-height: 1.4;
}


/*********** PRESS SECTION ***********/
.ts-press-section-bg {
    background-color: var(--ts_press_section_bg);
}

.ts-about-press-heading {
    font-size: var(--ts_press_section_h_size);
    font-family:var(--ts_press_section_h_font), sans-serif;
    color: var(--ts_press_h_color);
}

.ts-about-press-text {
    font-size: var(--ts_press_section_p_size); 
    font-family:var(--ts_press_section_p_font), sans-serif;
    color: var(--ts_press_p_color);
    text-decoration: underline;
}

.ts-about-how-footer {
    font-size: 10px;
}

/************************ project_details *************************/
.ts-p-details-category {
    background-color:  var(--ts_project_categories_bg);
    font-family: var(--ts_std_font), sans-serif;
    font-size: var(--ts_p_details_categ_size);
    color: var(--ts_std_font_color);
    margin-bottom: 2px;
    margin-top: 2px;
    margin-left: 0;
    margin-right: 3px;
    padding: 2px 4px;
}

.ts-p-detail-heading {
    color: var(--ts_p_details_heading_color);
    font-family: var(--ts_p_details_heading_font), sans-serif;
    font-size: var(--ts_p_details_heading_font_size_mobile);
    margin: 0;
    line-height: 1.15;
}

.ts-p-detail-sect-h1 {
    color: var(--ts_p_details_h_font_color);
    font-family: var(--ts_p_details_h_font), sans-serif;
    font-size: var(--ts_p_details_h_size);
    margin: 0;
    line-height: 1.15;
}

.ts-p-detail-sect-h2 {
    color: var(--ts_p_details_h2_color);
    font-family: var(--ts_p_details_h_font), sans-serif;
    font-size: var(--ts_p_details_h_size);
    margin: 0;
    line-height: 1.15;
}

.ts-p-detail-sect-text {
    padding-left: 0;
}

/* needs media query to desktop */
.ts-p-detail-padding-top {
    padding-top: var(--ts_spacer_s);
}

/***********  Circle Element with Arrow *************/
.line-circle-1 {
    position: relative;
    display: flex;
    align-items: center; /* Vertically center the line */
}

.line-circle-1::before {
    content: "";
    position: absolute;
    top: 50%; /* Vertically center the line */
    left: 0;
    width: 100%; /* Line width ends at the center of the circle */
    height: 1px; /* Line thickness */
    background-color: var(--ts_circle_line_color);
    transform: translateY(-50%); /* Correct vertical alignment */
}

.line-circle-1::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0; /* Align the circle's right side to the column's right edge */
    width: 35px; /* Diameter of the circle (15px radius) */
    height: 35px;
    background-color: transparent; /* Transparent circle */
    border: 1px solid var(--ts_p_details_circle_color); /* Red border */
    border-radius: 50%; /* Make it a circle */
    transform: translate(50%, -50%); /* Shift the circle to place its center at the right edge */
}

/* Arrow at the end of the line */
.line-circle-1 .arrow {
    position: absolute;
    top: 50%;
    right: 0; /* Position the arrow just before the circle */
    width: 0;
    height: 0;
    border-left: 5px solid var(--ts_circle_line_color); /* Arrowhead color */
    border-top: 3px solid transparent; /* Triangle shape */
    border-bottom: 3px solid transparent; /* Triangle shape */
    transform: translateY(-50%); /* Vertically center the arrow */
}

.line-circle-2 {
    position: relative;
    display: flex;
    align-items: center; /* Vertically center the line */
}

.line-circle-2::before {
    content: "";
    position: absolute;
    top: 50%; /* Vertically center the line */
    left: 0;
    width: 100%; /* Line width ends at the center of the circle */
    height: 1px; /* Line thickness */
    background-color: var(--ts_circle_line_color);
    transform: translateY(-50%); /* Correct vertical alignment */
}

.line-circle-2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%; /* Start at the right edge of the column */
    width: 175px; /* Diameter of the circle */
    height: 175px; /* Diameter of the circle */
    background-color: transparent; /* Transparent circle */
    border: 1px solid var(--ts_p_details_circle_color); /* Red border */
    border-radius: 50%; /* Make it a circle */
    transform: translate(-50%, -50%); /* Center the circle on the right edge of the column */
}

.line-circle-2 .arrow {
    position: absolute;
    top: 50%;
    right: 0; /* Position the arrow just before the circle */
    width: 0;
    height: 0;
    border-left: 5px solid var(--ts_circle_line_color); /* Arrowhead color */
    border-top: 3px solid transparent; /* Triangle shape */
    border-bottom: 3px solid transparent; /* Triangle shape */
    transform: translateY(-50%); /* Vertically center the arrow */
}

.p-element {
    position: relative;
    display: flex;
    align-items: center; /* Vertically centers the text within the row */
    height: 100%; /* Ensure the p element takes up the full height of the row */
}


/*********** Section Image Gallery **************/
.gallery-container-1-img {
    display: grid;
    grid-template-columns: 1fr; /* 1 column */
    gap: 10px; 
}

.gallery-item-vertical-1 {
    padding: 0;
    text-align: center;
}

.gallery-item-vertical-1 img {
    width: 100%; 
    height: auto;
    max-height: 600px; 
    object-fit: cover; 
}

.gallery-container-2-img {
    display: grid;
    grid-template-columns: 1fr; /* 1 column in mobile view -> 2 in desktop */
    gap: 0; 
}

.gallery-item-vertical-2 {
    padding: 0;
    text-align: center;
}
.gallery-item-vertical-2 img {
    width: 100%; 
    height: 500px;
    /* max-height: 500px; */ 
    object-fit: cover; 
}

.gallery-items-1-img, .gallery-items-2-img {
    text-align: center;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Start with a slight downward offset */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Fade and slide effect */
    display: none; /* Start by hiding all items */
}
.gallery-items-1-img.show, .gallery-items-2-img.show {
    display: block;
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* No offset, slide up to original position */
}

.gallery-items-1-img img,
.gallery-items-2-img img {
    width: 100%; 
    /* height: auto; */
    max-height: fit-content;
    object-fit: cover; 
}

.img-1-nav-buttons {
    text-align: center;
    margin-top: var(--ts_spacer_xs);
    width: 100%;
    cursor: pointer;
    padding: 0 15px;
    margin-left: 10px;
    margin-right: 10px;
}

.img-2-nav-buttons {
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    justify-content: flex-end; 
    margin-top: var(--ts_spacer_xs);
    width: 100%; 
    grid-column: span 2; /* Span across two image columns */
}

.ts-button {
    font-size: 20px;
    padding: 0 20px;
    font-family: var(--ts_std_font), sans-serif;
    color: var(--ts_std_font_color);
    border: none;
    background-color: transparent;
}

/* Section Video */

.ts-video {
/*     display: flex; */
    padding: var(--ts_spacer_xs) var(--ts_spacer_xxxs) 0 var(--ts_spacer_xxxs);
    margin: 0;
}

.ts-video-item {
    display: flex;
    justify-content: center; /* Align video to the left of the column */
    align-items: center;
    padding: var(--ts_spacer_xs) 0 var(--ts_spacer_s) 0;
}

.ts-video-item video {
    width: calc(100% - 24px); /* Reduce video width by 24px */
    height: auto;
    max-width: 100%; /* Prevent video from overflowing */
    box-sizing: border-box; /* Include padding in the element’s total width */
}

/******************* Learning Section **********************/
.ts-learning-container {
    width: 185px;
    background-color: var(--ts_learning_card_bg_color);
    padding-top: var(--ts_spacer_xxs);
    padding-bottom: var(--ts_spacer_xxs);
    padding-left: var(--ts_spacer_xs);
    padding-right: var(--ts_spacer_xs);
    margin-top: var(--ts_spacer_xxs);
    margin-bottom: var(--ts_spacer_xxxs);
}

.ts-learning-section-heading {
    text-align: center;
    padding-top:0;
    margin-bottom: 0;
}

.ts-learning-heading {
    font-size: var(--ts_learning_heading_size);
    font-family:var(--ts_learning_heading_font), sans-serif;
    color: var(--ts_learning_heading_color);
    padding-left: 2px;
    padding-top: 6px;
    padding-bottom: 4px;
}

.ts-learning-group {
    padding-bottom: var(--ts_spacer_m);
}

/******************* Contact Section **********************/
.ts-contact-circle {
    padding-top: 27px;
}

.line-circle-contact {
    position: relative;
    display: flex;
    align-items: center; /* Vertically center the line */
}

.line-circle-contact::before {
    content: "";
    position: absolute;
    top: 50%; /* Vertically center the line */
    left: 0;
    width: 100%; /* Line width ends at the center of the circle */
    height: 1px; /* Line thickness */
    background-color: var(--ts_circle_line_color);
    transform: translateY(-50%); /* Correct vertical alignment */
}

.line-circle-contact::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%; /* Start at the right edge of the column */
    width: 143px; /* Diameter of the circle */
    height: 143px; /* Diameter of the circle */
    background-color: transparent; /* Transparent circle */
    border: 1px solid var(--ts_p_details_circle_color); /* Red border */
    border-radius: 50%; /* Make it a circle */
    transform: translate(-50%, -50%); /* Center the circle on the right edge of the column */
}

.line-circle-contact .arrow {
    position: absolute;
    top: 50%;
    right: 0; /* Position the arrow just before the circle */
    width: 0;
    height: 0;
    border-left: 5px solid var(--ts_circle_line_color); /* Arrowhead color */
    border-top: 3px solid transparent; /* Triangle shape */
    border-bottom: 3px solid transparent; /* Triangle shape */
    transform: translateY(-50%); /* Vertically center the arrow */
}

.ts-btn-send {
    border: 1px solid var(--ts_std_font_color);
    border-radius: 5px;
    color:  var(--ts_std_font_color);
    background-color: var(--ts_std_bg_color);
}

/* Style for form fields */
form .form-control {
    background-color: var(--ts_std_bg_color); /* Background color for form fields */
    border: none; /* Remove default borders */
    border-bottom: 1px solid var(--ts_std_font_color); /* Add bottom border */
    border-radius: 0; /* Remove border radius */
    box-shadow: none; /* Remove any box shadow */
}

/* Style for form fields when focused */
form .form-control:focus {
    background-color: white; /* Keep background color on focus */
    border-bottom: 1px solid var(--ts_std_font_color); /* Keep bottom border on focus */
    outline: none; /* Remove default outline */
    box-shadow: none; /* Remove any box shadow */
}

form label {
    color: var(--ts_std_font_color); /* Label color */
    font-size: var(--ts_std_font_size); /* Label font size */
    font-family: var(--ts_std_font), sans-serif; /* Label font family */
}

/*********************** IMPRINT SECTION ***************************/

.ts-imprint-circle {
    top: var(--ts_about_circle_top);
    margin-right: 140px;
}

.line-circle-imprint {
    position: relative;
    display: flex;
    align-items: center; 
}

.line-circle-imprint::before {
    content: "";
    position: absolute;
    top: 50%; 
    left: 0;
    width: 100%; 
    height: 1px; 
    background-color: var(--ts_circle_line_color);
    transform: translateY(-50%); 
}

.line-circle-imprint::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 100%;
    width: 140px; 
    height: 140px; 
    background-color: transparent; 
    border: 1px solid var(--ts_p_details_circle_color);
    border-radius: 50%; 
    transform: translate(-50%, -50%); 
}

.line-circle-imprint .arrow {
    position: absolute;
    top: 50%;
    right: 0; /* Position the arrow just before the circle */
    width: 0;
    height: 0;
    border-left: 5px solid var(--ts_circle_line_color); /* Arrowhead color */
    border-top: 3px solid transparent; /* Triangle shape */
    border-bottom: 3px solid transparent; /* Triangle shape */
    transform: translateY(-50%); /* Vertically center the arrow */
}

.ts-imprint-heading {
    font-size: var(--ts_imprint_heading_size);
    font-family: var(--ts_imprint_heading_font), sans-serif;
    color: var(--ts_imprint_heading_color);
}

.ts-imprint-section-bg {
    background-color: var(--ts_imprint_section_bg);
}

/* ******************** MEDIA QUERIES ******************* */
@media (min-width: 576px) {
    .ts-h1 {
        font-size: var(--ts_h1_size_desk);
        line-height: 1.2;
    }

    .ts-project-h1 {
        font-size: var(--ts_h1_size_desk);
        line-height: 1.2;
        padding-left: var(--ts_gap_spacer);
    }

    .ts-project-frame {
        padding-left: 0;
        padding-right: 0;
    }

    .ts-home-proj-container {
        padding-left: var(--ts_gap_spacer);
        padding-right: var(--ts_gap_spacer);
    }

    /* for about latest positions section (2) */
    .ts-employment-section-h {
        font-size: var(--ts_employment_section_h_size_desktop);
    }

    .ts-employer-name {
        font-size: var(--ts_employer_name_size_desktop);
    }

    .ts-spacer-m-resp {
        padding-top: var(--ts_spacer_lg);
    }
    
    .ts-spacer-xs-resp {
        padding-top: var(--ts_spacer_s); /* s for larger screens */
    }

    .ts-spacer-s-resp {
        padding-top: var(--ts_spacer_m); /* m for larger screens */
    }
    
    .ts-spacer-s_lg-resp {
        padding-top: var(--ts_spacer_lg); /* m for larger screens */
    }

    .ts-spacer-bottom-s-resp {
        padding-bottom: var(--ts_spacer_m);
    }

    .ts-spacer-bottom-m-resp {
        padding-bottom: var(--ts_spacer_lg);
    }

    .ts-employment-section-h {
        font-size: var(--ts_employment_section_h_size_desktop);
    }

    /* skills_section_grid.html */
    .ts-skill-group-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 column */
        gap: 10px; 
    }

    .ts-p-detail-heading {
        font-size: var(--ts_p_details_heading_font_size);
        line-height: 1.12;
    }
    
    .ts-p-detail-sect-text {
        padding-left: 5px;
    }

    /** Section Image Gallery ***/
    .gallery-container-2-img {
        display: grid;
        grid-template-columns: 1fr 1fr; /* becomming 2 columns */
        gap: 10px; 
    }

    .gallery-item-vertical-1 {
        padding: 0 0 0 5px;
        text-align: start;
    }   

    .gallery-item-vertical-1 img {
        width: auto; 
        height: auto;
        max-width: 100%;
        object-fit: cover; 
    }

    .gallery-item-vertical-2 img {
        width: 100%; 
        height: 500px;
        object-fit: cover; 
    }

    .gallery-items-1-img img {
        width: 100%; 
        height: auto;
        max-height: fit-content; 
        object-fit: cover; 
    }

    .gallery-items-2-img img {
        width: 100%; 
        /* height: auto;  */
        /* max-width: 100%; */
       /*  object-fit: cover; */ 
    }

}
