/* ==========================================================================
   G-LINE MARITIME PRIVATE LIMITED - CORPORATE STYLESHEET
   Aesthetics: Clean Corporate Maritime, Light Theme, Solid Colors (No Gradients)
   Typography: Outfit (Headings) & Plus Jakarta Sans (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400;1,600;1,700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors Extracted Exactly from Official Logo */
  --glm-navy: #013a76;
  --glm-navy-dark: #002852;
  --glm-navy-deep: #001e3d;
  --glm-cyan: #018bb0;
  --glm-cyan-dark: #007291;
  --glm-cyan-light: #eaf5f9;
  --glm-gold: #c59b27;
  --glm-gold-dark: #9a7313;
  --glm-gold-light: #fef9e7;
  --glm-brass: #b8860b;
  
  /* Pure Light Theme Canvas & Surfaces */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f7f9fc;
  --bg-card: #ffffff;
  --bg-accent-soft: #f0f6fa;
  --bg-steel: #edf2f7;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-brand: #cbd5e1;
  --border-focus: #018bb0;

  /* Shadows (Classic Soft Shadows, No Blur Gradients) */
  --shadow-sm: 0 1px 3px rgba(1, 58, 118, 0.05);
  --shadow-md: 0 4px 14px rgba(1, 58, 118, 0.08);
  --shadow-lg: 0 10px 25px rgba(1, 58, 118, 0.1);
  --shadow-hover: 0 14px 30px rgba(1, 58, 118, 0.12);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--glm-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

a {
  color: var(--glm-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--glm-navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   ABSTRACT BACKGROUND PATTERNS (Subtle, Clean Maritime Vector Textures)
   ========================================================================== */
.bg-abstract-grid {
  background-color: var(--bg-subtle);
  background-image: 
    radial-gradient(var(--border-light) 1px, transparent 1px),
    radial-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.bg-abstract-nautical {
  background-color: var(--bg-surface);
  position: relative;
}

.bg-abstract-nautical::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23013a76' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='38' stroke='%23013a76' stroke-width='1.5' fill='none'/%3E%3Cpath d='M40 0 L40 80 M0 40 L80 40' stroke='%23013a76' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
}

.bg-solid-navy {
  background-color: var(--glm-navy);
  color: var(--text-inverse);
}

.bg-solid-navy h1, 
.bg-solid-navy h2, 
.bg-solid-navy h3, 
.bg-solid-navy h4, 
.bg-solid-navy p {
  color: var(--text-inverse);
}

/* ==========================================================================
   TOP NOTIFICATION & CONTACT HEADER BAR
   ========================================================================== */
.top-header-bar {
  background-color: var(--glm-navy-dark);
  color: #cbd5e1;
  font-size: 0.815rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-bar a {
  color: #e2e8f0;
  font-weight: 500;
}

.top-header-bar a:hover {
  color: #ffffff;
}

.top-header-bar .badge-rpsl {
  background-color: var(--glm-cyan);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-header-bar .header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-header-bar .header-contact-item i {
  color: var(--glm-cyan);
}

/* ==========================================================================
   MAIN NAVBAR
   ========================================================================== */
.main-navbar {
  background-color: #ffffff;
  border-bottom: 2px solid var(--border-light);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.main-navbar.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.navbar-brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--glm-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--glm-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  padding: 10px 16px !important;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--glm-navy) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--glm-cyan);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons (Solid & Classic) */
.btn-glm-primary {
  background-color: var(--glm-navy);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glm-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-glm-primary:hover {
  background-color: var(--glm-navy-dark);
  border-color: var(--glm-navy-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-glm-cyan {
  background-color: var(--glm-cyan);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glm-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-glm-cyan:hover {
  background-color: var(--glm-cyan-dark);
  border-color: var(--glm-cyan-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-glm-outline {
  background-color: transparent;
  color: var(--glm-navy) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--glm-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-glm-outline:hover {
  background-color: var(--glm-navy);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-glm-outline-white {
  background-color: transparent;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-glm-outline-white:hover {
  background-color: #ffffff;
  color: var(--glm-navy) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 60px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--glm-cyan-light);
  border: 1px solid #bce1ee;
  color: var(--glm-navy);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-pill-badge i {
  color: var(--glm-cyan);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--glm-navy);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.hero-title .text-highlight {
  color: var(--glm-cyan);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background-color: #ffffff;
}

.hero-visual-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-badge-floating {
  position: absolute;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.hero-badge-floating.badge-top {
  top: 24px;
  left: -20px;
  border-left: 4px solid var(--glm-cyan);
}

.hero-badge-floating.badge-bottom {
  bottom: 24px;
  right: -20px;
  border-left: 4px solid var(--glm-navy);
}

.hero-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--glm-cyan-light);
  color: var(--glm-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-badge-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--glm-navy);
  line-height: 1.2;
}

.hero-badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   KEY METRICS & PROOF BAR
   ========================================================================== */
.proof-strip {
  background-color: var(--glm-navy);
  color: #ffffff;
  padding: 36px 0;
  border-top: 1px solid var(--glm-navy-dark);
}

.proof-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.proof-card:last-child {
  border-right: none;
}

.proof-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.proof-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.proof-label {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================================================
   SECTION COMMON HEADINGS & BADGES
   ========================================================================== */
.section-padding {
  padding: 85px 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--glm-cyan);
  background-color: var(--glm-cyan-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid #bce1ee;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--glm-navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-card-left {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.about-experience-stamp {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: var(--glm-navy);
  color: #ffffff;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--glm-cyan);
  max-width: 250px;
}

.about-experience-stamp .exp-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-check-item i {
  color: var(--glm-cyan);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Principles Cards */
.principle-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--glm-cyan);
}

.principle-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--glm-cyan-light);
  color: var(--glm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin: 0 auto 16px;
}

.principle-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--glm-navy);
  margin-bottom: 8px;
}

.principle-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   SERVICES SECTION (6 Core Services)
   ========================================================================== */
.service-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--glm-cyan);
}

.service-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-box:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-index-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--glm-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--glm-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--glm-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.service-bullet-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-bullet-list li i {
  color: var(--glm-cyan);
  font-size: 0.9rem;
  margin-top: 3px;
}

.service-action-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--glm-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}

.service-action-link:hover {
  color: var(--glm-cyan);
}

.service-action-link i {
  transition: transform 0.2s ease;
}

.service-action-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   FLAG STATE DOCUMENTATION SPOTLIGHT
   ========================================================================== */
.flag-spotlight-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.flag-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--glm-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px;
  box-shadow: var(--shadow-sm);
}

.flag-pill i {
  color: var(--glm-cyan);
}

/* ==========================================================================
   CENTERED ABSTRACT MARINE SECTION (Nautical Chart & Oceanic Radar BG)
   ========================================================================== */
.marine-abstract-section {
  position: relative;
  background-color: #f6fafd;
  background-image: url('../images/marine_abstract_chart.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 100px 0;
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  overflow: hidden;
}

.marine-abstract-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.72); /* Ensures pristine readability & light theme purity */
  pointer-events: none;
}

.marine-compass-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  opacity: 0.12;
  pointer-events: none;
  animation: rotateSlow 120s linear infinite;
}

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.marine-feature-badge {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  border-bottom: 3px solid var(--glm-navy);
}

.marine-feature-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--glm-cyan);
}

.marine-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: var(--glm-cyan-light);
  color: var(--glm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.marine-feature-badge:hover .marine-badge-icon {
  background-color: var(--glm-navy);
  color: #ffffff;
}

.doc-type-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--glm-navy);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.doc-type-card h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--glm-navy);
  margin-bottom: 4px;
}

.doc-type-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   STATUTORY CERTIFICATIONS SHOWCASE
   ========================================================================== */
.cert-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--glm-cyan);
  transform: translateY(-3px);
}

.cert-logo-holder {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cert-logo-holder img {
  max-height: 80px;
  max-width: 140px;
  object-fit: contain;
}

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

.cert-reg {
  font-size: 0.82rem;
  color: var(--glm-cyan);
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   POLICIES & SAFETY CODE
   ========================================================================== */
.policy-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--glm-navy);
}

.policy-card.card-warning {
  border-top-color: #d97706;
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.policy-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--glm-cyan-light);
  color: var(--glm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.policy-card.card-warning .policy-icon {
  background-color: #fef3c7;
  color: #b45309;
}

.policy-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--glm-navy);
  margin: 0;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.policy-list li i {
  color: var(--glm-cyan);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.policy-card.card-warning .policy-list li i {
  color: #d97706;
}

/* ==========================================================================
   ORGANIZATIONAL STRUCTURE / TEAM ARCHITECTURE
   ========================================================================== */
.org-chart-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
}

.org-root-node {
  max-width: 320px;
  margin: 0 auto 30px;
  background-color: var(--glm-navy);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--glm-navy-dark);
}

.org-root-node h5 {
  color: #ffffff;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.org-root-node span {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.org-branch-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  height: 100%;
  border-top: 3px solid var(--glm-cyan);
  transition: var(--transition);
}

.org-branch-card:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--glm-cyan);
}

.org-branch-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--glm-navy);
  margin-bottom: 12px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.org-member-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.org-member-pill i {
  color: var(--glm-cyan);
  font-size: 0.85rem;
}

/* ==========================================================================
   CONTACT & RECRUITMENT APPLICATION SECTION
   ========================================================================== */
.contact-hub-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-nav-pills {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.contact-tab-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.contact-tab-btn:hover {
  color: var(--glm-navy);
  background-color: var(--glm-cyan-light);
}

.contact-tab-btn.active {
  background-color: var(--glm-navy);
  color: #ffffff;
  border-color: var(--glm-navy);
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--glm-navy);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--glm-cyan);
  box-shadow: 0 0 0 3px rgba(1, 139, 176, 0.15);
  outline: none;
}

.contact-info-panel {
  background-color: var(--glm-navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  height: 100%;
}

.contact-info-panel h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 16px;
}

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

.contact-icon-square {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--glm-cyan-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-title {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail-val {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.contact-detail-val a {
  color: #ffffff;
}

.contact-detail-val a:hover {
  color: var(--glm-cyan-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-corporate {
  background-color: var(--glm-navy-deep);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 4px solid var(--glm-cyan);
  font-size: 0.9rem;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-brand-sub {
  color: var(--glm-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-rpsl-badge {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.footer-rpsl-badge .reg-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.footer-rpsl-badge .reg-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  margin: 0;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   MODAL STYLES (For Service In-Depth Details)
   ========================================================================== */
.modal-content {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px;
}

.modal-title {
  color: var(--glm-navy);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (Back to Top & Quick Call)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1020;
}

.btn-floating {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-floating-top {
  background-color: var(--glm-navy);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
}

.btn-floating-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-floating-top:hover {
  background-color: var(--glm-navy-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-floating-contact {
  background-color: var(--glm-cyan);
  color: #ffffff;
}

.btn-floating-contact:hover {
  background-color: var(--glm-cyan-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-floating-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.btn-floating-whatsapp:hover {
  background-color: #1ebc59;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVENESS (Pixel-perfect on Mobile, Tablet & Desktop)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* 1. Hide Top Statutory Header on Mobile / Tablet */
  .top-header-bar {
    display: none !important;
  }

  /* 2. Mobile Navbar & Hamburger Side-by-Side */
  .main-navbar {
    padding: 10px 0;
  }

  .main-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 56px);
    margin-right: 0 !important;
    flex-shrink: 1;
  }

  .navbar-brand img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
  }

  .brand-text-block {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .brand-name {
    font-size: 1.05rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    padding: 4px 6px;
    border: 1px solid rgba(1, 58, 118, 0.25) !important;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }

  .navbar-toggler i {
    font-size: 1.6rem;
    line-height: 1;
  }

  .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
  }

  /* 3. Prevent Gutter Overflow */
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }
  .hero-visual-card {
    margin-top: 40px;
  }
  .hero-badge-floating.badge-top {
    left: 10px;
  }
  .hero-badge-floating.badge-bottom {
    right: 10px;
  }
  .proof-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 0;
  }
  .section-padding {
    padding: 60px 0;
  }

  .floating-actions {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }

  .btn-floating {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-visual-card img {
    height: 320px;
  }
  .hero-badge-floating {
    display: none;
  }
  .about-experience-stamp {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }
  .contact-nav-pills {
    flex-direction: column;
  }
  .contact-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .page-header-banner {
    padding: 65px 0 55px;
  }
  .page-header-banner .page-header-title {
    font-size: 1.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .breadcrumb-custom {
    max-width: 100%;
    flex-wrap: wrap;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .heritage-metric-card {
    padding: 18px 12px;
  }
  .heritage-metric-number {
    font-size: 1.85rem;
  }
  .md-letter-box {
    padding: 24px 16px;
  }
  .md-letter-title {
    font-size: 1.15rem;
    word-break: break-word;
  }
  .md-letter-signature-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .charter-card {
    padding: 28px 20px;
  }
  .pillar-roman-card {
    padding: 24px 18px;
  }
  .classic-statutory-plaque {
    padding: 24px 16px;
  }
  .creed-ribbon-bar {
    padding: 14px 10px;
  }
  .creed-ribbon-item {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 420px) {
  .navbar-brand img {
    height: 34px;
  }
  .brand-name {
    font-size: 0.92rem;
  }
  .brand-tagline {
    font-size: 0.52rem;
  }
  .page-header-banner .page-header-title {
    font-size: 1.55rem;
  }
}

/* ==========================================================================
   INTERIOR PAGE HERO BANNERS & BREADCRUMBS (PREMIUM MARITIME AESTHETIC)
   ========================================================================== */
.page-header-banner {
  position: relative;
  background-color: var(--glm-navy-deep);
  background-image: url('../images/port_crane_hero.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  padding: 110px 0 95px; /* Ample breathing room from top navbar */
  border-bottom: 4px solid var(--glm-cyan);
  overflow: hidden;
}

/* Multi-layer Dark Oceanic Gradient Overlays */
.page-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 30, 61, 0.94) 0%, rgba(1, 58, 118, 0.88) 55%, rgba(1, 139, 176, 0.72) 100%);
  z-index: 1;
}

.page-header-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 40%, rgba(1, 139, 176, 0.28) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.page-header-banner .container {
  position: relative;
  z-index: 2;
}

/* Page-specific Nautical Backgrounds */
.page-header-banner.banner-about {
  background-image: url('../images/about_vessel.jpg');
  background-position: center 30%;
}

.page-header-banner.banner-services {
  background-image: url('../images/fleet_tankers.jpg');
  background-position: center 45%;
}

.page-header-banner.banner-flags {
  background-image: url('../images/port_crane_hero.jpg');
  background-position: center 35%;
}

.page-header-banner.banner-policies {
  background-image: url('../images/crew_safety.jpg');
  background-position: center 25%;
}

.page-header-banner.banner-careers {
  background-image: url('../images/crew_bridge.jpg');
  background-position: center 30%;
}

.page-header-banner.banner-contact {
  background-image: url('../images/contact_meeting.jpg');
  background-position: center 35%;
}

/* Glassmorphism Breadcrumb Badge */
.breadcrumb-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.breadcrumb-custom:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.breadcrumb-custom a {
  color: #38bdf8; /* Bright vibrant cyan/sky blue */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-custom a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.breadcrumb-custom .separator {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  user-select: none;
}

.breadcrumb-custom span.active-crumb,
.breadcrumb-custom span:last-child {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-header-banner .page-header-title {
  font-family: var(--font-serif) !important;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(0, 20, 50, 0.35);
}

.page-header-banner .page-header-lead {
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 740px;
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0, 20, 50, 0.25);
}

.banner-credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991.98px) {
  .page-header-banner {
    padding: 85px 0 70px;
  }
  .page-header-banner .page-header-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 767.98px) {
  .page-header-banner {
    padding: 70px 0 60px;
  }
  .page-header-banner .page-header-title {
    font-size: 2rem;
  }
  .page-header-banner .page-header-lead {
    font-size: 1rem;
  }
}

/* Org Chart Hierarchy Lines */
.org-root-node::after {
  content: '';
  display: block;
  width: 2px;
  height: 24px;
  background-color: var(--glm-navy);
  margin: 16px auto -32px;
}

/* ==========================================================================
   CLASSIC MARITIME INSTITUTIONAL & EDITORIAL STYLING
   Eliminates generic "AI template" look with timeless boardroom prestige
   ========================================================================== */
.font-serif {
  font-family: var(--font-serif) !important;
}

.text-gold {
  color: var(--glm-gold) !important;
}

.bg-cream-canvas {
  background-color: #faf7f0;
  background-image: radial-gradient(#dfd7c5 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

.editorial-eyebrow {
  font-family: var(--font-serif) !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--glm-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.editorial-eyebrow::before,
.editorial-eyebrow::after {
  content: '—';
  color: var(--glm-gold);
}

.editorial-heading {
  font-family: var(--font-serif) !important;
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.editorial-pullquote {
  font-family: var(--font-serif) !important;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--glm-navy-deep);
  border-left: 4px solid var(--glm-gold);
  padding: 18px 0 18px 28px;
  margin: 32px 0;
  background: linear-gradient(90deg, rgba(197, 155, 39, 0.08) 0%, transparent 100%);
  position: relative;
}

.editorial-pullquote::before {
  content: '“';
  font-family: var(--font-serif) !important;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--glm-gold);
  position: absolute;
  top: -12px;
  left: 6px;
  opacity: 0.35;
}

/* Classical Typographic Drop Cap */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-serif) !important;
  font-size: 3.6rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--glm-navy-deep);
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(197, 155, 39, 0.35);
}

/* Classical Museum / Boardroom Gallery Photo Frame */
.classic-gallery-frame {
  position: relative;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dcd4c5;
  box-shadow: 0 15px 35px rgba(0, 30, 61, 0.1);
  border-radius: var(--radius-sm);
}

.classic-gallery-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.45);
  pointer-events: none;
}

.classic-frame-plaque {
  margin-top: 12px;
  background-color: var(--glm-navy-deep);
  border-top: 2px solid var(--glm-gold);
  padding: 10px 16px;
  text-align: center;
}

.classic-frame-plaque-title {
  font-family: var(--font-serif) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glm-gold);
  margin-bottom: 2px;
}

.classic-frame-plaque-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Two-Column Classical Ledger of Standards */
.ledger-principle-item {
  border-left: 2px solid var(--glm-gold);
  padding-left: 18px;
  margin-bottom: 18px;
}

.ledger-principle-num {
  font-family: var(--font-serif) !important;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--glm-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ledger-principle-title {
  font-family: var(--font-serif) !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 6px;
}

.ledger-principle-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Executive MD Memorandum / Letter on Parchment */
.md-letter-box {
  background-color: #fbf9f4;
  border: 1px solid #dfd8c8;
  border-top: 6px solid var(--glm-navy-deep);
  border-radius: var(--radius-sm);
  padding: 48px 50px;
  box-shadow: 0 18px 45px rgba(0, 30, 61, 0.08);
  position: relative;
  background-image: radial-gradient(rgba(197, 155, 39, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.md-letter-header {
  border-bottom: 2px solid #e8e2d4;
  padding-bottom: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.md-letter-title {
  font-family: var(--font-serif) !important;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.md-letter-meta {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.md-letter-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--glm-gold);
  color: var(--glm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background-color: #fef9e7;
  box-shadow: inset 0 0 10px rgba(197, 155, 39, 0.15);
}

.md-letter-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 35px;
}

.md-letter-signature-block {
  border-top: 1px dashed #cbd5e1;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.md-signature-text {
  font-family: 'Playfair Display', cursive, serif;
  font-style: italic;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--glm-navy);
  line-height: 1;
}

.md-signatory-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--glm-navy);
  margin-top: 6px;
  margin-bottom: 2px;
}

.md-signatory-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Classical Maritime Charter (Vision & Mission) */
.charter-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 40px 36px;
  height: 100%;
  position: relative;
  box-shadow: 0 8px 30px rgba(1, 58, 118, 0.05);
  transition: var(--transition);
}

.charter-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.35); /* Elegant gold inner margin border like certificate */
  pointer-events: none;
}

.charter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(1, 58, 118, 0.1);
  border-color: var(--glm-gold);
}

.charter-crest {
  width: 52px;
  height: 52px;
  background-color: var(--glm-navy);
  color: var(--glm-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.charter-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--glm-navy);
  margin-bottom: 14px;
}

.charter-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Operating Pillars with Roman Numerals (Classical Order) */
.pillar-roman-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--glm-gold);
  border-radius: var(--radius-sm);
  padding: 34px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.pillar-roman-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(1, 58, 118, 0.09);
  border-top-color: var(--glm-navy);
}

.pillar-numeral {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--glm-gold);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 12px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--glm-navy);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pillar-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Classical Heritage Stamp & Statistics */
.heritage-metric-card {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 20px;
  text-align: center;
}

.heritage-metric-card:last-child {
  border-right: none;
}

.heritage-metric-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.heritage-metric-label {
  font-size: 0.82rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Engraved Foundational Creed Ribbon (Navy & Gold - Replaces childish badges) */
.creed-ribbon-bar {
  background: var(--glm-navy-deep);
  border-top: 2px solid var(--glm-gold);
  border-bottom: 2px solid var(--glm-gold);
  padding: 18px 24px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.creed-ribbon-item {
  color: #ffffff;
  font-family: var(--font-serif) !important;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.creed-star {
  color: var(--glm-gold);
  font-size: 0.75rem;
}

/* Classical Statutory Plaque of Trust Frame */
.classic-statutory-plaque {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-top: 4px solid var(--glm-navy-deep);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 30, 61, 0.06);
  height: 100%;
  transition: var(--transition);
}

.classic-statutory-plaque::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  pointer-events: none;
}

.classic-statutory-plaque:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 30, 61, 0.1);
  border-top-color: var(--glm-gold);
}

/* Classical Directorate Org Chart (Unified Navy & Gold) */
.org-branch-card-classic {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-top: 4px solid var(--glm-navy-deep);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 30, 61, 0.05);
}

.org-branch-title-classic {
  font-family: var(--font-serif) !important;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  border-bottom: 1px solid rgba(197, 155, 39, 0.35);
  padding-bottom: 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
  .editorial-heading {
    font-size: 2.2rem;
  }
  .md-letter-box {
    padding: 30px 24px;
  }
  .heritage-metric-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ==========================================================================
   CLASSICAL MARITIME SERVICES PORTFOLIO (BESPOKE EDITORIAL DESIGN)
   Replaces generic AI alternating cards with Admiralty Division Charters
   ========================================================================== */

/* 1. Executive Division Ledger Index Bar */
.services-ledger-nav {
  background: var(--glm-navy-deep);
  border-top: 3px solid var(--glm-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 30, 61, 0.1);
}

.services-ledger-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.services-ledger-list::-webkit-scrollbar {
  display: none;
}

.services-ledger-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transition: var(--transition);
}

.services-ledger-link:hover {
  color: #ffffff;
  background-color: rgba(197, 155, 39, 0.15);
}

.services-ledger-link .division-num {
  font-family: var(--font-serif) !important;
  color: var(--glm-gold);
  font-size: 0.95rem;
}

/* 2. Classical Division Charter Card */
.division-charter-block {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 44px;
  margin-bottom: 48px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 30, 61, 0.05);
  transition: var(--transition);
}

.division-charter-block::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(197, 155, 39, 0.35);
  pointer-events: none;
}

.division-charter-block.bg-parchment-subtle {
  background-color: #faf8f3;
}

.division-charter-block:hover {
  box-shadow: 0 18px 40px rgba(0, 30, 61, 0.09);
  border-color: var(--glm-gold);
}

/* 3. Division Header & Badges */
.division-header-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #e8e2d4;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.division-roman-tag {
  font-family: var(--font-serif) !important;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glm-navy-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.division-roman-tag::before {
  content: '✦';
  color: var(--glm-gold);
}

.division-statutory-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background-color: #f1ede4;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #dfd8c8;
}

.division-title {
  font-family: var(--font-serif) !important;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.division-narrative {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
}

/* 4. Classical Two-Column Specification Ledger */
.ledger-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-bottom: 28px;
}

.ledger-spec-item {
  border-left: 2px solid var(--glm-gold);
  padding-left: 14px;
}

.ledger-spec-label {
  font-family: var(--font-serif) !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 2px;
  display: block;
}

.ledger-spec-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 0;
}

/* 5. Statutory Assurance Plaque Strip */
.statutory-assurance-strip {
  background-color: #fbf9f4;
  border: 1px solid #e8e2d4;
  border-left: 3px solid var(--glm-navy-deep);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.statutory-assurance-strip i {
  color: var(--glm-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.statutory-assurance-strip span {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
}

/* 6. Classical CTA Button Pair */
.btn-division-primary {
  background-color: var(--glm-navy-deep);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--glm-navy-deep);
  transition: var(--transition);
}

.btn-division-primary:hover {
  background-color: var(--glm-navy);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 30, 61, 0.2);
}

.btn-division-outline {
  background-color: transparent;
  color: var(--glm-navy-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  transition: var(--transition);
}

.btn-division-outline:hover {
  background-color: #f1ede4;
  border-color: var(--glm-gold);
  color: var(--glm-navy-deep);
}

/* 7. Flag State Registry Grid in Division VI */
.flag-administration-ledger {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.flag-admin-chip {
  background-color: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.flag-admin-chip i {
  color: var(--glm-gold);
}

.flag-admin-chip:hover {
  border-color: var(--glm-gold);
  background-color: #faf8f3;
}

@media (max-width: 991.98px) {
  .division-charter-block {
    padding: 30px 22px;
    margin-bottom: 32px;
  }
  .division-title {
    font-size: 1.7rem;
  }
  .ledger-specs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .flag-administration-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .division-charter-block {
    padding: 24px 16px;
  }
  .division-title {
    font-size: 1.45rem;
  }
  .flag-administration-ledger {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CLASSICAL SOVEREIGN FLAG STATE REGISTRY & STATUTORY PORTALS
   Admiralty Grade Certificate Styling, Sovereign Nation Cards & Endorsement Ledgers
   ========================================================================== */

/* 1. Sovereign Flag Portal Cards */
.sovereign-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.sovereign-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.25);
  pointer-events: none;
}

.sovereign-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 61, 0.09);
}

.sovereign-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ede8de;
}

.sovereign-emblem {
  width: 44px;
  height: 44px;
  background-color: #faf8f3;
  border: 1px solid #dcd4c5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glm-gold-dark);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.sovereign-nation-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 2px;
  line-height: 1.2;
}

.sovereign-auth-title {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 0;
}

.sovereign-reg-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--glm-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.sovereign-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.sovereign-spec-item {
  font-size: 0.81rem;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px dashed #f0ece3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sovereign-spec-item i {
  color: var(--glm-gold);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.sovereign-card-footer {
  padding-top: 10px;
  border-top: 1px solid #ede8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
}

.sovereign-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--glm-navy-deep);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sovereign-badge-verified i {
  color: var(--glm-brass);
}

.sovereign-badge-turnaround {
  color: #64748b;
  font-weight: 600;
}

/* 2. Classical Statutory Endorsement Charter Cards */
.endorsement-charter-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  height: 100%;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.endorsement-charter-card::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 1px solid rgba(197, 155, 39, 0.28);
  pointer-events: none;
}

.endorsement-charter-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 30, 61, 0.1);
}

.endorsement-header-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.endorsement-article-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glm-gold);
}

.endorsement-status-chip {
  background-color: #faf8f3;
  border: 1px solid #e2d8c3;
  color: var(--glm-navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.endorsement-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 10px;
  line-height: 1.25;
}

.endorsement-lead {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 18px;
}

.endorsement-spec-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.endorsement-spec-row {
  padding: 7px 0;
  border-bottom: 1px solid #f2ede4;
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.endorsement-spec-row i {
  color: var(--glm-gold);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.endorsement-footer-meta {
  padding-top: 14px;
  border-top: 1px solid #ede8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
}

.endorsement-footer-meta strong {
  color: var(--glm-navy-deep);
}

/* 3. Statutory 4-Step Expediting Protocol */
.statutory-workflow-block {
  background: #faf8f3;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 40px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 30, 61, 0.04);
}

.statutory-workflow-block::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  pointer-events: none;
}

.statutory-workflow-step {
  background: #ffffff;
  border: 1px solid #e5dfd2;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  height: 100%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 30, 61, 0.03);
  transition: var(--transition);
}

.statutory-workflow-step:hover {
  border-color: var(--glm-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 30, 61, 0.07);
}

.workflow-stage-pill {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glm-gold);
  margin-bottom: 6px;
  display: block;
}

.workflow-stage-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--glm-navy-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.workflow-stage-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 0;
}

/* 4. Museum Archival Gallery Frame Container */
.gallery-frame-container {
  background: #fbf9f4;
  border: 2px solid #d4cbb8;
  border-radius: 4px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 30, 61, 0.08);
  position: relative;
}

.gallery-frame-container::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.4);
  pointer-events: none;
}

.gallery-frame-container img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dcd4c5;
}

/* 5. Classical Administrative Table Ledger */
.admin-registry-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.85rem;
}

.admin-registry-table th {
  background-color: var(--glm-navy-deep);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 2px solid var(--glm-gold);
}

.admin-registry-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #ede8de;
  color: #334155;
  vertical-align: middle;
}

.admin-registry-table tr:last-child td {
  border-bottom: none;
}

.admin-registry-table tr:nth-child(even) td {
  background-color: #faf8f3;
}

.admin-registry-table tr:hover td {
  background-color: #f5f0e6;
}

@media (max-width: 991.98px) {
  .statutory-workflow-block {
    padding: 26px 18px;
  }
  .endorsement-charter-card {
    padding: 24px 20px;
  }
}

@media (max-width: 576px) {
  .sovereign-card {
    padding: 20px 16px;
  }
  .endorsement-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   CLASSICAL CORPORATE POLICIES, ACCREDITATIONS & EXECUTIVE DIRECTORATE
   Admiralty Grade Policy Charters, Accreditations & Leadership Team Cards
   ========================================================================== */

/* 1. Policy Charter Block */
.policy-charter-block {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 34px 30px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.policy-charter-block::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 1px solid rgba(197, 155, 39, 0.28);
  pointer-events: none;
}

.policy-charter-block:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 30, 61, 0.09);
}

.policy-charter-block.policy-danger::before {
  border-color: rgba(185, 28, 28, 0.25);
}

.policy-charter-block.policy-danger:hover {
  border-color: #b91c1c;
}

.policy-charter-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.policy-charter-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glm-gold);
}

.policy-status-chip {
  background-color: #faf8f3;
  border: 1px solid #e2d8c3;
  color: var(--glm-navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.policy-status-chip.chip-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.policy-charter-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 10px;
  line-height: 1.25;
}

.policy-charter-lead {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 18px;
}

.policy-charter-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.policy-charter-rule-item {
  padding: 8px 0;
  border-bottom: 1px solid #f2ede4;
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.policy-charter-rule-item i {
  color: var(--glm-gold);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.policy-charter-block.policy-danger .policy-charter-rule-item i {
  color: #b91c1c;
}

.policy-charter-footer {
  padding-top: 14px;
  border-top: 1px solid #ede8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
}

/* 2. Official Accreditation Certificate Cards */
.accreditation-seal-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  height: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accreditation-seal-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.25);
  pointer-events: none;
}

.accreditation-seal-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 61, 0.09);
}

.accreditation-seal-logo {
  height: 72px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}

.accreditation-seal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 4px;
}

.accreditation-seal-authority {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  color: var(--glm-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
}

.accreditation-seal-desc {
  font-size: 0.81rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 14px;
  flex-grow: 1;
}

.accreditation-seal-validity {
  font-size: 0.76rem;
  background-color: #faf8f3;
  border: 1px solid #ede8de;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  color: var(--glm-navy-deep);
  font-weight: 600;
}

/* 3. Executive Leadership & Directorate Cards */
.team-directorate-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-directorate-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.25);
  pointer-events: none;
}

.team-directorate-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 61, 0.09);
}

.team-directorate-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ede8de;
}

.team-emblem-badge {
  width: 44px;
  height: 44px;
  background-color: #faf8f3;
  border: 1px solid #dcd4c5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glm-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.team-role-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 2px;
  line-height: 1.25;
}

.team-division-tag {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  color: var(--glm-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.team-roster-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.team-roster-item {
  font-size: 0.82rem;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px dashed #f2ede4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-roster-item i {
  color: var(--glm-brass);
  font-size: 0.76rem;
  flex-shrink: 0;
}

.team-mandate-note {
  font-size: 0.79rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0;
  font-style: italic;
}

/* 4. Grievance Redressal Protocol Steps */
.grievance-charter-box {
  background: #faf8f3;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 38px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 30, 61, 0.04);
}

.grievance-charter-box::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  pointer-events: none;
}

.grievance-step-card {
  background: #ffffff;
  border: 1px solid #e5dfd2;
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  height: 100%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 30, 61, 0.03);
  transition: var(--transition);
}

.grievance-step-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 30, 61, 0.07);
}

.grievance-step-num {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glm-gold);
  margin-bottom: 6px;
  display: block;
}

.grievance-step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--glm-navy-deep);
  margin-bottom: 6px;
}

.grievance-step-desc {
  font-size: 0.81rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .policy-charter-block {
    padding: 26px 20px;
  }
  .grievance-charter-box {
    padding: 26px 18px;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.6rem;
  }
  .page-header-banner .page-header-title {
    font-size: 1.75rem;
  }
  .policy-charter-title {
    font-size: 1.25rem;
  }
  .policy-charter-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .team-directorate-header {
    gap: 10px;
  }
  .team-emblem-badge {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .team-role-title {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   CLASSICAL SEAFARER RECRUITMENT PORTAL & MARITIME LEDGER (careers.html)
   ========================================================================== */

/* Statutory Zero-Fee Pledge Card */
.seafarer-pledge-card {
  background: #faf8f3;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 30, 61, 0.04);
}

.seafarer-pledge-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  pointer-events: none;
}

.pledge-emblem-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--glm-navy-deep);
  border: 2px solid var(--glm-gold);
  color: var(--glm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 30, 61, 0.15);
}

.pledge-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 6px;
}

.pledge-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Welfare Pillar Cards */
.welfare-pillar-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.welfare-pillar-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.22);
  pointer-events: none;
}

.welfare-pillar-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 61, 0.08);
}

.welfare-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #faf8f3;
  border: 1px solid #e2d8c3;
  color: var(--glm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.welfare-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 8px;
}

.welfare-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 14px;
  flex-grow: 1;
}

.welfare-card-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glm-brass);
  border-top: 1px solid #ede8de;
  padding-top: 10px;
  margin-bottom: 0;
}

/* Rank Department Dossier Cards */
.rank-department-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.rank-department-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.22);
  pointer-events: none;
}

.rank-department-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 61, 0.08);
}

.rank-dept-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.rank-dept-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glm-navy-deep);
  color: var(--glm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rank-dept-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 2px;
}

.rank-dept-sub {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glm-brass);
  margin-bottom: 0;
}

.rank-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.rank-chip {
  background: #faf8f3;
  border: 1px solid #e5dfd2;
  color: #1e293b;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.rank-dept-footer {
  font-size: 0.77rem;
  color: #64748b;
  border-top: 1px solid #ede8de;
  padding-top: 10px;
  margin-bottom: 0;
}

/* Seafarer Application Ledger */
.seafarer-ledger-box {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 44px 38px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 30, 61, 0.06);
}

.seafarer-ledger-box::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  pointer-events: none;
}

.ledger-part-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  border-bottom: 1px solid #ede8de;
  padding-bottom: 8px;
  margin-top: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ledger-part-heading:first-of-type {
  margin-top: 0;
}

.ledger-part-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glm-gold);
  background: #faf8f3;
  border: 1px solid #e2d8c3;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.seafarer-ledger-box .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.seafarer-ledger-box .form-control,
.seafarer-ledger-box .form-select {
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  padding: 10px 14px;
  color: #1e293b;
  background-color: #ffffff;
  transition: var(--transition);
}

.seafarer-ledger-box .form-control:focus,
.seafarer-ledger-box .form-select:focus {
  border-color: var(--glm-navy);
  box-shadow: 0 0 0 3px rgba(1, 58, 118, 0.12);
  outline: none;
}

.upload-dossier-panel {
  background: #faf8f3;
  border: 1px dashed #c59b27;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

/* Departmental Routing Cards (contact.html) */
.department-desk-card {
  background: #ffffff;
  border: 1px solid #dcd4c5;
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.department-desk-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 155, 39, 0.22);
  pointer-events: none;
}

.department-desk-card:hover {
  border-color: var(--glm-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 61, 0.08);
}

.dept-desk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dept-desk-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glm-navy-deep);
  color: var(--glm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dept-desk-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--glm-navy-deep);
  margin-bottom: 2px;
}

.dept-desk-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glm-brass);
}

.dept-desk-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 16px;
  flex-grow: 1;
}

.dept-desk-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ede8de;
  padding-top: 12px;
}

.dept-desk-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 6px;
}

.dept-desk-contact-item:last-child {
  margin-bottom: 0;
}

.dept-desk-contact-item i {
  color: var(--glm-gold);
  font-size: 0.85rem;
}

.dept-desk-contact-item a {
  color: var(--glm-navy);
  font-weight: 600;
  text-decoration: none;
}

.dept-desk-contact-item a:hover {
  color: var(--glm-gold);
}

@media (max-width: 991.98px) {
  .seafarer-pledge-card {
    padding: 26px 20px;
  }
  .seafarer-ledger-box {
    padding: 28px 20px;
  }
}

@media (max-width: 576px) {
  .pledge-title {
    font-size: 1.25rem;
  }
  .pledge-emblem-badge {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
}


