/* FILE: CSS/sections.css */

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

/* Container styling */
.divisions-container {
font-family: Nunito, sans-serif;
max-width: 1400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
overflow: hidden;
}

/* Tabs navigation styling */
.tabs {
display: flex;
flex-wrap: wrap;
margin-bottom: 10px;
gap: 5px;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

.tab-link {
flex: 1 1 0;
text-align: center;
background-color: #f2f2f2;
border: none;
outline: none;
cursor: pointer;
padding: 20px;
margin-right: 0;
border-radius: 15px 15px 0 0;
font-size: larger;
font-weight: 600;
text-transform: uppercase;
transition: background-color 0.3s, box-shadow 0.3s;
}

.tab-link:hover {
background-color: #d8d8d8;
}

.tab-link.active {
background-color: #03508c;
color: #fff;
}

/* Tabs content styling */
.tab-content {
display: none;
padding: 10px 0;
}

.tab-content.active {
display: block;
animation: fadeIn 1.0s ease forwards;
}

/* Image placeholder styling */
.image-placeholder {
width: 100%;
text-align: center;
padding: 20px 20px;
background-color: #f8f9fa;
border: 3px dashed #ccc; /* was 2px dashed #ddd - every page that uses this class ends up overriding it to 3px/#ccc locally anyway, so this base default just never matched */
border-radius: 10px;
margin: 20px 0;
}

.section-image {
max-width: 100%;
height: auto;
max-height: 400px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-placeholder img {
border-radius: 10px; 
}

/* --------------------------------------------------------
   DARK MODE
   NOTE: this was the actual bug behind the "ghost text" in the
   screenshot - .image-placeholder's background stayed stuck at
   its light-mode #f8f9fa with no dark override at all, while the
   text inside (via .text-content on the same element, defined in
   about_cav.php) correctly went white. White text on a still-light
   background is what read as "faded/invisible."
   --------------------------------------------------------
*/
.darkmode .image-placeholder {
    background-color: var(--base-variant);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------
   LIGHT/DARK IMAGE SWAP
   Same pattern as the contact icons (includes/contact-us.php) and
   the footer seal (includes/footer.php): two <img> tags per slot,
   only one visible at a time depending on mode. Reusable for any
   image inside .image-placeholder that has a light-background
   version needing a dark counterpart - not just the org charts on
   about_sections.php.
   --------------------------------------------------------
*/
.org-chart-dark {
    display: none;
}

.darkmode .org-chart-light {
    display: none;
}

.darkmode .org-chart-dark {
    display: block;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media screen and (max-width: 768px) {
.divisions-container {
padding: 15px;
overflow-x: hidden;
  }
.tabs {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 5px;
  }
.tab-link {
border-radius: 8px;
padding: 15px 10px;
font-size: 14px;
margin-bottom: 0; /* Remove individual margin */
  }
/* First tab takes full width */
.tab-link:nth-child(1) {
flex: 1 1 100%;
width: 100%;
  }
/* Remaining tabs take 1/3 width each */
.tab-link:nth-child(n+2) {
flex: 1 1 calc(33.333% - 4px);
width: calc(33.333% - 4px);
min-width: 0; /* Allow shrinking if needed */
  }
.image-placeholder {
/*padding: 30px 15px; - like totally */
margin: 15px 0;
  }
.section-image {
max-height: 250px;
  }
}

/* This page was added/created last Saturday */