:root {
  /* Palette: Elite Midnight & Gold */
  --bg-dark: #020C1B;       /* Deepest Navy/Black */
  --bg-panel: #0A192F;      /* Lighter Navy for cards */
  --bg-hover: #112240;      
  
  --text-main: #E6F1FF;     /* Off-white */
  --text-muted: #8892b0;    /* Slate gray */
  
  /* Accent: "Deep Gold" from Koursebox Logo */
  --accent-gold: #C5A059;   
  --accent-gold-hover: #D4B06A;
  
  --border: rgba(197, 160, 89, 0.15); /* Subtle Gold Border */
  --border-light: rgba(230, 241, 255, 0.05);

  --font-heading: "Playfair Display", serif;
  --font-ui: "Inter", sans-serif;
  
  --radius: 4px; /* Sharper corners for a more corporate feel */
  --spacing: 20px;
}

/* Reset & Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2.2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p { margin-bottom: 1.5rem; color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: 0.2s; }

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

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(2, 12, 27, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }

/* --- Logo Visibility Fix --- */
.brand-icon {
  height: 32px;
  width: auto;
  /* This filter turns the black logo into the matte gold color (#C5A059) */
  filter: invert(72%) sepia(16%) saturate(1142%) hue-rotate(1deg) brightness(89%) contrast(87%);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.05);
  /* Optional: turns the logo pure white on hover */
  filter: brightness(0) invert(1);
}

/* --- Brand Typography Alignment --- */
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-gold); /* [cite: 31] */
  margin-top: 2px;
}
.links { display: flex; gap: 32px; }
.links a { font-size: 0.9rem; font-weight: 500; color: var(--text-main); opacity: 0.7; }
.links a:hover { opacity: 1; color: var(--accent-gold); }

@media (max-width: 768px) { .links { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 2px; /* Very square/swiss */
  cursor: pointer;
  letter-spacing: 0.5px;
}
.btn.small { padding: 8px 18px; font-size: 0.85rem; }

.btn.primary {
  background-color: var(--accent-gold);
  color: #000; /* Contrast for gold */
  border: 1px solid var(--accent-gold);
}
.btn.primary:hover { background-color: var(--accent-gold-hover); transform: translateY(-1px); }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn.ghost:hover { background: rgba(197, 160, 89, 0.1); }

/* --- Hero Section --- */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #112240 0%, var(--bg-dark) 60%);
}
.hero-content { max-width: 800px; margin: 0 auto; }
.pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.lead { font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px; }
.cta-group { display: flex; gap: 16px; justify-content: center; }

/* --- Sections General --- */
.section { padding: 100px 0; }
.section.dark-alt { background-color: var(--bg-panel); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-head { margin-bottom: 60px; }
.text-center { text-align: center; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Grid Systems --- */
.grid { display: grid; gap: 30px; }
.three-col { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) { .three-col { grid-template-columns: 1fr; } }

/* --- Cards --- */
.card {
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: 0.3s;
}
.feature-card:hover { border-color: var(--accent-gold); transform: translateY(-5px); }
.icon-box { font-size: 2rem; color: var(--accent-gold); margin-bottom: 16px; }

/* --- Portfolio --- */
.portfolio-grid { display: grid; gap: 40px; }

.venture-card {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.venture-card.featured { border: 1px solid var(--accent-gold); }

.venture-image {
  flex: 0 0 300px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 1px solid var(--border-light);
}
.venture-image img { max-width: 100%; height: auto; }

.venture-content { padding: 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.venture-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.venture-meta h3 { margin: 0; font-size: 1.8rem; }

.status-tag {
  font-size: 0.75rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 2px;
}
.status-tag.gold { color: #000; background: var(--accent-gold); }
.status-tag.green { color: #64ffda; background: rgba(100, 255, 218, 0.1); }
.status-tag.gray { color: var(--text-muted); background: rgba(255,255,255,0.1); }

.venture-desc { font-size: 1.05rem; margin-bottom: 24px; }
.quote-box {
  border-left: 2px solid var(--accent-gold);
  padding-left: 16px;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 24px;
}
.text-link { color: var(--accent-gold); font-weight: 600; font-size: 0.9rem; }
.text-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .venture-card { flex-direction: column; }
  .venture-image { border-right: none; border-bottom: 1px solid var(--border-light); padding: 60px; }
}

/* --- Split Layout (Leadership) --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.portrait-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(45deg, #112240, #0A192F);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
  font-family: var(--font-heading);
}
@media (max-width: 768px) { .split-layout { grid-template-columns: 1fr; } }

/* --- Contact Form --- */
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info h2 { font-size: 2.5rem; }
.detail-item { margin-top: 30px; }
.detail-item strong { color: var(--accent-gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }

.contact-form { background: var(--bg-panel); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border-light); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-main); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px;
  background: var(--bg-dark); border: 1px solid var(--border-light);
  color: var(--text-main); font-family: var(--font-ui);
  border-radius: 2px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-gold); }
.full-width { width: 100%; }

@media (max-width: 768px) { .contact-container { grid-template-columns: 1fr; } }

/* --- Footer --- */
.footer { padding: 60px 0; border-top: 1px solid var(--border-light); font-size: 0.9rem; color: var(--text-muted); }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { margin-left: 24px; }
.copyright { margin-top: 4px; font-size: 0.85rem; opacity: 0.6; }



/* --- Leadership Mobile Fixes --- */
@media (max-width: 768px) {
  #leadership {
    padding: 60px 0 !important;
  }

  #leadership .split-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }

  /* Watermark scaling */
  #leadership .split-text span[style*="font-size: 10rem"] {
    font-size: 6rem !important;
    top: -20px !important;
    left: 0 !important;
    width: 100%;
  }

  #leadership .split-text div[style*="width: 60px"] {
    margin: 0 auto 30px !important;
  }

  #leadership .split-text p[style*="border-left"] {
    border-left: none !important;
    border-top: 2px solid rgba(197, 160, 89, 0.3);
    padding: 20px 0 0 0 !important;
    text-align: center;
  }

  #leadership .split-image {
    min-height: auto !important;
    display: flex;
    flex-direction: column; /* Stacks image and name tag vertically */
    align-items: center;
  }

  /* FIX: The Name Tag */
  #leadership .split-image div[style*="position: absolute; bottom: 15%"] {
    position: relative !important; /* Disables absolute floating */
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    
    /* Box Styling for Mobile */
    margin: -30px auto 0 !important; /* Pulls tag up slightly to overlap photo */
    width: 85% !important; /* Ensures it stays within screen bounds */
    max-width: 320px;
    padding: 20px !important;
    text-align: center;
    
    /* Visual Tweaks */
    border-left: none !important;
    border-top: 4px solid var(--accent-gold);
    backdrop-filter: blur(10px);
    background: rgba(10, 25, 47, 0.9) !important; /* Solidifies background for readability */
  }

  /* Ensure text inside the tag doesn't wrap or break */
  #leadership .split-image div p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #leadership .split-image div[style*="border-top"],
  #leadership .split-image div[style*="border-bottom"] {
    display: none;
  }
}