/*
Theme Name: KI Market Intelligence
Theme URI: https://ki-marketintelligence.com/
Author: Roopesh Jain
Author URI: https://ki-marketintelligence.com/
Description: A minimal theme for WordPress development.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ki-marketintelligence
*/

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
}

h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #7F7F7F;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #ddd;
}

.header-left {
  display: flex;
  gap: 30px;
}

.header-left a {
  text-decoration: none;
  color: #007B61;
  font-weight: 600;
}

.header-left a.inactive {
  color: #999;
}

.header-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

/* General nav link styles */
.header-left .nav-link {
  position: relative;
  padding-left: 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* The square box before each link */
.header-left .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Active = Green box + Green text */
.header-left .nav-link.active {
  color: #007B61;
}

.header-left .nav-link.active::before {
  background-color: #007B61;
}

/* Inactive = Grey box + Grey text */
.header-left .nav-link.inactive {
  color: #7F7F7F;
}

.header-left .nav-link.inactive::before {
  background-color: #7F7F7F;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-left a {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.header-left {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-title {
  font-weight: 600;
  color: #007B61;
  text-decoration: none;
  margin-bottom: 6px;
}

/* Sub-links under nav-title */
.nav-group .nav-link {
  position: relative;
  padding-left: 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  font-size: 15px;
}

/* Colored squares */
.nav-group .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Active link = green */
.nav-group .nav-link.active {
  color: #007B61;
}

.nav-group .nav-link.active::before {
  background-color: #007B61;
}

/* Inactive link = gray */
.nav-group .nav-link.inactive {
  color: #7F7F7F;
}

.nav-group .nav-link.inactive::before {
  background-color: #7F7F7F;
}

/* Responsive: Stack left menu */
@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    gap: 20px;
  }
}



.site-logo img,
.site-logo svg {
  height: 80px !important;
  width: 100% !important;
}

.container {
  padding: 20px 40px;
}

/* Form Layout */
.acf-form {
  margin: 0 auto;
}

/* Field Wrappers */
.acf-field {
  margin-bottom: 24px;
}

.acf-field label {
  font-weight: 600;
  color: #7F7F7F;
  margin-bottom: 6px;
  display: block;
}
.acf-file-uploader {
  font-weight: 600;
  color: #7F7F7F;
  margin-bottom: 6px;
  display: block;
}
.acf-gallery, .acf-fields.-border {
    border: 1px solid #ccc;
    border-radius: 4px;
}
.acf-gallery .acf-gallery-main {
    border-radius: 4px;
}
.acf-gallery .acf-gallery-toolbar {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.acf-repeater > .acf-table {
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

/* Input / Textarea / Select Styling */
.acf-form input[type="text"],
.acf-form input[type="url"],
.acf-form input[type="number"],
.acf-form input[type="email"],
.acf-form textarea,
.acf-form select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Placeholder */
.acf-form input::placeholder,
.acf-form textarea::placeholder {
  color: #A6A6A6;
}

/* Buttons */
.acf-form-submit input[type="submit"],
.acf-form-submit button {
  background: #007B61;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 30px;
}

.acf-form-submit input[type="submit"]:hover,
.acf-form-submit button:hover {
  background: #004d3b;
}

/* Repeater: Add Row Links */
.acf-repeater .acf-actions .acf-button {
  background: none !important;
  border: none;
  color: #007B61;
  font-weight: 500;
  padding-left: 0;
  text-decoration: underline;
}

.acf-repeater .acf-actions .acf-button:hover {
  color: #004d3b;
  text-decoration: none;
}

/* Link styling */
a,
a:visited,
.acf-button.button-primary,
.acf-actions a {
  color: #007B61;
  text-decoration: underline;
  font-weight: 500;
}

a:hover,
.acf-actions a:hover {
  color: #004d3b;
  text-decoration: none;
}

/* Document Link */
a.document-link {
  display: inline-block;
  margin-top: 6px;
  color: #007B61;
  text-decoration: underline;
  font-weight: 500;
}

a.document-link:hover {
  color: #004d3b;
}

/* Tab Button Styles */
.acf-tab-button {
  color: #007B61 !important;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  transition: color 0.2s ease;
}

.acf-tab-button.-active {
  border-bottom: 2px solid #007B61;
  color: #004d3b !important;
}

.acf-tab-button:hover {
  color: #004d3b !important;
  text-decoration: underline;
}

.acf-tab-wrap {
  overflow: hidden !important;
}

.acf-fields > .acf-tab-wrap .acf-tab-group li.active a,
.acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
  background: #007B61 !important;
  color: white !important;
  text-decoration: none !important;
}

.acf-fields > .acf-tab-wrap {
  background: #fff !important;
}

.acf-tab-group {
  padding: 0px !important;
}

.acf-fields > .acf-field {
  padding: 10px 0px !important;
  display: flex;
}

.acf-field-group .acf-fields > .acf-field {
  padding: 10px !important;
  display: flex;
}

.acf-fields>.acf-field {
    border:0px !important;
}
.acf-field.acf-field-email, .acf-field.acf-field-projects, .acf-field.acf-field-stock-traded, .acf-field.acf-field-management, .acf-field.acf-field-shareholders, .acf-field.acf-field-business-sector, .acf-field.acf-field-documents {
    border-top: 1px solid #ccc !important;
    margin-top: 20px !important;
    padding-top: 30px !important;
}
.acf-fields > .acf-field.acf-field-customer-projects, .acf-fields > .acf-field.acf-field-products, .acf-fields > .acf-field.acf-field-news {
    display: flex;
    flex-direction: column;
}
.acf-field.acf-field-customer-projects .acf-label, .acf-field.acf-field-customer-projects .acf-input, .acf-field.acf-field-products .acf-label, .acf-field.acf-field-products .acf-input, .acf-field.acf-field-news .acf-label, .acf-field.acf-field-news .acf-input {
    width: 100%;
}
.acf-field .acf-label {
    float: left;
    width: 16%;
    margin: 0;
}
.acf-field .acf-input {
    float: left;
    width: 84%;
    margin: 0;
}
.acf-fields>.acf-tab-wrap {
    margin-bottom: 20px;
    margin-top: 40px;
}
.acf-tab-group li a {
    border-bottom:1px solid #ccc !important
}
.acf-form-submit {
    text-align: right;
}

/* Grid Layout */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* Lightbox Preview */
.preview-image {
  max-width: 150px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.preview-image:hover {
  transform: scale(1.05);
}

/* Page Titles */
.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #007B61;
}

/* View player page */
.acf-view-only input,
.acf-view-only select,
.acf-view-only textarea {
  pointer-events: none;
  background-color: #fff;
  color: #555;
  border: 0px !important;
}

.acf-view-only input[type="submit"],
.acf-view-only button,
.acf-view-only .acf-button {
  display: none !important;
}

.acf-view-only .acf-actions {
  display: none !important;
}

.acf-rendered-html {
    color: #333;
}

.acf-view-only .acf-field input[type="file"],
.acf-view-only .acf-field .acf-button {
  display: none !important;
}

.acf-view-only .acf-repeater .acf-row-handle,
.acf-view-only .acf-repeater .acf-row-actions {
  display: none !important;
}

.acf-view-only .acf-form ::placeholder {
  color: transparent !important;
}

.acf-view-only .player-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 24px;
}

.acf-view-only .company-title {
  font-size: 32px;
  font-weight: 600;
  color: #7F7F7F;
  margin: 0;
}

.acf-view-only .right-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.acf-view-only .last-updated {
  font-size: 14px;
  color: #A6A6A6;
}

.acf-view-only .edit-button {
    background-color: #007B61;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration:none;
}

.acf-view-only .edit-button:hover {
  background-color: #004d3b;
}

.acf-view-only .acf-file-uploader .file-icon {
    padding-right:0px !important;
}
.acf-view-only .acf-gallery-side, .acf-view-only .acf-gallery-toolbar, .acf-view-only .acf-gallery-remove {
    display: none !important;
}
.acf-view-only .acf-gallery-main {
    right: 0px;
}

/* Show All Players */

.player-directory {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #7F7F7F;
  margin: 0 auto;
}

/* Search Bar */
.player-directory .search-bar {
  margin-bottom: 24px;
}
.player-directory input[type="text"] {
  width: 100%;
  max-width: 460px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #CFCFCF;
  border-radius: 4px;
  background: #fff;
  color: #333;
  box-shadow: none;
  outline: none;
  transition: border 0.2s ease;
}
.player-directory input[type="text"]::placeholder {
  color: #A6A6A6;
}
.player-directory input[type="text"]:focus {
  border-color: #007B61;
}

.player-directory .filters-body {
    margin-top:15px;
    margin-bottom:15px;
}
/* Filters Layout */
.player-directory .filters-header,
.player-directory .filters-body,
.player-directory .players-table .row {
  display: grid;
  grid-template-columns:
    15%   /* Company */
    15%   /* Employees */
    20%   /* Technologies */
    15%   /* Projects */
    20%   /* Markets */
    15%;  /* Revenue */
  gap: 0;
  align-items: start;
}
/* Headers */
.player-directory .filters-header .col {
  font-weight: 600;
  color: #7F7F7F;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* range filter */
.range-filter {
  display: flex;
  flex-direction: column;
  width: 90%;
}

.range-filter label {
  margin-bottom: 20px;
}

.slider-wrapper {
  position: relative;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 24px;
  height: 24px;
  background-color: #007B61;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  pointer-events: all;
  width: 24px;
  height: 24px;
  background-color: #007B61;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb:hover {
  background-color: #007B61;
}

input[type=range]::-webkit-slider-thumb:active {
  background-color: #007B61;
}

input[type="range"] {
  -webkit-appearance: none; 
  appearance: none;
  height: 2px;
  width: 100%;
  position: absolute;
  background-color: #007B61;
  pointer-events: none;
}

#minEmployees, #minProjects, #minRevenue {
  height: 0;
  z-index: 1;
}


/* range filter */



/* Filter Body Scrollables */
.player-directory .filters-body .col {
    margin-right:10px;
}
.player-directory .filters-body .scrollable {
  border-radius: 4px;
  max-height: 120px;
  overflow-y: auto;
  background: #fff;
}
.player-directory .filters-body .scrollable label {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #7F7F7F;
  margin-bottom: 6px;
}

/* Table Data Rows */
.player-directory .players-table .row {
  border: 1px solid #ddd;
  display: flex;
  align-items: normal;
}
.player-directory .players-table .row:last-child {
  border-bottom:1px solid #ddd;
}
.player-directory .players-table .row .col {
  padding: 10px 8px;
  font-size: 15px;
  border-right: 1px solid #ddd;
  width: 15%;
}
.player-directory .players-table .row .col.technologies, .player-directory .players-table .row .col.markets {
  width: 20%;
}
.player-directory .players-table .row .col:last-child {
  border-right: none;
}

/* Company link */
.player-directory .players-table .col.company a {
  color: #007B61;
  font-weight: 600;
  text-decoration: none;
}
.player-directory .players-table .col.company a:hover {
  text-decoration: underline;
}

/* Hover on rows */
.player-directory .players-table .row:hover {
  background-color: #f8fdfc;
}



.player-directory .sort-button {
    background: none; 
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0px;
    font-weight: 600;
    color: #7F7F7F;
    font-size: 16px;
    display: flex;
}

.player-directory .sort-icon {
  width: 12px;
  height: 12px;
  fill: #7F7F7F;
  transition: transform 0.2s ease, fill 0.2s ease;
  margin-top:3px;
  margin-left:5px;
}

.player-directory .sort-button.active .header-label {
    color: #007B61;
}

.player-directory .sort-button.active .sort-icon {
  fill: #007B61;
}

/* Ascending (arrow up) */
.player-directory .sort-button.asc .sort-icon {
  transform: rotate(180deg);
}

/* Descending (arrow down) */
.player-directory .sort-button.desc .sort-icon {
  transform: rotate(0deg);
}





/* TML Form Styling */
.tml-action h1 {
    text-align: center;
    margin-top: 60px;
}
.tml-action form {
  max-width: 400px;
  margin: 10px auto;
  padding: 30px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
}

.tml-action form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #7f7f7f;
}

.tml-action form input[type="text"],
.tml-action form input[type="password"],
.tml-action form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}
.tml-action form input[type="checkbox"] {
    margin: 0px;
}

.tml-action form button[type="submit"] {
  background: #007B61;
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
}
.tml-action form button[type="submit"]:hover {
  background: #004d3b;  
}
.tml-action .tml-links {
  text-align: center;
  margin-top: 12px;
  list-style: none;
}
.tml-action .tml-links a {
  color: #007B61;
  text-decoration: none;
  font-weight: 500;
}
.tml-action .tml {
    max-width: 400px;
    margin: 0 auto;
}

.acf-fancybox-image img {
    cursor: zoom-in;
    display: inline-block;
}