Css backup  
/* Simple modern styles for MVRAOS */
:root{
  --brand:#0b5df6;
  --accent:#273049;
  --muted:#6b7280;
  --bg:#f8fafc;
  --card:#ffffff;
}
*{box-sizing:border-box}
body{font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; margin:0; color:var(--accent); background:var(--bg); -webkit-font-smoothing:antialiased}
.container{position:relative;z-index:2;max-width:1100px;margin:0 auto;padding:0 24px}
.header{position:relative;z-index:1;background:linear-gradient(90deg, rgba(11,93,246,0.06), rgba(11,93,246,0.02));padding:10px 0;box-shadow:0 10px 30px rgba(2,6,23,0.03)}
.header-inner{display:flex;align-items:center;gap:18px}
.logo-square{width:72px;height:72px;background:var(--card);display:flex;align-items:center;justify-content:center;border-radius:18px;box-shadow:0 10px 30px rgba(2,6,23,0.06)}
.logo-square img{max-width:60px;max-height:60px}
.brand-title{font-size:20px;font-weight:700;color:var(--brand)}
.brand-tag{color:var(--muted);font-size:14px;margin-top:4px}
.nav{display:flex;gap:28px;align-items:center;justify-content:center;padding:22px 0}
.nav a{color:var(--accent);text-decoration:none;font-weight:600}
.cta{margin-left:auto}

.hero{padding:36px 0;background:transparent}
.hero h1{font-size:44px;line-height:1.03;margin:0 0 12px}
.hero p{color:var(--muted);margin:0 0 18px}

.card{background:var(--card);padding:18px;border-radius:12px;box-shadow:0 12px 30px rgba(2,6,23,0.04)}

/* why grid */
.why-grid{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px}
.why-grid .stat{flex:1 1 180px;padding:18px;border-radius:12px;background:var(--card);box-shadow:0 8px 24px rgba(2,6,23,0.04)}

/* schemes table */
.table-wrap{margin-top:18px;overflow:auto}
table{width:100%;border-collapse:collapse;background:var(--card);border-radius:8px;overflow:hidden;box-shadow:0 8px 30px rgba(2,6,23,0.04)}
th,td{padding:14px 18px;text-align:left;border-bottom:1px solid #eef4fb}
th{background:#fbfdff}
tfoot td{color:var(--muted);font-size:13px;padding:10px 18px}

/* footer */
footer{background:linear-gradient(180deg, rgba(11,93,246,0.02), transparent);padding:18px 0;margin-top:18px;border-top:1px solid rgba(2,6,23,0.03)}
.footer-grid{display:flex;gap:40px;flex-wrap:wrap}
.footer-grid .col{flex:1 1 220px}
small{color:var(--muted)}

/* responsive */
@media(max-width:900px){
  .nav{flex-wrap:wrap;justify-content:flex-start;padding:12px 0}
  .hero h1{font-size:28px}
  .logo-square{width:64px;height:64px}
  .cta{order:3;margin-left:0}
}

/* === Modern Footer Quick Links (Refined Underline) === */
.footer-grid .col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-grid .col a {
  display: inline-block; /* <-- was block earlier */
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 15px;
  position: relative;
  transition: all 0.3s ease;
}

/* refined underline (centered, subtle) */
.footer-grid .col a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4da6ff, #1f73ff);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.footer-grid .col a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-grid .col a:hover::after {
  width: 60%; /* only underline part of text */
  box-shadow: 0 2px 6px rgba(11,93,246,0.15);
}










/* === Buttons: Option A - Elegant Glow === */
.btn, .cta a {
  background: linear-gradient(180deg, #4da6ff, #1f73ff);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 3px 10px rgba(31, 115, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  transform: translateY(0);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .cta a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(31, 115, 255, 0.35);
  filter: brightness(1.03);
}
.btn:active, .cta a:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(31, 115, 255, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Secondary / outline */
.btn.secondary {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid rgba(11,93,246,0.12);
  box-shadow: none;
}

/* === Modern FAQ Styling === */
.faq-section {
  max-width: 1000px;
  margin: 56px auto;
  padding: 0 24px;
}
.faq-section h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 24px;
  color: var(--accent);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.04);
  border: 1px solid rgba(11,93,246,0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.06);
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}
.faq-q .badge {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg,#f2f7ff,#eaf2ff);
  color: var(--brand);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(11,93,246,0.08);
}
.faq-q .title { flex: 1; font-size: 1.03rem; }
.faq-q .chev { margin-left: 12px; color: var(--muted); transition: transform 0.18s ease; }
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.32s ease, padding 0.32s ease;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 420px;
  opacity: 1;
  padding-top: 12px;
}
.faq-item.open .chev {
  transform: rotate(180deg);
  color: var(--brand);
}
@media(max-width:900px){
  .faq-section { margin:36px auto; padding:0 16px; }
  .faq-q .badge { min-width:36px; min-height:36px; }
}

/* === Modern Contact Section === */
.contact-section {
  max-width: 1000px;
  margin: 60px auto 40px;
  padding: 0 24px;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--accent);
}

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

.contact-card {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.05);
  border: 1px solid rgba(11, 93, 246, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--brand);
}

.contact-sub {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

/* contact-row alignment fix */
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr; /* fixed label width, flexible value column */
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  font-size: 16px;
}

.contact-row strong {
  color: var(--accent);
  font-weight: 700;
  text-align: right; /* aligns labels neatly on the right */
}

.contact-row a, 
.contact-row div, 
.contact-row span {
  color: var(--brand);
  font-weight: 600;
  word-break: break-word; /* prevents address overflow */
}


.contact-row a:hover {
  text-decoration: underline;
}

/* === Modern Contact Section for maps === */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-section h2 {
    font-size: 1.6rem;
  }
  .contact-card {
    padding: 24px;
  }
}

/* Map container: responsive 16:9 with rounded corners + shadow */
.contact-map {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.06);
  background: #f6f8fb;
  border: 1px solid rgba(11,93,246,0.02);
}

/* full-size iframe inside that container */
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform-origin: center;
}

/* Small overlay button (desktop & tablet) */
.map-action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  background: linear-gradient(180deg,#4da6ff,#1f73ff);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(31,115,255,0.18);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

/* subtle hover */
.map-action:hover { transform: translateY(-3px); }

/* Full-map click overlay used only on small screens (mobile) */
.map-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  text-indent: -9999px;
  cursor: pointer;
}

/* show full overlay only on narrow viewports so desktop users can still interact */
@media (min-width: 720px) {
  .map-click-overlay { display: none; }
}
@media (max-width: 719px) {
  .map-action { display: none; } /* hide button on mobile (we use whole-area click) */
}


/* === Contact layout: robust grid labels + values === */
/* Put this at the end of styles.css so it overrides previous .contact-row rules */

.contact-card .contact-row {
  display: grid !important;
  grid-template-columns: 160px 1fr;    /* label column + flexible value column */
  gap: 12px 18px !important;
  align-items: start;
  margin-bottom: 12px;
  font-size: 16px;
  word-break: break-word;
}

.contact-card .contact-row .label {
  text-align: right;
  color: var(--muted);
  font-weight: 700;
  padding-right: 6px;
  line-height: 1.5;
}

.contact-card .contact-row .value {
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
}

/* make links inside values use brand color */
.contact-card .contact-row .value a {
  color: var(--brand);
  text-decoration: none;
}
.contact-card .contact-row .value a:hover { text-decoration: underline; }

/* Very small screens: stack label above value */
@media (max-width: 520px) {
  .contact-card .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-card .contact-row .label {
    text-align: left;
  }
}

/* === Modern Founder Section === */
.founder-modern {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
}
.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand);
  margin: 14px auto 0;
  border-radius: 2px;
}
.founder-modern-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  gap: 40px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.06);
  padding: 40px;
  text-align: left;
}
.founder-modern-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(2,6,23,0.08);
}
.founder-modern-content h3 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: var(--accent);
}
.founder-modern-content .founder-title {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.founder-modern-content .founder-bio {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .founder-modern-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .founder-modern-photo img {
    max-width: 220px;
    margin: 0 auto 20px;
    border-radius: 50%;
  }
  .founder-modern-content h3 {
    font-size: 1.3rem;
  }
}

/* === About Page Modern Styling === */
.about-intro { text-align:left; max-width:1100px; margin:36px auto 8px; padding:0 24px; }
.about-hero { font-size:40px; margin:6px 0 12px; color:var(--accent); font-weight:800; letter-spacing:-0.5px; }
.about-lead { color:var(--muted); max-width:880px; font-size:1.05rem; line-height:1.8; margin:0 0 30px; }

.about-section { max-width:1100px; margin:30px auto; padding:0 24px; display:block; }
.about-block { margin-bottom:28px; }

/* ---------- Aligned section title with blue bar (affects .section-title only) ---------- */
/* Replace your existing .section-title and .section-title::before blocks with this */

.section-title {
  display: inline-flex;        /* inline row so bar + text sit together */
  align-items: center;         /* vertically center the bar and text */
  gap: 14px;                   /* space between bar and text */
  font-size: 1.6rem;
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;              /* keeps vertical centering predictable */
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 10px;                 /* bar thickness */
  height: 36px;                /* bar height to match bold heading */
  background: linear-gradient(180deg,#4da6ff,#1f73ff);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(31,115,255,0.06);
}

/* smaller devices: shrink heading + bar */
@media (max-width: 720px) {
  .section-title { font-size: 1.4rem; }
  .section-title::before { width: 8px; height: 30px; }
}




.about-text { color:var(--muted); font-size:1.02rem; line-height:1.85; max-width:920px; margin:0; }

/* === Founder Modern Section === */
.founder-modern {
  margin: 80px auto;
  padding: 0 24px;
  max-width: 1100px;
  text-align: center;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #4da6ff, #1f73ff);
  margin: 12px auto 0;
  border-radius: 3px;
}

/* Card */
.founder-modern-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: linear-gradient(180deg, rgba(11,93,246,0.04), rgba(11,93,246,0.01));
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(2,6,23,0.05);
  border: 1px solid rgba(11,93,246,0.04);
}

/* Photo */
.founder-modern-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(31,115,255,0.2);
  border: 4px solid #fff;
  background: #fff;
}

/* Content */
.founder-modern-content {
  text-align: left;
  max-width: 650px;
}
.founder-modern-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
.founder-title {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.founder-bio {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
  .founder-modern-card {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  .founder-modern-content {
    text-align: center;
    max-width: 100%;
  }
  .founder-modern-photo img {
    width: 140px;
    height: 140px;
  }
}

/* === Smooth Scroll Fade Animation === */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-anim].in-view {
  opacity: 1;
  transform: translateY(0);
}


/* === Founder Classic Layout (Modern Blue Highlight) === */
.founder-classic {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(90deg, rgba(11,93,246,0.03), rgba(11,93,246,0.01));
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(2,6,23,0.05);
  border: 1px solid rgba(11,93,246,0.05);
}

.founder-photo {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(77,166,255,0.12), rgba(31,115,255,0.08));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31,115,255,0.2);
}
.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.founder-details {
  flex: 1;
  text-align: left;
}

.founder-details h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.founder-title {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.founder-bio {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  .founder-photo {
    width: 100%;
    max-width: 280px;
  }
  .founder-details {
    text-align: center;
  }
}

/* Center-align the Meet Our Founder title */
.founder-classic .section-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
}

/* Keep the blue underline centered under it */
.founder-classic .section-heading::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #4da6ff, #1f73ff);
  margin: 12px auto 0;
  border-radius: 3px;
}


/* ===== Header: balanced logo size + blue brand text ===== */
.logo-square {
  width: 72px;  /* reduced from 84px */
  height: 72px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 93, 246, 0.06);
  flex-shrink: 0;
  padding: 6px;
}

/* logo image size slightly reduced for balance */
.logo-square img {
  width: 52px; /* smaller for neat spacing */
  height: auto;
  object-fit: contain;
  display: block;
}

/* brand title - force blue and better spacing */
.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #0b5df6 !important; /* force blue explicitly */
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

/* tagline softer gray */
.brand-tag {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  font-weight: 500;
}

/* header compactness */
.header {
  padding: 12px 0;
}

@media (max-width: 900px) {
  .logo-square {
    width: 60px;
    height: 60px;
    padding: 5px;
  }
  .logo-square img {
    width: 44px;
  }
  .brand-title {
    font-size: 18px;
  }
}


/* === Final tuned logo box & title color ===
   Paste at the END of styles.css so it overrides earlier rules.
*/

.logo-square {
  width: 64px;              /* slightly smaller box as requested */
  height: 64px;
  background: #ffffff;      /* subtle white background */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11,93,246,0.06);
  overflow: hidden;         /* ensures no spillover */
  padding: 6px;             /* small internal margin — helps non-square logos */
  border: 1px solid rgba(11,93,246,0.03);
}

/* make the image occupy the available space properly */
.logo-square img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* preserve aspect ratio, fill available area */
  display: block;
  transform: none;
  border-radius: 6px;       /* small rounding to match box */
  background: transparent;
}

/* === Final Polished Header (Logo size balanced, Blue Title fixed) === */

.logo-square {
  width: 72px; /* restore your earlier size */
  height: 72px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11, 93, 246, 0.06);
  overflow: hidden;
  padding: 3px; /* small breathing space around image */
}

/* Make the logo image nicely fill the box */
.logo-square img {
  width: 98%;        /* fills the box properly */
  height: auto;
  object-fit: contain;
  display: block;
}

/* Company title - bold and blue */
.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b5df6 !important; /* force brand blue */
  letter-spacing: 0;
  margin: 0;
  line-height: 1.2;
}

/* Tagline softer gray */
.brand-tag {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
  font-weight: 500;
}

/* Compact header spacing */
.header {
  padding: 14px 0;
}

/* responsive */
@media (max-width: 900px) {
  .logo-square {
    width: 64px;
    height: 64px;
    padding: 3px;
  }
  .logo-square img {
    width: 92%;
  }
  .brand-title {
    font-size: 18px;
  }
}


/* === Modern Read More Link === */
.read-more-link {
  display: inline-block;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
}

/* Underline animation (centered) */
.read-more-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4da6ff, #1f73ff);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.read-more-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.read-more-link:hover::after {
  width: 60%;
  box-shadow: 0 2px 6px rgba(11,93,246,0.15);
}

/* === Spacing above "Why Choose M.V.Raos" section === */
#why-choose-us {
  margin-top: 80px; /* Adjust: 60–100px for your preferred spacing */
}

@media (max-width: 600px) {
  #why-choose-us {
    margin-top: 50px;
  }
}







/* ===== Founder photo — responsive fix ===== */

/* Ensure the photo wrapper is sized consistently and centers its content */
.founder-modern-photo {
  width: 180px;            /* desktop size */
  height: 180px;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 25px rgba(31,115,255,0.12);
  margin: 0;               /* prevents accidental offsets */
}

/* The image fills the wrapper and is cropped via object-fit */
.founder-modern-photo img {
  display: block;          /* removes inline image spacing */
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop & fill while keeping aspect ratio */
  object-position: 50% 40%;/* adjust vertical focus; tweak the 40% to reposition subject */
  border-radius: 50%;
}

/* Mobile: smaller circle and centered layout */
@media (max-width: 900px) {
  .founder-modern-photo {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    margin: 0 auto 18px;   /* center the photo and add gap under it */
  }

  /* Make sure the parent stacks/centers */
  .founder-modern-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center;
    gap: 18px;
    padding: 28px;
  }
  .founder-modern-content { text-align: center; }
}


.section-subtitle-accent {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  margin: 0 0 22px;
  letter-spacing: 0.3px;
}


@media (max-width: 900px) {
  .founder-modern-photo img {
    width: 160px;           /* slightly bigger so it looks good */
    height: auto;           /* maintains full aspect ratio */
    object-fit: contain;    /* shows full image without cutting */
    border-radius: 12px;    /* optional – keep rectangular shape */
  }

  .founder-modern-card {
    align-items: center;
  }
}


/* ---------- UNIVERSAL FIX FOR ALL DEVICES (NO CROPPING) ---------- */

.founder-card .founder-photo {
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block !important;
  padding: 0 !important;
}

.founder-card .founder-photo img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;     /* ensures 100% no cropping */
  object-position: center top !important;  
  display: block !important;
  max-height: none !important;
  border-radius: 12px !important;
}

/* Extra rules JUST for mobile */
@media (max-width: 768px) {
  .founder-card .founder-photo {
    max-width: 360px !important;
  }
  .founder-card .founder-photo img {
    object-position: top center !important;
  }
}

/* Mobile-only navbar spacing fix */
@media (max-width: 768px) {
  .nav {
    padding-left: 20px !important;   /* adjust spacing */
    gap: 20px !important;            /* slightly larger gap between items */
  }

  .nav a {
    font-size: 16px;
  }
}
