/* ==========================================================================
   SCHOLARSHIP PAGE STYLESHEET (scholarship.css)
   Figma Exact Match (Paddings, Gaps, Typography, Colors & Border Cleanup)
   ========================================================================== */

:root {
  --bg:            #150F0F;
  --bg-card:       rgba(52, 32, 31, 0.40);
  --bg-card-hover: rgba(52, 32, 31, 0.65);
  --primary:       #FFCE1B;
  --secondary:     #FB1650;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-white:    #FFFFFF;
  --text-dim:      rgba(255, 255, 255, 0.70);
  --text-dimmer:   rgba(255, 255, 255, 0.40);
  --font-head:     'Sora', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --font-body:     'DM Sans', sans-serif;
  --max-w:         1376px;
  --px:            80px;
}

@media (max-width: 1024px) {
  :root {
    --px: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --px: 24px;
  }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Page Margins (Subtle side border lines) */
.page-margins {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - calc(var(--px) * 2));
  max-width: var(--max-w);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
}

/* Main Container */
.scholarship-container {
  width: calc(100% - calc(var(--px) * 2));
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 80px; /* Navbar height spacer */
  position: relative;
  z-index: 1;
}

/* Section Separator Line */
.section-line,
.line-horizontal {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.scholarship-hero {
  padding: 0;
  position: relative;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  background-color: #191010;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: radial-gradient(circle at 25% 50%, rgba(167, 60, 38, 0.35) 0%, rgba(25, 16, 16, 1) 70%);
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
}

.hero-portrait-wrap {
  order: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.05);
}

.hero-banner-content {
  order: 2;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-main-title {
  font-family: var(--font-head);
  font-size: 80px;
  letter-spacing: -0.06em;
  line-height: 95%;
  font-weight: 700;
  color: var(--text-white);
}

.hero-memorial-title {
  font-family: var(--font-head);
  font-size: 40px;
  letter-spacing: -0.07em;
  line-height: 125%;
  font-weight: 300;
  color: var(--secondary);
}

.hero-subtitle {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 140%;
  font-weight: 200;
  color: var(--text-white);
  margin-top: 24px;
}

.hero-lower-row {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: #191010;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr auto;
}

.hero-announcement-box {
  padding: 60px;
  border-right: 1px solid var(--border-subtle);
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 140%;
  font-weight: 200;
  color: var(--text-white);
  display: flex;
  align-items: center;
}

.hero-stipend-box {
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 320px;
}

.hero-stipend-amount {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 140%;
  font-weight: 600;
  color: var(--primary);
}

.hero-stipend-frequency {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 140%;
  color: var(--text-white);
  margin-top: 4px;
}

/* ==========================================================================
   2. ABOUT THE SCHOLARSHIP SECTION
   ========================================================================== */
.about-scholarship-section {
  padding: 80px 120px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-scholarship-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 12px;
}

.about-scholarship-title {
  font-family: var(--font-head);
  font-size: 50px;
  line-height: 110%;
  font-weight: 300;
  color: var(--text-white);
}

.about-scholarship-title span {
  color: var(--primary);
}

.about-scholarship-desc {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 150%;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 1080px;
}

.about-scholarship-desc strong {
  color: var(--text-white);
  font-weight: 600;
}

.about-scholarship-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 12px;
}

.scholarship-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  transition: background-color 0.3s ease;
}

.scholarship-card:hover {
  background-color: var(--bg-card-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
}

.card-text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 150%;
  color: var(--text-dim);
  font-weight: 300;
}

.card-text strong {
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================================================
   3. ABOUT PROF. ANUP GOGOI SECTION
   ========================================================================== */
.about-prof-section {
  padding: 80px 120px;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 441px 1fr;
  gap: 100px;
  position: relative;
  isolation: isolate;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #ffffff;
}

.prof-glow-spot {
  position: absolute;
  top: calc(50% - 200px);
  left: 0%;
  width: 450px;
  height: 446px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #b83d25 0%, rgba(167, 60, 38, 0.4) 60%, transparent 100%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  flex-shrink: 0;
}

.prof-left-column {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 441px;
  flex-shrink: 0;
}

.prof-header-subblock {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.prof-badge {
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  gap: 10px;
  width: fit-content;
}

.prof-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fb1650;
  flex-shrink: 0;
}

.prof-badge-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 140%;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
}

.prof-section-title {
  align-self: stretch;
  font-family: 'Sora', sans-serif;
  font-size: 50px;
  line-height: 140%;
  font-weight: 300;
  color: #ffffff;
}

.prof-section-title span {
  color: #ffce1b;
  line-height: 140%;
}

.prof-intro-paragraph {
  align-self: stretch;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  line-height: 140%;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.prof-right-column {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  flex-shrink: 0;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.prof-paragraph {
  align-self: stretch;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  line-height: 140%;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   4. QUOTE SECTION
   ========================================================================== */
.scholarship-quote-section {
  padding: 80px 120px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.quote-inner-wrapper {
  max-width: 1191px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.quote-body-text {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 140%;
  font-weight: 300;
  color: var(--text-white);
}

.quote-body-text span {
  color: rgba(255, 255, 255, 0.5);
}

.quote-author-text {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 140%;
  color: var(--secondary);
}

.quote-author-text span {
  color: var(--text-white);
}

/* ==========================================================================
   5. SELECTION PROCESS SECTION
   (Desktop: Outer Card Box Enabled | Mobile: Borderless Horizontal Dividers)
   ========================================================================== */
.selection-process-section {
  padding: 80px 120px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background-color: #150f0f;
}

.selection-card-box {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #150f0f;
  display: flex;
  flex-direction: column;
}

.selection-title {
  font-family: 'Sora', sans-serif;
  font-size: 50px;
  line-height: 110%;
  font-weight: 300;
  color: #ffffff;
  padding: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-title span {
  color: #ffce1b;
  line-height: 110%;
}

.selection-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #150f0f;
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.selection-col-left {
  padding: 60px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
}

.selection-col-right {
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.selection-prompt {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.selection-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  width: 100%;
}

.selection-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.contact-icon-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  line-height: 150%;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-text strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   6. TRIBUTE SECTION
   ========================================================================== */
.scholarship-tribute-section {
  padding: 100px var(--px);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

.tribute-glow-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #b83d25 0%, rgba(167, 60, 38, 0.4) 60%, transparent 100%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.tribute-statement {
  position: relative;
  z-index: 1;
  max-width: 1048px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 140%;
  color: var(--primary);
  font-weight: 300;
}

.tribute-statement strong {
  font-weight: 700;
  color: var(--primary);
}

.tribute-white-text {
  color: var(--text-white);
}

/* ==========================================================================
   SITEWIDE STANDARD FOOTER (MATCHING EDUCATION & HACKATHON PAGES)
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  background: #140B0B;
  border-top: 0.1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
}

.footer-inner {
  width: calc(100% - calc(var(--px) * 2));
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 40px;
  box-sizing: border-box;
}

/* Top nav row */
.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 0.1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 48px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.18s;
  text-decoration: none;
}

.footer-nav-link:hover {
  color: var(--text-white);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.20);
  transition: border-color 0.18s, background 0.18s;
}

.social-icon:hover {
  border-color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.06);
}

/* Bottom row: big K + addresses + ZIROHLabs */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-big-logo {
  flex-shrink: 0;
}

.big-k-square {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
}

/* Addresses */
.footer-addresses {
  display: flex;
  gap: 60px;
  flex: 1;
  padding: 0 60px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-city {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.02em;
}

.footer-addr-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 20px;
}

/* ZIROHLabs */
.footer-ziroh {
  flex-shrink: 0;
}

.ziroh-logo {
  height: 28px;
  width: auto;
  filter: brightness(0.8);
  transition: filter 0.18s;
}

.ziroh-logo:hover {
  filter: brightness(1);
}

/* Legal section */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 0.1px solid rgba(255, 255, 255, 0.15);
}

.footer-legal-links {
  display: flex;
  gap: 32px;
}

.footer-legal-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Fluid Mobile & Tablet Support)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-banner-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 32px;
  }

  .hero-portrait-wrap {
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-lower-row {
    grid-template-columns: 1fr;
  }

  .hero-announcement-box {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 32px;
  }

  .hero-stipend-box {
    padding: 32px;
  }

  .hero-main-title {
    font-size: 56px;
  }

  .hero-memorial-title {
    font-size: 32px;
  }

  .about-scholarship-cards-grid,
  .about-prof-section,
  .selection-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .prof-left-column {
    width: 100%;
  }

  .selection-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 32px;
  }

  .selection-col-right {
    padding: 40px 32px;
    gap: 40px;
  }

  /* Footer Tablet Adjustments */
  .footer-inner {
    padding: 40px 24px;
  }

  .footer-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-addresses {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .footer-ziroh {
    order: 2;
    align-self: flex-end;
  }

  .footer-big-logo {
    order: 3;
  }

  .footer-legal {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================
   MOBILE ONLY OVERRIDES (STRICTLY MOBILE BREAKPOINT - NO DESKTOP ALTERATION)
   ========================================================================== */
@media (max-width: 767px) {
  .scholarship-hero {
    padding: 0;
  }

  .hero-banner-container {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }

  .hero-banner-content {
    order: 1;
    gap: 12px;
  }

  .hero-portrait-wrap {
    order: 2;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-main-title {
    font-size: 40px;
    letter-spacing: -0.06em;
    line-height: 103%;
    font-family: 'Sora', sans-serif;
  }

  .hero-memorial-title {
    font-size: 24px;
    line-height: 140%;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: #fb1650;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 140%;
    font-family: 'DM Sans', sans-serif;
    margin-top: 0;
  }

  .hero-announcement-box {
    padding: 40px 24px;
    font-size: 16px;
    line-height: 140%;
    font-weight: 200;
  }

  .hero-stipend-box {
    padding: 40px 24px;
  }

  .hero-stipend-amount {
    font-size: 24px;
    line-height: 140%;
    font-weight: 600;
    color: #ffce1b;
  }

  .hero-stipend-frequency {
    font-size: 16px;
    line-height: 140%;
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
  }

  /* SECTION 2 MOBILE FIGMA MATCH */
  .about-scholarship-section {
    padding: 60px 0px;
    gap: 32px;
  }

  .about-scholarship-header {
    padding: 0 24px;
  }

  .about-scholarship-title {
    font-size: 32px;
    line-height: 140%;
    font-weight: 300;
    font-family: 'Sora', sans-serif;
  }

  .about-scholarship-desc {
    font-size: 16px;
    line-height: 140%;
    font-weight: 300;
    opacity: 0.7;
  }

  .about-scholarship-cards-grid {
    padding: 0 24px;
    gap: 20px;
  }

  .scholarship-card {
    padding: 40px 24px;
    border-radius: 12px;
    background-color: rgba(52, 32, 31, 0.4);
    gap: 24px;
  }

  .card-icon {
    width: 25px;
    height: 25px;
  }

  .card-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 180%;
    font-weight: 300;
    opacity: 0.7;
  }

  /* SECTION 3 MOBILE FIGMA MATCH */
  .about-prof-section {
    padding: 60px 0px;
    gap: 32px;
    grid-template-columns: 1fr;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: #ffffff;
  }

  .prof-left-column {
    width: 100%;
    gap: 24px;
    padding: 0px 24px;
  }

  .prof-badge {
    height: 32px;
    padding: 10px 12px;
    gap: 10px;
  }

  .prof-badge-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 140%;
    text-transform: uppercase;
  }

  .prof-section-title {
    font-size: 32px;
    line-height: 140%;
    font-weight: 300;
    font-family: 'Sora', sans-serif;
  }

  .prof-intro-paragraph {
    font-size: 16px;
    line-height: 140%;
    font-family: 'Sora', sans-serif;
    opacity: 0.7;
  }

  .prof-right-column {
    width: 100%;
    gap: 24px;
    padding: 0px 20px;
    font-family: 'Sora', sans-serif;
  }

  .prof-paragraph {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    line-height: 140%;
    font-weight: 300;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
  }

  /* SECTION 4 MOBILE FIGMA MATCH */
  .scholarship-quote-section {
    padding: 24px;
    background-color: rgba(52, 32, 31, 0.4);
  }

  .quote-inner-wrapper {
    gap: 32px;
  }

  .quote-body-text {
    font-size: 20px;
    line-height: 140%;
    font-weight: 300;
    font-family: 'Sora', sans-serif;
  }

  .quote-author-text {
    font-size: 12px;
    line-height: 180%;
    font-family: 'JetBrains Mono', monospace;
    color: #fb1650;
  }

  .quote-author-text span {
    color: #ffffff;
  }

  /* SECTION 5 MOBILE FIGMA MATCH */
  .selection-process-section {
    padding: 40px 0px;
    gap: 0px;
    background-color: #150f0f;
  }

  .selection-card-box {
    border: none;
    background-color: transparent;
  }

  .selection-title {
    font-size: 32px;
    line-height: 140%;
    padding: 0px 24px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .selection-grid-container {
    grid-template-columns: 1fr;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }

  .selection-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 20px;
    font-size: 16px;
    line-height: 140%;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif;
  }

  .selection-col-right {
    padding: 24px 20px;
    gap: 32px;
    border-bottom: none;
  }

  .selection-prompt {
    font-size: 14px;
    line-height: 180%;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.8);
  }

  .selection-contacts-list {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    gap: 24px;
    width: 100%;
  }

  .selection-contact-item {
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .contact-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .contact-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 150%;
    font-weight: 300;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .contact-text strong {
    font-weight: 600;
    color: #ffffff;
  }

  /* SECTION 6 MOBILE FIGMA MATCH */
  .scholarship-tribute-section {
    padding: 60px 24px;
  }

  .tribute-statement {
    font-size: 24px;
    line-height: 140%;
    font-family: 'Sora', sans-serif;
  }

  /* Footer Mobile Adjustments */
  .footer-inner {
    padding: 40px 10px;
  }

  .footer-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-addresses {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .footer-ziroh {
    order: 2;
    align-self: flex-end;
  }

  .footer-big-logo {
    order: 3;
  }

  .footer-legal {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
}



  /* ════════════════════════════════════════════════
     UPPER LINE REMOVAL & FOOTER LOWER LINE RESTORATION (<= 1024px)
  ════════════════════════════════════════════════ */
  /* 1. Restore Footer's own Top Border (Lower Line) */
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* 2. Hide horizontal line dividers directly above footer */
  .line-horizontal,
  .line-horizontal:last-of-type,
  main > .line-horizontal:last-child {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Hide dummy/glow sections right above footer */
  .why-section[style*="min-height:0"],
  .get-started-section[style*="min-height:0"],
  .why-section:last-of-type,
  .get-started-section:last-of-type {
    border-top: none !important;
    border-bottom: none !important;
    display: none !important;
  }

  /* 4. Remove section bottom borders right above footer on mobile (Upper Line) */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .models-section,
  .faq-accordion-list,
  .dev-section,
  .tribute-section,
  .community-section,
  .jobs-grid,
  .dynamic-jd-wrapper,
  .phil2-contact-section,
  .phil-status-contact,
  .related-videos,
  .event-detail-body,
  .gallery-large,
  .event-quote,
  .event-meta,
  .md-code-tablet,
  .session-header-row {
    border-bottom: none !important;
  }


/* ════════════════════════════════════════════════
   MOBILE FOOTER OVERRIDES (<= 1024px)
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
    background: #1c1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-sizing: border-box !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 10 !important;
  }

  
  /* Remove section bottom border right above footer on mobile to eliminate upper line */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .phil2-mobile-page-wrapper > main > section:last-of-type,
  .phil-mobile-page-wrapper > main > section:last-of-type,
  .sbox-page section:last-of-type,
  .page-section:last-of-type,
  .faq-section,
  .get-started-section,
  .community-section,
  .related-videos,
  .phil2-contact-section {
    border-bottom: none !important;
  }

  body .footer .footer-inner,
  body footer#footer-mobile .footer-inner,
  .footer-inner {
    width: calc(100% - calc(var(--px, 24px) * 2)) !important;
    max-width: var(--max-w, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
  }

  /* Top Nav Row */
  body .footer .footer-nav-row,
  body footer#footer-mobile .footer-nav-row,
  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-links,
  body footer#footer-mobile .footer-nav-links,
  .footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-link,
  body footer#footer-mobile .footer-nav-link,
  .footer-nav-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Social Icons */
  body .footer .footer-socials,
  body footer#footer-mobile .footer-socials,
  .footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body .footer .social-icon,
  body footer#footer-mobile .social-icon,
  .social-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .social-icon svg path,
  body .footer .social-icon svg circle,
  body footer#footer-mobile .social-icon svg path,
  body footer#footer-mobile .social-icon svg circle,
  .social-icon svg path,
  .social-icon svg circle {
    stroke: #000000 !important;
    fill: #000000 !important;
  }

  body .footer .social-icon svg path[fill="none"],
  body footer#footer-mobile .social-icon svg path[fill="none"],
  .social-icon svg path[fill="none"] {
    fill: none !important;
  }

  /* Middle Row: Addresses & Logos */
  body .footer .footer-bottom-row,
  body footer#footer-mobile .footer-bottom-row,
  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Addresses: Left (Bengaluru) & Right (Palo Alto) */
  body .footer .footer-addresses,
  body footer#footer-mobile .footer-addresses,
  .footer-addresses {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-address:first-child,
  body footer#footer-mobile .footer-address:first-child,
  .footer-address:first-child {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-address:last-child,
  body .footer .footer-address:nth-child(2),
  body footer#footer-mobile .footer-address:last-child,
  body footer#footer-mobile .footer-address:nth-child(2),
  .footer-address:last-child,
  .footer-address:nth-child(2) {
    flex: 1 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-city,
  body footer#footer-mobile .footer-city,
  .footer-city {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  body .footer .footer-addr-text,
  body footer#footer-mobile .footer-addr-text,
  .footer-addr-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* ZIROHLabs Logo: Below Addresses, Left Aligned */
  body .footer .footer-ziroh,
  body footer#footer-mobile .footer-ziroh,
  .footer-ziroh {
    order: 2 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    text-align: left !important;
  }

  body .footer .ziroh-logo,
  body footer#footer-mobile .ziroh-logo,
  .ziroh-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Big K. Square Logo: Below ZIROHLabs Logo, Left Aligned */
  body .footer .footer-big-logo,
  body footer#footer-mobile .footer-big-logo,
  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  body .footer .big-k-square,
  body footer#footer-mobile .big-k-square,
  .big-k-square {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
    display: block !important;
    margin-left: 0 !important;
  }

  /* Bottom Legal Section */
  body .footer .footer-legal,
  body footer#footer-mobile .footer-legal,
  .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-legal-links,
  body footer#footer-mobile .footer-legal-links,
  .footer-legal-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    order: 1 !important;
    width: 100% !important;
  }

  body .footer .footer-legal-links a,
  body footer#footer-mobile .footer-legal-links a,
  .footer-legal-links a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .footer-copyright,
  body footer#footer-mobile .footer-copyright,
  .footer-copyright {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    order: 2 !important;
    width: 100% !important;
    text-align: left !important;
  }
}


