/* Parmida UAE Investment Report - Shared Styles */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
  color: #2d2d2d;
  background: #f5f5f5;
}

/* Prevent overflow issues */
* {
  box-sizing: border-box;
}

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

/* Sticky Navigation */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1a3a5c;
  color: white;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-size: 17px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle.active {
  color: #d4af37;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 0.8rem 0.5rem;
  background: transparent !important;
  border: none !important;
  white-space: nowrap;
}

.nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 0.3rem;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover {
  color: #d4af37;
  background: transparent !important;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a3a5c;
  min-width: 220px;
  padding: 0.5rem 0;
  margin-top: 0;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Create an invisible bridge to prevent dropdown from disappearing */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

/* Keep dropdown open when hovering over toggle OR menu OR when opened by JavaScript */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure menu stays visible when hovering over it */
.nav-dropdown-menu:hover {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-dropdown.open .nav-dropdown-toggle {
  color: #d4af37;
  background: transparent !important;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: #1a3a5c;
  color: #d4af37;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Content Wrapper */
.content-wrapper {
  max-width: 1000px;
  margin: 90px auto 2rem;
  background: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  padding: 3rem 4rem;
}

/* Header Styles */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 3px solid #1a3a5c;
  padding-bottom: 2rem;
}

.page-header h1 {
  color: #1a3a5c;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: #2c5f8d;
  font-size: 18px;
  margin-bottom: 1rem;
}

.page-header .confidential {
  font-size: 11px;
  color: #d32f2f;
  font-weight: bold;
  margin-top: 1rem;
}

/* Typography */
h1 {
  color: #1a3a5c;
  font-size: 28px;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.5rem;
}

h2 {
  color: #2c5f8d;
  font-size: 22px;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

h3 {
  color: #2c5f8d;
  font-size: 18px;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

h4 {
  color: #1a3a5c;
  font-size: 16px;
  font-weight: bold;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
  color: #2d2d2d;
}

ul, ol {
  font-size: 15px;
  line-height: 1.9;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #2d2d2d;
}

li {
  margin-bottom: 0.7rem;
  color: #2d2d2d;
}

/* Enhanced styling for list items with strong tags */
li strong {
  color: #1a3a5c;
  font-weight: 700;
}

/* Key bullet points styling */
ul > li {
  position: relative;
}

/* Better bullet visibility */
ul li::marker {
  color: #1a3a5c;
  font-size: 1.1em;
}

/* Metric Boxes */
.key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.metric-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-left: 5px solid #d4af37;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.metric-value {
  font-size: 32px;
  font-weight: bold;
  color: #1a3a5c;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Info Boxes */
.info-box {
  background: #f0f7ff;
  border: 2px solid #2c5f8d;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.highlight-box {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.critical-box {
  background: #d1ecf1;
  border-left: 5px solid #17a2b8;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.executive-summary {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  padding: 2rem;
  border: 2px solid #2c5f8d;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.investment-metrics {
  background: #f8f9fa;
  padding: 1rem;
  border-left: 4px solid #d4af37;
  margin: 1rem 0;
  font-weight: bold;
  color: #1a3a5c;
  font-size: 16px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #2d2d2d;
}

thead {
  background: #1a3a5c;
  color: white;
}

th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  color: #2d2d2d;
  line-height: 1.6;
}

td strong {
  color: #1a3a5c;
  font-weight: 700;
}

tr:nth-child(even) {
  background: #f8f9fa;
}

tr:hover {
  background: #e9ecef;
}

/* Images and Charts */
.image-container {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.chart-caption {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 0.8rem;
}

.chart-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

/* Layouts */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.phase-box {
  background: white;
  border: 2px solid #1a3a5c;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.phase-header {
  background: #1a3a5c;
  color: white;
  padding: 0.8rem 1.5rem;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  font-weight: bold;
  font-size: 16px;
}

/* Back to Top Button */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a3a5c;
  color: white;
  padding: 15px 20px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background: #1a3a5c;
  transform: translateY(-3px);
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 2px solid #1a3a5c;
  color: #666;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sticky-nav {
    padding: 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 14px;
  }
  
  .nav-links a {
    font-size: 14px;
  }
  
  .nav-dropdown-toggle {
    font-size: 14px;
  }
  
  .nav-dropdown-menu a {
    font-size: 13px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .content-wrapper {
    margin-top: 80px;
    padding: 2rem 1.5rem;
  }

  .page-header h1 {
    font-size: 24px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

  .key-metrics {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 24px;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 8px 5px;
    font-size: 13px;
  }
  
  td {
    color: #2d2d2d;
  }
  
  td strong {
    color: #1a3a5c;
  }
}

@media print {
  .sticky-nav,
  .back-to-top {
    display: none !important;
  }

  .content-wrapper {
    margin: 0;
    box-shadow: none;
    padding: 0;
  }

  body {
    background: white;
  }
}
