:root {
    --hero-bg: linear-gradient(120deg, rgba(13,110,253,1) 0%, rgba(8,66,150,1) 100%);
}

html, body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.topbar-link {
    color: rgba(0,0,0,0.72);
    text-decoration: none;
}
.topbar-link:hover {
    text-decoration: underline;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    display: inline-block;
}

.brand-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

@media (min-width: 992px){
  .brand-logo{
    width: 38px;
    height: 38px;
  }
}

.brand-title{
  font-weight: 800;
  letter-spacing: .2px;
}

.hero-carousel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.hero-slide {
  min-height: 320px; /* keeps consistent card height */
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px) {
  .hero-slide { min-height: 360px; }
}

.hero-indicators {
  margin-bottom: 10px;
}

.hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.icon-pill {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(13,110,253,0.10);
    font-size: 20px;
}

.card-soft {
    border-radius: 16px;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.news-card:hover {
    transform: translateY(-2px);
}

.news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* title max lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* summary max lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex: 0 0 auto;
}
.news-thumb-lg {
    height: 100%;
    min-height: 160px;
}
.news-thumb-empty {
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.08));
}

.news-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Title: max 2 lines + reserve space */
.news-card .news-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  line-height: 1.25;
  min-height: calc(1.25em * 2); /* reserve 2 lines */
}

/* Summary: max 3 lines + reserve space */
.news-card .news-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;

  line-height: 1.35;
  min-height: calc(1.35em * 3); /* reserve 3 lines */
}

.gov-masthead {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.gov-seal {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.gov-title {
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.15;
}

.gov-subtitle {
    color: rgba(0,0,0,0.65);
    font-size: 0.9rem;
}

.gov-contact a {
    color: rgba(0,0,0,0.75);
    text-decoration: none;
}
.gov-contact a:hover {
    text-decoration: underline;
}

.gov-card {
    border-radius: 10px;
}

.gov-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(13,110,253,0.08);
    margin-bottom: 10px;
    font-size: 20px;
}

.gov-bullet {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(13,110,253,0.10);
    flex: 0 0 auto;
}

.article-hero {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.article-body p {
    line-height: 1.75;
}
.article-body h2, .article-body h3, .article-body h4 {
    margin-top: 1.25rem;
}

.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* HOME PAGE */

.home-hero .badge { font-weight: 600; }

.hero-photo-card{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.hero-photo{
  height: 360px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,.04);
}

@media (max-width: 991px){
  .hero-photo{ height: 260px; }
}

.home-service-card{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.service-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13,110,253,.10);
  color: rgba(13,110,253,1);
  font-size: 20px;
  margin-bottom: 12px;
}

.service-bullets{
  padding-left: 18px;
  margin-bottom: 0;
}

.home-steps{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.step-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
}

.step-num{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(13,110,253,.12);
  color: rgba(13,110,253,1);
  flex: 0 0 auto;
}

/* FOR PROGRAMS, OPPS, AND INTERSHIPS */

.page-hero{
  padding: 18px 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.01);
}

.section-title{
  padding-left: 4px;
  border-left: 4px solid rgba(13,110,253,.55);
}

.service-card{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.service-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13,110,253,.10);
  color: rgba(13,110,253,1);
  font-size: 20px;
  margin-bottom: 12px;
}

.service-bullets{
  padding-left: 18px;
  margin-bottom: 0;
}

.info-strip{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.cta-panel{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.accordion{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.accordion-button{
  font-weight: 700;
}
.accordion-body{
  line-height: 1.7;
}

/* NEWS */
.news-filter-bar{
  position: sticky;
  top: 86px; /* adjust if your header height differs */
  z-index: 1020;
}
.news-filter-card{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08) !important;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
}

/* Contact layout */
.contact-card{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}
.contact-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.contact-item:last-child{ border-bottom: 0; padding-bottom: 0; }
.contact-ico{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(13,110,253,.10);
  color: rgba(13,110,253,1);
  font-size:18px;
  flex: 0 0 auto;
}