body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    overscroll-behavior-y: none;
    background: white;
}

html {
  background: #0A2278; /* matches navbar */
}


.navbar{
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #0A2278;
  font-weight: 600;
  letter-spacing: 0.5px;

  /* key */
  position: relative;
}



/* Logo stays on the left */
.logo img{
  height: 72px;
  cursor: pointer;
  display: block;
}

.logo {
  margin-left: 0px;
}

@media (min-width: 1100px) {
  .logo {
    margin-left: 150px;   /* tweak this value */
  }
}

/* TRUE centered links: absolute center of navbar */
.nav-links{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 40px;
  align-items: center;
}

/* Nav text */
.navbar p{
  margin: 0;
  cursor: pointer;
  color: white;
  font-size: 20px;
  line-height: 1.2;
  transition: color 0.5s ease;
}

.navbar p:hover,
.navbar p.active{
  color: #FF9719;
}

/* Mobile: stack and prevent overlap */
@media (max-width: 900px){
  .navbar{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .logo img{
    height: 56px;
  }

  .nav-links{
    position: static;        /* remove absolute centering */
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 6px;
  }

  .navbar p{
    font-size: 18px;
  }
}


a {
    text-decoration: none;
}

.home {
    display: flex;
    flex-direction: column;  /* <-- this makes membership go BELOW */
    align-items: center;     /* keeps content centered */
    padding: 64px 24px;
}


.hero {
    max-width: 800px;
    color: #0A2278;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-placeholder {
    max-width: 900px;
    height: 400px;
    margin: 32px auto;
    border-radius: 8px;
    background-color: #e9edf7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A2278;
    font-weight: 600;
    font-size: 18px;
}

/* Section wrapper */
.home-sections {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Top row: Instagram + Event */
.side-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Cards */
.card {
    background: white;
    border: 1px solid rgba(10, 34, 120, 0.15);
    border-radius: 12px;
    padding: 20px;
    color: #0A2278;
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

/* Primary member card */
.member-card {
    border-width: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: #FF9719;
    color: #0A2278;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn.outline {
    background: transparent;
    border: 2px solid #FF9719;
}

/* Mobile stacking */
@media (max-width: 800px) {
    .side-cards {
        grid-template-columns: 1fr;
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 280px; /* main content + narrow side column */
    gap: 32px;
    align-items: start;
}

.hero-layout,
.member-section {
    width: 100%;
    max-width: 1100px; /* try 1200px if you want wider */
}

.hero-side .card {
    padding: 16px;
}

.hero-side .card p {
    margin-bottom: 16px;
    line-height: 1.5;
}



/* Left content */
.hero-main {
    color: #0A2278;
}

/* Right side cards */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.home .hero-side .event {
    margin-bottom: 16px;
}

.home .hero-side .event-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(10, 34, 120, 0.7);
    margin-bottom: 6px;
}

.home .hero-side .event-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.home .hero-side .event-date {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.home .hero-side .event-location {
    font-size: 14px;
    color: rgba(10, 34, 120, 0.75);
}

.home .hero-side .previous-event {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(10, 34, 120, 0.6);
}

.home .hero-side .previous-label {
    font-weight: 500;
}

.home .hero-side .previous-title {
    margin-left: 0px;
}

.home .hero-side .previous-date {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(10, 34, 120, 0.5);
}

.home .hero-side .previous-event {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(10, 34, 120, 0.15);
}

.home .hero-side .previous-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(10, 34, 120, 0.75);
    margin-bottom: 4px;
}

.home .hero-side .previous-title {
    font-size: 16px;
    font-weight: 600;
    color: #0A2278;
    margin-bottom: 4px;
}

.home .hero-side .previous-date {
    font-size: 14px;
    font-weight: 500;
    color: rgba(10, 34, 120, 0.7);
}


/* Home page petition progress teaser */
.home .petition-card .petition-progress {
  margin-top: 14px;
}

.home .petition-card .petition-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.home .petition-card .petition-progress-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.85;
}

.home .petition-card .petition-progress-value {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

.home .petition-card .petition-progress-bar {
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(10, 34, 120, 0.2);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.home .petition-card .petition-progress-fill {
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: #FF9719;
  border-radius: 999px;
}

/* Home action cards (Petition + Membership) */
.home-actions {
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Make them feel compact */
.home-actions .card {
  padding: 24px;
}

/* Mobile: stack */
@media (max-width: 900px) {
  .home-actions {
    grid-template-columns: 1fr;
  }
}

/* Tighten spacing inside the two home action cards */
.home-actions .card h2 {
  margin-bottom: 8px;
}

.home-actions .card p {
  margin: 0 0 10px 0;     /* overrides browser default */
  line-height: 1.45;      /* slightly tighter */
}

/* Make button sit neatly under text (not pushed way down) */
.home-actions .btn {
  margin-top: 8px;        /* overrides your global .btn margin-top: 12px */
}

.home-actions .petition-card .btn {
  margin-top: 20px;
}


/* Member card specific formatting */
.member-card .member-instructions {
  margin-bottom: 8px;
  font-size: 15px;
  opacity: 0.9;
}

.member-card .member-email {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-instructions {
  margin-bottom: 8px;
  line-height: 1.45;
}

.member-email {
  display: block;        /* moves email to its own line */
  margin-top: 4px;       /* subtle spacing */
  user-select: text;     /* easy to copy */
}



/* Stats card */
.petition-stats {
  margin-top: 28px auto 48px;
  max-width: 720px;
  padding: 20px;
  border: 2px solid rgba(255,151,25,0.35);
  background: linear-gradient(
    180deg,
    rgba(255,151,25,0.08),
    rgba(255,151,25,0.02)
  );
}

/* Text */
.petition-stats .stat-label {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.9;
}

.petition-stats .stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.petition-stats .stat-number {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.petition-stats .stat-goal {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.8;
}

.petition-stats .stat-note {
  margin: 10px 0 0 0;
  font-size: 14px;
  opacity: 0.8;
}

/* Battery shell */
.petition-stats .battery {
  position: relative;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(10, 34, 120, 0.25);
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Battery "cap" */
.petition-stats .battery::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 2px solid rgba(10, 34, 120, 0.25);
  background: rgba(255, 255, 255, 0.8);
}

/* Fill */
.petition-stats .battery-bar {
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  border-radius: 999px;
  background: #FF9719;
  transition: width 0.4s ease;
}



/* Cards */
.card {
    background: white;
    border: 1px solid rgba(10, 34, 120, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

/* Member section */
.member-section {
    margin-top: 40px;
}

.member-card {
    border-width: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: #FF9719;
    color: #0A2278;
    font-weight: 700;
    text-decoration: none;
}

.btn.outline {
    background: transparent;
    border: 2px solid #FF9719;
}

/* Mobile behavior */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .member-section {
        margin-top: 24px;
    }
}

.petition-section {
    margin-top: 40px;
    width: 100%;
    max-width: 1100px;
}

.petition-card {
    border-width: 2px;
    background: linear-gradient(
        180deg,
        rgba(255,151,25,0.08),
        rgba(255,151,25,0.02)
    );
}

/* Make "Current Petition" block text match the HUB section text */
.petition-current {
  max-width: 720px;
  margin-top: 20px;
}

.petition-current p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 16px 0;
}



.card-image {
    width: 100%;
    height: 140px;
    margin: 12px 0 14px;
    border-radius: 8px;
    background-color: #eef1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-image span {
    color: #0A2278;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.exec-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
  color: #0A2278;
}

.exec-header h1 {
  font-size: 40px;
  margin: 0 0 48px 0;
}

/* Each person */
.exec-section {
  margin-bottom: 88px;
}

/* Title spans above photo + description and is centered */
.exec-title {
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  padding: 20px 0 28px;
  margin: 0 0 28px 0;
}


.exec-title.chair {
  font-weight: 500;
  font-size: 45px;
}

/* Row layout */
.exec-row {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.exec-row.right {
  flex-direction: row-reverse;
}

/* Portrait photo */
.exec-photo.portrait {
  width: 240px;
  height: 320px;
  background-color: #eef1fb;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

/* Text column */
.exec-text {
  flex: 1;
  max-width: 720px;
}

.exec-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.exec-fields p {
  margin: 0 0 10px 0;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .exec-title {
    font-size: 40px;
    text-align: center;
  }

  .exec-row,
  .exec-row.right {
    flex-direction: column;
  }

  .exec-photo.portrait {
    width: min(280px, 100%);  /* stays portrait sized but responsive */
    height: auto;
    aspect-ratio: 3 / 4;      /* portrait */
    margin: 0 auto;           /* center the photo block */
  }
}


/* Petitions page */

.petition-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 24px;
    color: #0A2278;
}

.petition-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.petition-header p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
}

/* Featured petition card */
.petition-feature {
    margin-top: 40px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255,151,25,0.08),
        rgba(255,151,25,0.02)
    );
    border: 2px solid rgba(255,151,25,0.35);
}

.petition-feature h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.petition-subtitle {
    font-weight: 600;
    margin-bottom: 20px;
}

.petition-feature p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Small disclaimer text */
.petition-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
}

/* Info section */
.petition-info {
    margin-top: 56px;
}

.petition-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.petition-info p {
    font-size: 17px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 700px) {
    .petition-feature {
        padding: 24px;
    }

    .petition-feature h2 {
        font-size: 28px;
    }
}

/* Campus involvement section — simplified */

.petition-campus {
    margin-top: 72px;
}

.petition-campus h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.petition-campus-placeholder{
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  height: auto;

  margin-bottom: 32px;
  border-radius: 18px;
  background-color: #e9edf7;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #0A2278;
  padding: 20px;

  /* key: allow text to wrap instead of forcing height */
  box-sizing: border-box;
}



.petition-campus-text {
    max-width: 720px;
}


/* Text under image */
.petition-campus-text p {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Subtle note */
.petition-campus-note {
    font-size: 15px;
    opacity: 0.85;
}

/* Mobile */
@media (max-width: 700px) {
    .petition-campus-placeholder{
      aspect-ratio: 2 / 1;   /* shorter */
      padding: 10px;         /* smaller padding = smaller min-height */
      font-size: 13px;       /* smaller text = smaller min-height */
      border-radius: 14px;
    }

    .petition-campus-text p {
        font-size: 17px;
    }
}

/* Petition integration helpers */

.petition-campus-kicker {
    font-size: 18px;
    margin-bottom: 14px;
}

.petition-link {
    color: #0A2278;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.petition-target {
    opacity: 0.85;
    margin-left: 6px;
}

.petition-campus-about {
    margin-top: 4px;
    margin-bottom: 18px;
}

/* Events page */

.events-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
  color: #0A2278;
}

.events-header h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

.events-header p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 52px;
}

/* Month blocks */
.month-block {
  margin-bottom: 60px;
}

.month-title {
  font-size: 32px;
  margin-bottom: 18px;
  padding-top: 10px;
}

/* Event rows */
.event-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(10, 34, 120, 0.12);
}

.month-block .event-item:last-child {
  border-bottom: 1px solid rgba(10, 34, 120, 0.12);
}

/* Left meta column */
.event-meta {
  font-size: 14px;
  opacity: 0.85;
}

.event-date,
.event-location {
  margin: 0 0 6px 0;
}

/* Right details */
.event-name {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
}

.event-desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  max-width: 720px;
}

/* Mobile */
@media (max-width: 700px) {
  .month-title {
    font-size: 28px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .event-meta {
    display: flex;
    gap: 14px;
  }
}

/* Recurring block spacing */
.events-recurring {
  margin-bottom: 70px;
}

/* Poster area inside an event */
.event-item.has-poster .event-details {
  padding-bottom: 6px;
}

/* Poster placeholder */
.event-poster {
  margin-top: 18px;
  width: 100%;
  max-width: 200px;        /* poster width */
  aspect-ratio: 3 / 4;    /* portrait poster ratio */
  border-radius: 16px;
  background-color: #e9edf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}


/* If you use a real image */
.event-poster-img {
  margin-top: 18px;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}


/* Photos page */

.photos-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
  color: #0A2278;
}

.photos-header h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

.photos-header p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 52px;
}

/* Month titles only (no placeholders) */
.photos-months {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.photos-month {
  font-size: 32px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(10, 34, 120, 0.12);
}
