/* Basic Reset */
*{box-sizing:border-box}html,body{margin:0;padding:0}
:root{
  --blue-900:#0b4aa2;
  --blue-700:#1e5fbf;
  --blue-600:#2563eb;
  --gray-900:#0f172a;
  --gray-800:#1f2937;
  --gray-700:#334155;
  --gray-600:#475569;
  --gray-100:#f1f5f9;
  --white:#ffffff;
  --green-600:#16a34a;
}
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
  color:#0b1220;
  background:#fff;
}

/* Layout helpers */
.container{max-width:1120px;margin:0 auto;padding:0 20px}
.container.narrow{max-width:800px}
.center{text-align:center}
.small{font-size:.925rem}

/* Buttons */
.btn{display:inline-block;border-radius:14px;padding:10px 18px;font-weight:600;text-decoration:none;transition:.2s ease;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.btn--primary{background:#00358C;color:#fff}
.btn--primary:hover{transform:translateY(-1px);filter:brightness(1.05)}
.btn--ghost{background:#fff;color:var(--blue-900);border:1px solid rgba(255,255,255,.6)}
.btn--ghost:hover{background:rgba(255,255,255,.9)}
.btn--light{background:#fff;color:var(--blue-900)}
.btn--light:hover{filter:brightness(0.98)}

/* Hero */
/*.hero{
  background:#0b4aa2;
  color:#fff;
  padding:96px 0;
}*/

.hero-bg {
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf);
  color: #fff;
}

.hero {
  background: transparent;
  color: #fff;
  padding: 50px 0 20px;
}

/*.hero__title{font-size:clamp(32px,5vw,56px);letter-spacing:-.5px;margin:0 0 16px 0;font-weight:800}*/
.hero__subtitle{font-size:clamp(16px,2.2vw,22px);opacity:.95;max-width:760px;margin:0 auto 30px}
.hero__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* Glow effect for header buttons */
.hero .btn--primary,
.hero .btn--ghost {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0px rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.hero .btn--primary:hover,
.hero .btn--ghost:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.6), 
              0 0 20px rgba(30,95,191,0.6);
  transform: translateY(-2px);
}

/*.hero__title {
  font-size:clamp(24px,3.5vw,36px);margin:28px 0 0;font-weight:700;color: black;
}*/

.hero__title {
  font-size: clamp(24px,3.5vw,36px);
  margin: 0;
  font-weight: 700;
  color: white;
  position: relative;
  /*display: inline-block;*/
  padding: 10px 20px;
  /*text-shadow: 0 2px 6px rgba(255, 255, 255, 0.8);*/
}

/* Sections */
.section{padding:30px 0}
.section--muted{background:#f8fafc}
.section__title{font-size:clamp(24px,3.5vw,36px);margin:0 0 28px;font-weight:700}

.section1{
  padding:1px 0 50px 0;
  background: transparent;
  color: #fff;
}


/* Cards */
.card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:25px 20px;box-shadow:0 12px 28px rgba(2,6,23,.06)}
.card--hover{transition:transform .2s ease, box-shadow .2s ease}
.card--hover:hover{transform:translateY(-4px);box-shadow:0 16px 44px rgba(2,6,23,.10)}
.icon{color:var(--blue-600);margin-bottom:10px}

/* Grid */
.grid{display:grid;gap:22px}
.grid--3{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(1,minmax(0,1fr))}
@media(min-width:720px){.grid--3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:960px){.grid--4{grid-template-columns:repeat(4,1fr)}}

/* Chart */
.chart-wrap{width:100%;overflow:auto}

/* KPI */
.kpi{margin:0 auto 10px auto;font-weight:300; max-width: 900px;}
.kpi--green{color:var(--green-600)}
.kpi_bottom{margin:0 auto 30px auto;font-weight:300; max-width: 900px;}

/*Notice*/
.notice {margin:20px auto 0 auto;font-size:small;font-style: italic;font-weight: normal;margin-top: 20px;max-width: 600px;}

/* Accordion */
/* Accordion Container Frame */
.accordion {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(2,6,23,.06);
  overflow: hidden;
  margin-top: 20px;
  padding: 20px;
}

/* Keep the dividers between items */
.accordion__item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion__item:last-child {
  border-bottom: none;
}

/*.accordion__item{border-bottom:1px solid #e5e7eb}*/
.accordion__trigger{
  width:100%;text-align:left;background:none;border:0;padding:16px 0;
  font-size:1.1rem;font-weight:500;color:#0b1220;cursor:pointer;display:flex;justify-content:space-between;align-items:center
}
.accordion__trigger::after{content:"+";font-weight:700;color:var(--blue-700)}
.accordion__trigger[aria-expanded="true"]::after{content:"–"}
.accordion__content{max-height:0;overflow:hidden;transition:max-height .25s ease;padding-right:8px;color:#475569}
.accordion__content.open{padding:0 0 16px 0}

/* CTA */
/*.cta{background:linear-gradient(90deg, var(--blue-700), #3b82f6);color:#fff;text-align:center}*/
.cta {
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf, #3b82f6);
  color: #fff;
  text-align: center;
  padding:55px 0;
}

.cta .btn--light {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--blue-900);
  box-shadow: 0 0 5px rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}

.cta .btn--light:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 60px rgba(30,95,191,0.6);
  transform: translateY(-2px);
}

.cta .section__title{color:#fff}

/* Footer */
/*.footer{background:#0b2a5f;color:#fff;padding:32px 0}*/

.footer {
  background: linear-gradient(180deg, #0b2a5f, #0a1125);
  color: #fff;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(30,95,191,0.6), rgba(255,255,255,0.6), rgba(30,95,191,0.6));
  filter: blur(6px);
}

.footer a{color:#fff;text-decoration:underline}


/* Downloads */
.downloads .doc{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;position:relative}
.doc__icon{color:var(--blue-600);background:#eef2ff;border-radius:14px;display:flex;align-items:center;justify-content:center;width:56px;height:56px;flex:0 0 56px}
.doc__body{display:flex;flex-direction:column}
.doc__title{font-weight:700;margin:0 0 2px 0}
.doc__meta{color:#64748b;font-size:.92rem}
.badge{position:absolute;right:18px;top:18px;background:var(--blue-600);color:#fff;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:600}
.downloads .doc:hover .badge{filter:brightness(1.05)}
.downloads .doc:hover .doc__icon{filter:brightness(1.04)}
@media(max-width:720px){.badge{position:static;margin-left:auto}}

/* Modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  animation: fadeInUp 0.3s ease;
}

/* === Modernized Close Button === */
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.modal-close:hover {
  background: rgba(30, 95, 191, 0.9);
  color: #fff;
  box-shadow: 0 0 10px rgba(30, 95, 191, 0.5);
  transform: rotate(90deg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-weight: 600;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}

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

/*.hero__logo {
  max-width: 660px;
  margin: 0 auto 20px;
  display: block;
}*/

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

/* Hero logo */
.hero__logo {
  /* existing visual styles kept */
  background: rgba(255,255,255,0.08);
  padding: 20px 20px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite;

  /* responsiveness */
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  margin: 25px auto 12px;
}

/* Mobile spacing polish */
@media (max-width: 600px) {
  .hero { padding: 64px 0 72px; }
  .hero__subtitle { margin: 20px auto 28px; }
  .hero__actions { gap: 10px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* CTA contact card — glass + animated glow border */
.cta-contact {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite; /* already defined in your CSS */
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  overflow: hidden; /* for the animated border mask */
}

/* Animated gradient border */
.cta-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;                 /* border thickness */
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.85),
    rgba(30,95,191,0.85),
    rgba(255,255,255,0.85),
    rgba(30,95,191,0.85),
    rgba(255,255,255,0.85)
  );
  /* mask to show only the border ring */
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 8s linear infinite;
  opacity: 0.75;
  pointer-events: none;
}

/* A faint inner overlay to soften the glow */
.cta-contact::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(20px - 2px);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Typography for the CTA content */
.cta-contact p { margin: 0; color: #fff; font-size: 1rem; }
.cta-contact a { color: #fff; text-decoration: underline; }

/* Slow, subtle spin */
@keyframes spin { to { transform: rotate(360deg); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-contact, .cta-contact::before { animation: none; }
}

/* Slim black outline for the hero title */
.text-outline{
  /* Primary: crisp stroke in WebKit/Blink */
  /*-webkit-text-stroke: 0.8px rgba(0,0,0,0.9);*/
  /* Keep current fill color (white) from .hero__title */
  /* Fallback for browsers without text-stroke: tight shadow ring */
  text-shadow:
    0  0.5px 0 rgba(0,0,0,0.9),
    0 -0.5px 0 rgba(0,0,0,0.9),
    0.5px  0  0 rgba(0,0,0,0.9),
   -0.5px  0  0 rgba(0,0,0,0.9),
    0.5px  0.5px 0 rgba(0,0,0,0.9),
   -0.5px  0.5px 0 rgba(0,0,0,0.9),
    0.5px -0.5px 0 rgba(0,0,0,0.9),
   -0.5px -0.5px 0 rgba(0,0,0,0.9);
}

/* === Performance chart + table responsive grid === */
.chart-table-grid {
  display: grid;
  grid-template-columns: 7fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .chart-table-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure table goes below on mobile by natural flow */
}

/* Table card */
.performance-table-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 12px 28px rgba(2,6,23,.06);
  overflow: hidden;
  align-self: start; /* so it aligns to top next to tall chart */

  width: fit-content;
  margin: auto auto;
}

/* Table base */
.performance-table {
  width: auto; margin: 0 auto; table-layout: auto;
  border-collapse: collapse;
  font-size: 0.85rem;
}

/* Header */
.performance-table thead th {
  /*background: var(--blue-900);*/
  background: #00358C;
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Body rows */
.performance-table tbody td {
  padding: 12px 14px;
  background: #eaf2ff; /* light blue */
  border-bottom: 1px solid #dbe7ff;
}

/* Zebra + hover for a refined feel */
.performance-table tbody tr:nth-child(even) td {
  background: #f2f7ff;
}
.performance-table tbody tr:hover td {
  filter: brightness(0.98);
}

/* First column (year) alignment */
.performance-table tbody td:first-child {
  font-weight: 600;
  text-align: center;
}

/* Second column (value) alignment */
.performance-table tbody td:last-child {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--blue-700);
  font-weight: 600;
}

.performance-table .summary-header th {
  /*background: var(--blue-900);*/
  background: #00358C;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 12px;
}

.performance-table .summary-value td {
  color: var(--blue-700);
  font-weight: 700;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid #dbe7ff;
}

.exp_an{margin:25px auto 25px auto;font-weight: normal; font-size: 0.9em; max-width: 600px;}

/* Highlight card in "Why Choose AFM" */
.card--highlight {
  /*background: var(--blue-900);*/
  background: #00358C;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-radius: 22px;
  padding: 24px 24px;
  box-shadow: 0 12px 28px rgba(2,6,23,.10);
  margin: 55px auto 0;
  max-width: 800px;
}

.card--highlight .highlight-text {
  display: block; /* ensures paragraphs stack vertically */
}

.card--highlight .highlight-text p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.card--highlight .icon.white {
  color: #fff;
  flex-shrink: 0;
}

.card--highlight p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.99rem;
}

@media (max-width: 720px) {
  .card--highlight {
    flex-direction: column;
    text-align: center;
  }

  .card--highlight .highlight-text {
    text-align: left;
  }
}

.cta-contact .btn--light {
  margin-bottom: 10px;
}

/* Remove text-outline effect for the button inside CTA */
.no-outline {
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-decoration: none !important;
}

/* Modern scroll-down icon — centered */
.scroll-down {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  animation: bounce 2.2s infinite;
  transition: transform 0.3s ease;
  width: 100%;
}

.scroll-down:hover {
  transform: translateY(4px);
}

.scroll-icon {
  filter: drop-shadow(0 0 6px rgba(30,95,191,0.6));
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.scroll-icon:hover {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.8));
  transform: scale(1.05);
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Read more button on cards */
/* === Read More Button: glassy blue-outline style === */
.card__readmore {
  margin-top: 14px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(30, 95, 191, 0.6);
  border-radius: 999px;
  color: var(--blue-700);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
}

.card__readmore:hover {
  background: rgba(30, 95, 191, 0.9);
  color: #fff;
  box-shadow: 0 0 12px rgba(30, 95, 191, 0.7), 0 0 30px rgba(30, 95, 191, 0.4);
  transform: translateY(-2px);
}

/*make the read more button larger on mobile device*/
@media (max-width: 600px) {
  .card__readmore {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Ensure uniform card height and aligned "Read more" buttons */
.grid--4 .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid--4 .card h3,
.grid--4 .card p {
  flex-grow: 1; /* pushes the button to the bottom evenly */
}

.grid--4 .card__readmore {
  align-self: center; /* keeps buttons centered */
  margin-top: auto;   /* pushes button to bottom of card */
}

/* === Info Modal: refined translucent + blue glow === */
.info-modal {
  max-width: 520px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow:
    0 0 30px rgba(30, 95, 191, 0.25),
    0 0 60px rgba(30, 95, 191, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.35s ease;
}

/* Soft animated glowing edge */
.info-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(30,95,191,0.9), rgba(59,130,246,0.8), rgba(255,255,255,0.6));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
  animation: glowPulse 6s ease-in-out infinite;
}

/* Icon & Text */
.info-modal .modal-icon {
  color: var(--blue-700);
  margin-bottom: 14px;
}

.info-modal .modal-text {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  text-align: left; /* ensure paragraphs stay left-aligned */
}

/* Gentle pulse animation for gradient frame */
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; filter: blur(0px); }
  50% { opacity: 1; filter: blur(1px); }
}

/* === Premium Opening Animation (fade + slide + zoom-in) === */
@keyframes modalAppear {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modal-content {
  animation: modalAppear 0.45s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  transform-origin: center;
}

/* === Smooth Fade-Out Animation for Modal Closing === */
@keyframes modalDisappear {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}

.modal-content.closing {
  animation: modalDisappear 0.35s ease forwards;
}

/* === Login Button Styling === */
.login-container {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 2000;
}

.login-btn {
  padding: 8px 18px;
  background: linear-gradient(
    135deg,
    rgba(11, 74, 162, 0.75),
    rgba(30, 95, 191, 0.65)
  );
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.login-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(11, 74, 162, 0.75),
    rgba(30, 95, 191, 0.65)
  );
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 10px; /* reduce space between name and logout icon */
}

.client-name {
  display: flex;
  flex-direction: column;
  line-height: 0.7; /* tighten the vertical space */
}

.logout-btn {
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.25s ease;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Adjust for mobile */
@media (max-width: 600px) {
  .login-container {
    top: 14px;
    right: 16px;
  }
  .login-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}

/* === About Us tabs === */
.tabs { max-width: 980px; margin: 0 auto; }
.tablist {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px;
}
.tab-btn {
  padding: 14px 28px;             /* bigger padding */
  font-size: 1.1rem;              /* larger text */
  border-radius: 999px;
  border: 2px solid rgba(30,95,191,0.4);
  background: #fff;
  color: var(--blue-700);
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  min-width: 180px;               /* ensures consistent width */
}

.tab-btn[aria-selected="true"] {
  background: #1e5fbf;
  color: #fff;
  border-color: #1e5fbf;
  box-shadow: 0 8px 20px rgba(30,95,191,0.25);
  transform: scale(1.05);         /* slight enlargement when active */
}
.tab-btn:hover { transform: translateY(-1px); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* About cards layout (reuses .card look) */
.about-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 900px;         /* consistent width with other sections */
  margin: 0 auto;           /* center inside container */
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
  min-height: 280px;        /* ensures both tabs have the same height baseline */
}

/* Keep the image consistent size */
.about-media img {
  border-radius: 16px;
  width: 205px; /* was 160px → 160 × 1.3 = 208 */
  height: auto;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}

/* Text styles */
.about-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-body p {
  margin-top: 0;
  color: var(--gray-700);
  line-height: 1.7;
}
.about-name {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--blue-700);
  font-weight: 700;
}

/* Responsive layout for small screens */
@media (max-width: 640px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 20px;
    max-width: 100%;
    min-height: unset;
  }

  .about-media img {
    width: 100%;
    max-width: 400px; /* previously 340px, also 30% larger */
    margin: 0 auto;
  }
}

/* === About Us: Read More === */
.about-body .about-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.about-body.expanded .about-more {
  /* max-height will be set dynamically in JS for perfect height,
     but this ensures keyboard users see content if JS is off */
  max-height: 2000px;
}

/* === About Us: Read More button styling (aligned right) === */
.about-body {
  position: relative;
}

.about-readmore {
  display: inline-block;
  width: 120px;              /* only as wide as the text */
  min-width: unset;
  padding: 6px 14px;
  margin-top: 10px;

  /* right alignment */
  display: block;
  margin-left: auto;
  margin-right: 0;
  text-align: center;

  /* inherit the button’s look */
  float: none !important;    /* override possible floats from .card__readmore */
}

/* === Floating Section Navigator === */
.section-nav {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 1200;
  display: none;
}

.section-nav__fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 45px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.65);
  cursor: pointer;
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15) 60%), linear-gradient(135deg, #0b4aa2, #1e5fbf);
  box-shadow: 0 12px 28px rgba(2,6,23,.22), inset 0 0 20px rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  gap: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* On mobile, hide the "Menu" text but keep the icon */
@media (max-width: 768px) {
  .section-nav__fab span {
    display: none;
  }
}

.section-nav__fab .fab-text {
  color: #fff;
  letter-spacing: 0.5px;
}

.section-nav__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(2,6,23,.28);
  filter: saturate(1.08);
}

.section-nav__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);   /* below the button */
  width: min(88vw, 320px);
  background: rgba(255,255,255,0.98);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(2,6,23,.25);
  transform: translateY(-8px);  /* small upward offset before opening */
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
  overflow: hidden;
}

.section-nav.open .section-nav__panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.section-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf);
  color: #fff;
  font-weight: 700;
}

.section-nav__close {
  background: rgba(255,255,255,0.2);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
}

.section-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 60vh;
  overflow: auto;
}

.section-nav__list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--gray-800);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.section-nav__list li a .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #eaf2ff;
  color: var(--blue-700);
  font-weight: 800;
}

.section-nav__list li a:hover {
  background: #eef2ff;
  color: var(--blue-700);
  transform: translateX(2px);
}

.section-nav__list li a.is-active {
  background: #eaf2ff;
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1.5px rgba(30,95,191,0.35);
}

@media (max-width: 640px) {
  .section-nav { left: 14px; top: 12px; }
  .section-nav__fab { width: 40px; height: 40px; gap: 0px;}
}

@media (prefers-reduced-motion: reduce) {
  .section-nav__fab { transition: none; }
  .section-nav__panel { transition: none; }
}

/* === Quick Nav (icons above labels, hero-friendly) === */
.quick-nav{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:14px;
  margin: 25px auto 0;
}

.quick-nav__item{
  appearance:none;
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color:#fff;
  border-radius:16px;
  padding:10px 16px;
  min-width:96px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-weight:600;
  letter-spacing:.2px;
  cursor: default; /* pas d'action pour l'instant */
  backdrop-filter: blur(6px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.quick-nav__item svg{
  width:22px;
  height:22px;
  display:block;
}

.quick-nav__item span{
  font-size: .85rem;
  line-height:1;
}

.quick-nav__item.is-active{
  background:#fff;
  color: var(--blue-900);
  border-color:#fff;
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
}

/* état désactivé (Intraday/History) */
.quick-nav__item[aria-disabled="true"]{
  opacity: .75;
}

/* === Quick Nav click animation === */
.quick-nav__item:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.18);
}

/* === Hover animation for Quick Nav items === */
.quick-nav__item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  color: #fff;
}

/* smoother transitions for hover/active */
.quick-nav__item {
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

/* focus visible clavier */
.quick-nav__item:focus-visible{
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}

/* Mobile: n’afficher que l’icône */
@media (max-width:720px){
  .quick-nav{ gap:10px; }
  .quick-nav__item{
    min-width:auto;
    padding:10px 12px;
    border-radius:14px;
  }
  .quick-nav__item span{ display:none; }
}

.quick-nav__item.is-active {
  position: relative;
  background:#fff;
  color: var(--blue-900);
  border-color:#fff;
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
}

.quick-nav__item.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 16px 4px rgba(255,255,255,0.25);
  opacity: 0;
  animation: pulseActive 2.4s ease-in-out infinite;
}

@keyframes pulseActive {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* === Animated section hide/show === */
section[id^="section"], .section1 {
  transition: opacity .35s ease, transform .35s ease, max-height .45s ease, padding .35s ease, margin .35s ease;
  will-change: opacity, transform, max-height, padding, margin;
}

/* hidden state */
.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  max-height: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.weglot-container {
    position: fixed;
    top: 15px;
    left: 20px;
    padding: 0 5px 0 28px;
    background-color: #fff;
    border-radius: 12px;
    z-index: 2000;
    border: 1.5px solid rgba(0, 0, 0, 0.7);
}

/* The globe */
.weglot-container::before{
  content:"";
  position:absolute;
  left:6px; top:50%;
  transform:translateY(-50%);
  width:18px; height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  /* SVG uses currentColor so it inherits your text color */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 0 1 0 20a15.3 15.3 0 0 1 0-20'/></svg>");
  color:inherit;
}

.iframe-container {
  height:1000px;
  overflow:hidden;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(2,6,23,.06);
  border:1px solid #e5e7eb;
  padding:10px 10px;
}

iframe {
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.iframe-container-history {
  height:1100px;
  overflow:hidden;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(2,6,23,.06);
  border:1px solid #e5e7eb;
  padding:10px 10px;
}

@media (max-width:720px){
  .iframe-container-history {
    height:1500px;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(2,6,23,.06);
    border:1px solid #e5e7eb;
    padding:10px 10px;
  }

  .iframe-container {
    height:1300px;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(2,6,23,.06);
    border:1px solid #e5e7eb;
    padding:10px 10px;
  }
}

/* === Intraday Info Icon === */
.info-icon-container {
  display: flex;
  justify-content: flex-end;
  padding: 0px 2% 6px 0;
}

.info-icon {
  color: var(--blue-700);
  cursor: pointer;
  transition: all 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(30, 95, 191, 0.3));
}

.info-icon:hover {
  color: var(--blue-900);
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(30, 95, 191, 0.6));
}

.user-info-row {
  display: flex;
  justify-content: center;          /* centers whole row */
  align-items: center;
  gap: 10px;
  padding: 0px 0 6px 0;
}

.user-display-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-700);
}

.inline-history-link {
  color: var(--blue-700);
  font-weight: 600;
  cursor: pointer;
  /*text-decoration: underline;*/
}

.inline-history-link:hover {
  color: var(--blue-900);
}

/* === Monthly Performance (modal + table) === */
.monthly-btn-wrap{
  display:flex;
  justify-content:center;
  margin: 12px auto 0;
}

.monthly-btn{
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .95rem;
  cursor: pointer;
}

.monthly-modal{
  max-width: 920px;
  width: 100%;
}

.monthly-title{
  margin: 0 0 12px 0;
  text-align: center;
  color: var(--blue-900);
}

.monthly-table-wrap{
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(2,6,23,.06);
}

.mp-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
  background: #fff;
}

.mp-table thead th{
  background: #00358C;
  color: #fff;
  padding: 10px 8px;
  text-align: center;
  font-weight: 800;
}

.mp-year th{
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf);
  color: #fff;
  text-align: center;
  padding: 12px 12px;
  letter-spacing: 1px;
  font-weight: 900;
  text-transform: uppercase;
}

.mp-cell{
  padding: 10px 6px;
  text-align: center;
  border-top: 1px solid #eef2ff;
  border-right: 1px solid #eef2ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.mp-table tr .mp-cell:last-child{ border-right: 0; }

/* Color coding: positive = blue, negative = red, zero = white */
.mp-pos{
  background: rgba(37, 99, 235, 0.18);
  color: var(--blue-900);
}
.mp-neg{
  background: rgba(220, 38, 38, 0.18);
  color: #991b1b;
}
.mp-zero{
  background: #fff;
  color: var(--gray-800);
}
.mp-empty{
  background: #fff;
  color: #94a3b8;
}

.monthly-note{
  margin: 12px 0 0;
  text-align: center;
  color: var(--gray-600);
  font-size: .9rem;
}

/* === Performance table + monthly button block === */
.performance-table-block{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monthly-btn,
.monthly-btn:hover,
.monthly-btn:focus,
.monthly-btn:active {
  border: none;
}