/* ==========================================================================
   BEK SUPPLIERS LTD - CORPORATE COMPANY PROFILE STYLESHEET
   Official Corporate Profile Edition
   ========================================================================== */

:root {
  --primary-navy: #070D1E;
  --secondary-navy: #111E38;
  --navy-light: #1C2B4C;
  --maritime-teal: #00A896;
  --teal-light: #02C39A;
  --teal-glow: rgba(0, 168, 150, 0.15);
  --industrial-amber: #D97706;
  --amber-light: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.15);
  
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-muted: #F1F5F9;
  
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-color: #E2E8F0;
  --border-dark: #334155;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--maritime-teal);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--teal-light);
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP ACTION BAR (STICKY)
   ========================================================================== */
.profile-top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.profile-brand-logo {
  height: 38px;
  width: auto;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.profile-brand-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.profile-brand-sub {
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-action-primary {
  background: var(--maritime-teal);
  color: #ffffff;
}
.btn-action-primary:hover {
  background: var(--teal-light);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.35);
}

.btn-action-amber {
  background: var(--industrial-amber);
  color: #ffffff;
}
.btn-action-amber:hover {
  background: var(--amber-light);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-action-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* ==========================================================================
   PAGE SUB-NAV (QUICK JUMP)
   ========================================================================== */
.profile-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

.profile-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.profile-nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.profile-nav-link:hover, .profile-nav-link.active {
  color: var(--primary-navy);
  background: var(--bg-muted);
}

/* ==========================================================================
   HERO / COVER SECTION
   ========================================================================== */
.profile-hero {
  background: linear-gradient(135deg, #070D1E 0%, #111E38 50%, #1C2B4C 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 168, 150, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.profile-hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 150, 0.2);
  border: 1px solid rgba(0, 168, 150, 0.4);
  color: var(--teal-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-hero h1 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.profile-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 860px;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Fact Badges Strip */
.hero-fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.hero-fact-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: var(--transition);
}
.hero-fact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--maritime-teal);
  transform: translateY(-2px);
}

.hero-fact-title {
  font-size: 0.75rem;
  color: var(--amber-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hero-fact-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-fact-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* ==========================================================================
   MAIN PROFILE CONTENT SECTIONS
   ========================================================================== */
.profile-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 28px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--maritime-teal);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.85rem;
  color: var(--primary-navy);
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 750px;
  margin-top: 6px;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card-box:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-box-accent {
  border-left: 4px solid var(--maritime-teal);
}
.card-box-amber {
  border-left: 4px solid var(--industrial-amber);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--teal-glow);
  color: var(--maritime-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.card-icon-amber {
  background: var(--amber-glow);
  color: var(--industrial-amber);
}

/* ==========================================================================
   OVERSEAS PARTNERSHIP & BRANDS SECTION
   ========================================================================== */
.agency-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.agency-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.agency-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--maritime-teal);
}

.agency-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.agency-origin-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--primary-navy);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agency-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.agency-scope {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.agency-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--maritime-teal);
  font-weight: 600;
}

/* ==========================================================================
   ORGANIZATIONAL CHART (TREE STRUCTURE)
   ========================================================================== */
.org-chart-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 800px;
}

.org-node {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}
.org-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.org-node-md {
  background: linear-gradient(135deg, #070D1E 0%, #1C2B4C 100%);
  border: 2px solid var(--industrial-amber);
  min-width: 260px;
}

.org-node-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.org-node-sub {
  font-size: 0.75rem;
  opacity: 0.85;
  color: var(--teal-light);
}

.org-line-v {
  width: 2px;
  height: 24px;
  background: #cbd5e1;
  margin: 0 auto;
}

.org-line-h-bar {
  height: 2px;
  background: #cbd5e1;
  width: 88%;
  position: relative;
}

.org-divisions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 14px;
}

.org-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.org-node-dept {
  background: var(--secondary-navy);
  color: #ffffff;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  border-left: 3px solid var(--maritime-teal);
}

.org-sub-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.org-sub-node {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
}
.org-sub-node:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* ==========================================================================
   WORK EXPERIENCE / PROJECTS TABLE & CARDS
   ========================================================================== */
.project-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.table-responsive {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.profile-table th {
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.profile-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
}

.profile-table tr:nth-child(even) td {
  background: #f8fafc;
}

.profile-table tr:hover td {
  background: #f1f5f9;
}

.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--teal-glow);
  color: var(--maritime-teal);
  border: 1px solid rgba(0, 168, 150, 0.2);
}

/* ==========================================================================
   PHOTO HIGHLIGHT GALLERY
   ========================================================================== */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--maritime-teal);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-card-body {
  padding: 12px 16px;
}

.gallery-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.gallery-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STATUTORY CERTIFICATES GRID & MODAL
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.cert-card:hover {
  border-color: var(--maritime-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.cert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.cert-id {
  font-size: 0.75rem;
  color: var(--maritime-teal);
  font-weight: 600;
}

/* Lightbox Modal */
.profile-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.profile-modal.active {
  display: flex;
}

.profile-modal-content {
  background: #ffffff;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--primary-navy);
  color: #ffffff;
}

.profile-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.profile-modal-body {
  padding: 20px;
  overflow-y: auto;
  text-align: center;
}

.profile-modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   CONTACT BOX & FOOTER
   ========================================================================== */
.profile-contact-card {
  background: linear-gradient(135deg, #070D1E 0%, #111E38 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-detail-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 168, 150, 0.2);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--amber-light);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-val {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.profile-footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FLOATING GO TO TOP BUTTON
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--industrial-amber), #f59e0b);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45), 0 10px 25px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.6), 0 15px 35px rgba(0, 0, 0, 0.45);
}

.scroll-top-btn:active {
  transform: translateY(0) scale(0.95);
}

.scroll-top-btn i {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover i {
  transform: translateY(-3px);
}

.scroll-top-btn span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-top: 2px;
  line-height: 1;
}

/* ==========================================================================
   PRINT STYLESHEET (@media print) - CLEAN A4 PDF OUTPUT
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
    line-height: 1.35 !important;
  }

  .profile-top-bar,
  .profile-nav-bar,
  .btn-action,
  .project-filter-strip,
  .profile-modal,
  .no-print {
    display: none !important;
  }

  .profile-hero {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 20px 0 !important;
    border-bottom: 2pt solid #070D1E !important;
  }

  .profile-hero h1 {
    color: #070D1E !important;
    font-size: 20pt !important;
  }

  .profile-hero-subtitle {
    color: #334155 !important;
    font-size: 10.5pt !important;
  }

  .hero-fact-strip {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  .hero-fact-card {
    background: #f8fafc !important;
    border: 1pt solid #cbd5e1 !important;
    color: #000000 !important;
    padding: 8px !important;
  }
  .hero-fact-title { color: #d97706 !important; }
  .hero-fact-val { color: #070d1e !important; font-size: 8.5pt !important; }
  .hero-fact-sub { color: #475569 !important; }

  .profile-section {
    padding: 16px 0 !important;
    page-break-inside: avoid;
  }

  .section-title {
    font-size: 13pt !important;
    color: #070D1E !important;
  }

  .grid-2col, .grid-3col, .grid-4col, .agency-partner-grid {
    display: grid !important;
    gap: 10px !important;
  }

  .card-box, .agency-card {
    border: 1pt solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 10px !important;
    page-break-inside: avoid;
  }

  .profile-table {
    font-size: 7.5pt !important;
  }
  .profile-table th {
    background: #070D1E !important;
    color: #ffffff !important;
    padding: 6px 8px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .profile-table td {
    padding: 5px 8px !important;
  }

  .page-break-before {
    page-break-before: always;
  }
}

/* ==========================================================================
   PROJECT PHOTO GALLERY
   ========================================================================== */

/* Team / Leadership Photo Strip */
.team-photo-strip {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--maritime-teal);
}
.team-photo-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.5s ease;
}
.team-photo-strip:hover img {
  transform: scale(1.02);
}
.team-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7,13,30,0.92) 0%, transparent 100%);
  color: #fff;
  padding: 28px 20px 16px;
  font-size: 0.88rem;
}
.team-photo-caption strong {
  display: block;
  font-size: 1rem;
  color: var(--teal-light);
  margin-bottom: 2px;
}

/* 12-Photo Project Gallery Grid */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.gallery-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--maritime-teal);
}
.gallery-photo-card:hover .gallery-photo-img {
  transform: scale(1.06);
}

.gallery-photo-wrap {
  overflow: hidden;
  position: relative;
  height: 185px;
}
.gallery-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-photo-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
}
.gallery-photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(7,13,30,0.78);
  color: var(--teal-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-photo-body {
  padding: 12px 14px 14px;
}
.gallery-photo-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
  line-height: 1.35;
}
.gallery-photo-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.gallery-photo-client {
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--maritime-teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Lightbox Overlay */
.photo-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,13,30,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}
.photo-lightbox-overlay.active {
  display: flex;
}
.photo-lightbox-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  cursor: default;
}
.photo-lightbox-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.photo-lightbox-caption {
  margin-top: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-align: center;
}
.photo-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  background: var(--maritime-teal);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.photo-lightbox-close:hover {
  background: var(--industrial-amber);
  transform: scale(1.1);
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.photo-lightbox-nav:hover {
  background: var(--maritime-teal);
  border-color: var(--maritime-teal);
}
.photo-lightbox-prev { left: -56px; }
.photo-lightbox-next { right: -56px; }

/* ==========================================================================
   PRINT STYLES — PHOTO GALLERY
   ========================================================================== */
@media print {
  .photo-lightbox-overlay { display: none !important; }
  .photo-gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    break-inside: avoid;
  }
  .gallery-photo-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }
  .gallery-photo-wrap {
    height: 130px !important;
  }
  .team-photo-strip img {
    height: 180px !important;
  }
  .gallery-photo-body {
    padding: 6px 8px 8px !important;
  }
  .gallery-photo-title {
    font-size: 0.78rem !important;
  }
  .gallery-photo-desc {
    font-size: 0.7rem !important;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT (MOBILE / TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .grid-2col, .grid-3col, .grid-4col, .profile-contact-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero h1 {
    font-size: 2.1rem;
  }
  .org-divisions-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-lightbox-prev { left: -44px; }
  .photo-lightbox-next { right: -44px; }
}

@media (max-width: 600px) {
  .org-divisions-grid {
    grid-template-columns: 1fr;
  }
  .profile-top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }
  .photo-lightbox-prev, .photo-lightbox-next {
    display: none;
  }
}
