html{
  scroll-behavior: smooth;
}

.header-wrapper {
    display: none;
}

.i2c-hero{
  width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;

  min-height: 600px;

  background-image:
    linear-gradient(
      90deg,
      rgba(0,106,172,0.95) 0%,
      rgba(0,106,172,0.92) 35%,
      rgba(0,106,172,0.55) 60%,
      rgba(0,106,172,0.25) 78%,
      rgba(0,106,172,0.10) 100%
    ),
    var(--i2c-hero-bg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* HERO: keep background full width, but content stays centered like About */
.i2c-hero__inner{
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;

  /* instead of huge left padding, use a centered max-width wrapper */
  max-width: 1024px;
  margin: 0 auto;

  padding: clamp(28px, 6vw, 80px) clamp(18px, 4vw, 32px);
  box-sizing: border-box;
}

.i2c-hero__content{
  max-width: 720px;
}

.i2c-hero__kicker{
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: clamp(14px, 1.2vw, 20px);
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

.i2c-hero__title{
  color: #ffffff;
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: clamp(12px, 1.6vw, 22px);
}

.i2c-hero__sub{
  color: rgba(255,255,255,0.9);
  font-size: clamp(14px, 1.4vw, 20px);
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

/* ===== BUTTON (tighter + no weird hover) ===== */
.i2c-hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;          /* less tall */
  padding: 0 22px;

  border-radius: 8px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.22);

  color: #fff !important;               /* defeat theme link color */
  text-decoration: none !important;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;

  transition: transform 160ms ease, background 160ms ease;

  -webkit-tap-highlight-color: transparent; /* remove mobile tap highlight */
  user-select: none;
}

.i2c-hero__btn:hover,
.i2c-hero__btn:focus,
.i2c-hero__btn:active,
.i2c-hero__btn:visited{
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.40);
  transform: translateY(-1px);
  outline: none;
}

/* optional: nicer selection inside hero */
.i2c-hero ::selection{
  background: rgba(255,255,255,0.25);
}

/* ===== RESPONSIVE ===== */

/* At ~760px: center text AND center the content block */
@media (max-width: 760px){
  .i2c-hero__inner{
    justify-content: center; /* centers the whole block in width */
    text-align: center;      /* centers text */
  }

  .i2c-hero__content{
    margin: 0 auto;
    max-width: 640px;
  }

  /* optional: mobile overlay (top-down) often looks better than left-right */
  .i2c-hero{
    background-image:
      linear-gradient(
        180deg,
        rgba(0,106,172,0.92) 0%,
        rgba(0,106,172,0.82) 55%,
        rgba(0,106,172,0.62) 100%
      ),
      var(--i2c-hero-bg);
    background-position: center;
  }
}

/* smaller phones: reduce hero height so it doesn't feel too tall */
@media (max-width: 420px){
  .i2c-hero{
    min-height: 420px;
  }
  .i2c-hero__inner{
    padding: 22px 18px;
  }
}

/* Full-width band, but content stays max-width and centered */
.i2c-lfp-about{
  width: 100%;
  background: #ffffff;
  padding: 32px 0;
}

/* THIS is the proper max-width wrapper (works on ultra-wide screens) */
.i2c-lfp-about__inner{
  width: 100%;
  max-width: 1024px;          /* <- your Figma width */
  margin: 0 auto;

  display: flex;
  align-items: flex-start;
  gap: 32px;

  padding: 0 32px;            /* side breathing room inside the 1024 wrapper */
  box-sizing: border-box;
}

/* Left column sizing close to screenshot */
.i2c-lfp-about__left{
  flex: 0 0 240px;
}

/* Smaller + correct-ish dark navy (less saturated than before) */
.i2c-lfp-about__title{
  color: #0a1b35;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.2px;
  font-size: clamp(26px, 3vw, 36px);
}

/* Right column */
.i2c-lfp-about__right{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;

  max-width: 720px;           /* keeps paragraphs readable */
  padding-top: 2px;
}

/* Body text */
.i2c-lfp-about__text{
  color: #6f7f92;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.7;
}

/* Stack on narrow screens: title above text AND centered */
@media (max-width: 860px){
  .i2c-lfp-about{
    padding: 24px 0;
  }

  .i2c-lfp-about__inner{
    flex-direction: column;
    align-items: center;       /* centers the whole block */
    text-align: center;        /* centers title + paragraphs */
    gap: 14px;

    padding: 0 18px;           /* tighter side padding on small screens */
  }

  .i2c-lfp-about__left{
    flex: 0 0 auto;
  }

  .i2c-lfp-about__right{
    max-width: 720px;
    padding-top: 0;
    gap: 16px;
  }
}

.i2c-lfp-portfolio{
  width: 100%;
  background: #bcd6ea;
  padding: clamp(48px, 6vw, 84px) 0;
}

.i2c-lfp-portfolio__inner{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
  box-sizing: border-box;
}

.i2c-lfp-portfolio__title{
  text-align: center;
  color: #0a1b35;
  font-weight: 900;
  letter-spacing: -0.6px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  margin-bottom: clamp(24px, 4vw, 44px);
}

/* grid */
.i2c-lfp-portfolio__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

/* ===== CARD ===== */
.i2c-lfp-course{
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(10,27,53,0.10);
  box-shadow: 0 10px 24px rgba(10,27,53,0.10);

  padding: clamp(18px, 2.4vw, 26px);
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

/* TOP ROW: pill glued to far right on wide screens */
.i2c-lfp-course__top{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.i2c-lfp-course__code{
  color: #006AAC;
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 18px;
  line-height: 1.15;
  flex: 1 1 auto;         /* takes remaining space */
  min-width: 0;
}
.i2c-lfp-course__pill{
  margin-left: auto;      /* <- GLUES it to the far right */
  background: #d9dde4;
  color: #5b6a80;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* content */
.i2c-lfp-course__semester{
  color: #7a879a;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.i2c-lfp-course__title{
  color: #152443;
  font-weight: 900;
  letter-spacing: -0.2px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  margin-bottom: 14px;
}
.i2c-lfp-course__desc{
  color: #3e4d66;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* footer anchored */
.i2c-lfp-course__footer{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* LOCATION: icon visually “over” the text so wrapping looks clean */
.i2c-lfp-course__meta{
  position: relative;
  padding-left: 26px;      /* reserves space for icon */
  color: #9aa5b6;
  font-size: 18px;
  line-height: 1.3;
  min-height: 20px;
}
.i2c-lfp-course__pin{
  position: absolute;
  left: 0;
  top: 2px;                /* keeps it aligned with first line */
  width: 20px;
  height: 20px;
  color: #b4bcc9;
}
.i2c-lfp-course__pin svg{ width: 100%; height: 100%; display: block; }

.i2c-lfp-course__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: #006AAC;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  width: fit-content;
  transition: transform 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.i2c-lfp-course__btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* ===== RESPONSIVE BEHAVIOR ===== */

/* collapse to 1 column */
@media (max-width: 980px){
  .i2c-lfp-portfolio__grid{ grid-template-columns: 1fr; }
}

/* when things “center” on narrow screens, center the TOP ROW, FOOTER, META, and BUTTON */
@media (max-width: 760px){
  .i2c-lfp-course{
    text-align: center;
  }

  /* top row centered: code and pill become centered blocks */
  .i2c-lfp-course__top{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .i2c-lfp-course__code{
    flex: 0 0 auto;
  }
  .i2c-lfp-course__pill{
    margin-left: 0; /* stop forcing it right when stacked */
  }

  /* footer centered */
  .i2c-lfp-course__footer{
    align-items: center;
  }

  /* meta centered with icon still “over” the text */
  .i2c-lfp-course__meta{
    text-align: center;
    padding-left: 0;
    padding-top: 24px;   /* space for icon above */
  }
  .i2c-lfp-course__pin{
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
}

/* tiny phones: reduce text sizes a bit */
@media (max-width: 420px){
  .i2c-lfp-course__desc{ font-size: 16px; }
  .i2c-lfp-course__meta{ font-size: 16px; }
  .i2c-lfp-course__code{ font-size: 16px; }
  .i2c-lfp-course__semester{ font-size: 18px; }
}

.i2c-lfp-inside{
  width: 100%;
  background: #ffffff;
  padding: clamp(34px, 5vw, 64px) 0;
}

.i2c-lfp-inside__inner{
  width: 100%;
  max-width: 1240px; /* keeps it nice on wide screens */
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
  box-sizing: border-box;
}

.i2c-lfp-inside__title{
  font-family: "Anek Latin", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.2;
  text-align: center;
  color: #0A214A;
  margin-bottom: clamp(18px, 3vw, 28px);
}

/* row layout */
.i2c-lfp-inside__row{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* image “cards” */
.i2c-lfp-inside__imgWrap{
  flex: 1 1 0;
  height: 326px;                 /* matches figma height vibe */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(10,33,74,0.12);
  background: #e9eef5;
}

/* center image is wider like screenshot */
.i2c-lfp-inside__imgWrap--wide{
  flex: 1.35 1 0;
}

/* image fill */
.i2c-lfp-inside__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01); /* avoids 1px gaps on some browsers */
}

/* responsive */
@media (max-width: 980px){
  .i2c-lfp-inside__row{
    flex-direction: column;
    gap: 14px;
  }
  .i2c-lfp-inside__imgWrap,
  .i2c-lfp-inside__imgWrap--wide{
    width: 100%;
    flex: 0 0 auto;
    height: 240px;
  }
}

@media (max-width: 420px){
  .i2c-lfp-inside__imgWrap,
  .i2c-lfp-inside__imgWrap--wide{
    height: 200px;
  }
}

.i2c-lfp-contact{
  background: #F7F7F7;
  padding: clamp(32px, 5vw, 64px) 0;
}

/* keep content centered and readable on wide screens */
.i2c-lfp-contact__inner{
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

/* optional: avoid extra margins from theme paragraphs */
.i2c-lfp-contact__lead{
  margin: 0 0 16px 0;
}

#contact{
  scroll-margin-top: 90px;
}

