/* =========================================================
   IRDP TIMETABLE — HOMEPAGE
   Green / Black / White + IRDP gold accent
   Replace:
      images/irdp-logo.png
      images/irdp-campus.jpg
   ========================================================= */

:root {
  --irdp-green: #0b4d24;
  --irdp-green-dark: #063a1b;
  --irdp-green-mid: #126a31;
  --irdp-green-light: #eaf4ec;
  --irdp-gold: #f2c400;
  --irdp-gold-dark: #d9ae00;
  --black: #111111;
  --white: #ffffff;
  --text: #505050;
  --line: #dce4df;
  --page: #f8faf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--page);
}

/* ================= TOP BAR ================= */

.topbar {
  height: 64px;
  background: #073d1c;
  border-bottom: 3px solid var(--irdp-gold);
  color: var(--white);
  position: relative;
  z-index: 10;
}

.topbar-inner {
  width: min(100% - 68px, 1500px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.institution-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.system-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--irdp-gold);
  font-size: 15px;
  font-weight: 700;
}

.calendar-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--irdp-gold);
  stroke-width: 2;
}

/* ================= HERO ================= */

.hero {
  height: 376px;
  position: relative;
  overflow: hidden;
  background: var(--irdp-green-dark);
  color: var(--white);
}

.hero-background {
  position: absolute;
  inset: 0;

  background-image:
    /* Stronger dark green area behind the logo */
    linear-gradient(
      90deg,
      rgba(2, 48, 22, 0.98) 0%,
      rgba(4, 65, 28, 0.94) 22%,
      rgba(7, 76, 34, 0.72) 43%,
      rgba(7, 68, 31, 0.35) 60%,
      rgba(7, 63, 28, 0.05) 80%,
      rgba(3, 55, 25, 0) 100%
    ),

    url("images/irdp6.jpg");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  width: min(100% - 130px, 1400px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 55px;
}

.hero-logo {
       width:260px;
    height:260px;

    border-radius:50%;

    background:
    radial-gradient(
        rgba(255,255,255,.12),
        rgba(255,255,255,.03)
    );

    border:3px solid rgba(212,175,55,.5);

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

    box-shadow:
    0 0 0 12px rgba(212,175,55,.08),
    0 20px 50px rgba(0,0,0,.3);

}
.hero-logo::before {
  content: "";
  position: absolute;

  width: 235px;
  height: 235px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0) 72%
  );

  filter: blur(5px);

  z-index: 1;
}
.hero-logo img {
  width: 245px;
  max-height: 265px;

  object-fit: contain;
  display: block;

  filter:
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));

  position: relative;
  z-index: 2;
}

.hero-content {
  padding-top: 2px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 57px);
  line-height: 1.06;
  letter-spacing: 1px;
  font-weight: 800;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .22);
}

.gold-line {
  width: 47px;
  height: 2px;
  background: var(--irdp-gold);
  margin: 23px 0 20px;
}

.hero p {
  margin: 0 0 21px;
  font-size: 17px;
  line-height: 1.65;
  color: #f4f6f4;
}

.semester-status {
  width: max-content;
  min-width: 380px;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 25px;
  background: rgba(69, 143, 80, .43);
  border: 1px solid rgba(151, 218, 154, .24);
}

.current-semester {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75dc7a;
  display: inline-block;
}

.published {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: var(--irdp-gold);
  font-weight: 800;
  background: rgba(7, 67, 30, .35);
}

/* ================= MAIN ================= */

.main-content {
  min-height: 480px;
  padding: 20px 30px 24px;
  background:
    radial-gradient(circle at 0 100%, rgba(83, 158, 88, .08), transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(83, 158, 88, .08), transparent 25%),
    var(--white);
}

.view-section {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.view-section h2 {
  margin: 0;
  text-align: center;
  color: var(--irdp-green);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
}

.section-divider {
  width: 250px;
  margin: 13px auto 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-divider span {
  height: 1px;
  width: 86px;
  background: #a7c7ad;
}

.section-divider svg {
  width: 25px;
  height: 25px;
  fill: var(--irdp-green);
  stroke: var(--irdp-green);
  stroke-width: 2;
}

/* ================= CARDS ================= */

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.option-card {
  min-height: 278px;
  padding: 23px 25px 19px;
  text-decoration: none;
  text-align: center;
  color: inherit;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #e1e6e2;
  border-radius: 16px;
  box-shadow: 0 5px 17px rgba(0, 0, 0, .07);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.option-card:hover,
.option-card.active {
  border-color: var(--irdp-green);
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(0, 70, 28, .12);
}

.option-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf5ea;
  margin-bottom: 9px;
}

.option-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--irdp-green);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-card:first-child .option-icon svg {
  fill: var(--irdp-green);
  stroke: var(--irdp-green);
}

.card-gold-line {
  width: 26px;
  height: 3px;
  background: var(--irdp-gold);
  margin: 0 0 11px;
}

.option-card h3 {
  margin: 0 0 11px;
  color: var(--irdp-green);
  font-size: 19px;
  font-weight: 800;
}

.option-card p {
  min-height: 52px;
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--irdp-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .75px;
}

.card-link b {
  font-size: 22px;
  line-height: 0;
  vertical-align: -2px;
  margin-left: 6px;
}

/* ================= NOTICE ================= */

.notice {
  width: min(100%, 1200px);
  min-height: 60px;
  margin: 21px auto 0;
  padding: 0 25px;
  border: 1px solid #d4e2d6;
  border-left: 4px solid #198b38;
  border-radius: 15px;
  background: #f4f8f3;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #666;
  font-size: 14px;
}

.notice-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20883b;
  color: white;
  font-size: 18px;
  font-weight: 800;
  font-family: Georgia, serif;
}

.notice strong {
  color: var(--irdp-green);
  font-size: 15px;
}

.notice-divider {
  width: 1px;
  height: 28px;
  background: #cbd9ce;
}

/* ================= FOOTER ================= */

footer {
  position: relative;
  min-height: 98px;
  border-top: 3px solid var(--irdp-gold);
  background: #073d1c;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 150px 17px;
}

.footer-text {
  position: relative;
  z-index: 2;
  font-size: 14px;
  line-height: 1.9;
}

.footer-text a {
  color: var(--irdp-gold);
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-mark {
  position: absolute;
  right: 90px;
  bottom: 1px;
  opacity: .16;
  width: 105px;
}

.footer-mark svg {
  width: 100%;
  height: auto;
  fill: #a7d4ae;
  stroke: #a7d4ae;
  stroke-width: 1.5;
}

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

@media (max-width: 1050px) {
  .hero-inner {
    width: min(100% - 55px, 1000px);
    gap: 35px;
  }

  .hero-logo {
    flex-basis: 205px;
    width: 205px;
  }

  .hero-logo img {
    width: 185px;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 66px;
  }

  .topbar-inner {
    width: calc(100% - 30px);
    padding: 12px 0;
    gap: 10px;
  }

  .institution-name {
    font-size: 11px;
    letter-spacing: .6px;
  }

  .system-title {
    font-size: 10px;
    gap: 7px;
    white-space: nowrap;
  }

  .calendar-icon {
    width: 21px;
    height: 21px;
  }

  .hero {
    height: auto;
    min-height: 500px;
  }

  .hero-inner {
    width: calc(100% - 35px);
    padding: 38px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }

  .hero-logo {
    width: 150px;
    flex-basis: auto;
  }

  .hero-logo img {
    width: 145px;
    max-height: 155px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero p {
    font-size: 15px;
  }

  .gold-line {
    margin: 17px auto;
  }

  .semester-status {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }

  .current-semester {
    padding: 0 12px;
    font-size: 12px;
  }

  .published {
    padding: 0 14px;
    font-size: 12px;
  }

  .main-content {
    padding: 26px 15px;
  }

  .view-section h2 {
    font-size: 23px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .notice {
    align-items: flex-start;
    padding: 15px;
    flex-wrap: wrap;
  }

  .notice-divider {
    display: none;
  }

  footer {
    padding: 22px 25px;
  }

  .footer-mark {
    right: 8px;
    opacity: .1;
  }
}
