/*
Theme Name: The Technical Navigator Child
Theme URI: https://tecnavigator.com
Author: The Technical Navigator Team
Author URI: https://tecnavigator.com
Description: Child theme for The Technical Navigator Classic Theme. Use this child theme for custom PHP modifications and style overrides without losing parent updates.
Template: tecnavigator-classic
Version: 3.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecnavigator-child
*/

/* Custom child theme CSS overrides */
.custom-logo,
.custom-logo-link img,
.tn-brand img,
.site-header img {
  max-height: 52px !important;
  width: auto !important;
  max-width: 270px !important;
  object-fit: contain !important;
  display: block !important;
}

.custom-logo-link {
  display: flex !important;
  align-items: center !important;
  max-height: 52px !important;
  max-width: 270px !important;
  overflow: hidden !important;
}

/* ==========================================================================
   Layout Shortcode Rules (.row_2_grid, .col_item, .row_3, .row_4)
   ========================================================================== */
.row_2_grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 24px auto !important;
}

.row_2_grid > p {
  display: contents !important;
}

.row_2_grid .col_item,
.row_2_grid > div,
.row_2_grid > p > .col_item {
  width: calc(50% - 12px) !important;
  flex: 0 0 calc(50% - 12px) !important;
  max-width: calc(50% - 12px) !important;
  box-sizing: border-box !important;
}

.col_item {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.col_item > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.row_3,
.row-3,
.tn-row-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

.row_4,
.row-4,
.tn-row-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .row_3,
  .row-3,
  .tn-row-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .row_2_grid .col_item,
  .row_2_grid > div,
  .row_2_grid > p > .col_item {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .row_3,
  .row-3,
  .tn-row-3,
  .row_4,
  .row-4,
  .tn-row-4 {
    grid-template-columns: 1fr !important;
  }
}





