/*
 * RISE Modern Theme - Main Component Stylesheet
 */

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement-bar {
  background: var(--rise-navy-dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-right a {
  color: #cbd5e1;
}

.top-bar-right a:hover {
  color: #ffffff;
}

/* ==========================================================================
   2. MAIN SITE HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rise-logo {
  height: 46px;
  width: auto;
}

/* NAVIGATION MENU */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-menu-list > .menu-item {
  position: relative;
}

.nav-menu-list > .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rise-navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu-list > .menu-item:hover > a {
  color: var(--rise-blue);
  background-color: var(--bg-secondary);
}

.arrow-down {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.menu-item:hover .arrow-down {
  transform: rotate(180deg);
}

/* DROPDOWN SUB-MENU */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.sub-menu li a:hover {
  background: var(--bg-secondary);
  color: var(--rise-blue);
  padding-left: 18px;
}

/* MOBILE NAVIGATION */
.header-action-group {
  display: flex;
  align-items: center;
  gap: 16px;
}



/* ==========================================================================
   4. PILAR UTAMA R-I-S-E (4 CARDS)
   ========================================================================== */
.pilar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pilar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-top: 5px solid #ccc;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pilar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-research { border-top-color: var(--pilar-research); }
.card-innovation { border-top-color: var(--pilar-innovation); }
.card-sustainability { border-top-color: var(--pilar-sustainability); }
.card-entrepreneur { border-top-color: var(--pilar-entrepreneur); }

.pilar-icon {
  align-self: flex-start;
  width: auto;
  height: 48px;
  margin-bottom: 16px;
}

.pilar-heading {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--rise-navy);
}

.pilar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   5. HIBAH & CALL FOR PROPOSALS
   ========================================================================== */
.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.hibah-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hibah-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hibah-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.hibah-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hibah-date {
  font-size: 12px;
  color: var(--text-subtle);
}

.hibah-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hibah-card-title a {
  color: var(--rise-navy);
}

.hibah-card-title a:hover {
  color: var(--rise-blue);
}

.hibah-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rise-blue);
}

.card-arrow-link:hover {
  gap: 12px;
}

/* ==========================================================================
   6. NEWS & EVENTS GRID
   ========================================================================== */
.news-grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rise-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #002147 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.news-card-badge-pos {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card-title a {
  color: var(--rise-navy);
}

.news-card-title a:hover {
  color: var(--rise-blue);
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

/* ==========================================================================
   8. TEAM & FELLOWS SHOWCASE
   ========================================================================== */
.team-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-showcase-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.team-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rise-blue);
}

.team-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.team-meta {
  padding: 18px;
}

.team-role {
  display: inline-block;
  background: rgba(2, 132, 199, 0.08);
  color: var(--rise-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--rise-navy);
}

.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   9. FOOTER STYLING
   ========================================================================== */
.site-footer {
  background: #00152e;
  color: #cbd5e1;
  position: relative;
}

.footer-cta-banner {
  background: linear-gradient(90deg, #0284c7 0%, #002147 100%);
  padding: 45px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-banner-text h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-banner-text p {
  color: #e0f2fe;
  font-size: 16px;
  margin: 0;
}

.cta-banner-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-main-container {
  padding-block: 75px 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 24px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.footer-social-links a:hover {
  background: var(--rise-blue);
  transform: translateY(-3px);
}

.footer-heading {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-contact-item .contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--rise-cyan);
}

.footer-contact-item a {
  color: #38bdf8;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 13.5px;
  color: #64748b;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* SCROLL TO TOP */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rise-navy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 99;
  transition: var(--transition);
}

.scroll-top-btn:hover {
  background: var(--rise-blue);
  transform: translateY(-4px);
}

/* MITRA CARD HOVER ANIMATIONS */
.mitra-logo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px -4px rgba(0, 33, 71, 0.12) !important;
  border-color: var(--rise-blue) !important;
}
.mitra-logo-card:hover img {
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

.rise-article-banner {
  padding-block: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 40px);
  background: linear-gradient(135deg, #00152e, #002147 60%, #0369a1);
  color: #e2e8f0;
}

.rise-article-breadcrumb,
.rise-article-labels,
.rise-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.rise-article-breadcrumb {
  gap: 4px 8px;
  margin-bottom: 18px;
  font-size: 0.875rem;
}

.rise-article-breadcrumb a { color: #7dd3fc; }
.rise-article-breadcrumb a:hover { text-decoration: underline; }
.rise-article-labels { gap: 8px; }

.rise-article-chip {
  display: inline-block;
  padding: 3px 13px;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 16%);
  color: #f0f9ff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
}

.rise-article-labels .rise-article-chip {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rise-article-banner h1 {
  max-width: 900px;
  margin: 14px 0 22px;
  color: #fff;
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rise-article-meta {
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 0.9375rem;
}

.rise-article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rise-article-meta .rise-article-chip:hover { background: rgb(255 255 255 / 27%); color: #fff; }
.rise-article-meta svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.single-article-container { min-width: 0; }

.rise-article-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #334155;
  overflow-wrap: anywhere;
}

.rise-article-body > :where(p, ul, ol, figure, blockquote, h2, h3, h4) { margin-bottom: 1em; }
.rise-article-body :where(ul, ol) { padding-inline-start: 1.5em; }
.doc-paper .rise-article-body { font-size: 0.9375rem; }

.rise-article-featured,
.rise-article-body img {
  max-width: min(100%, 760px);
  max-height: min(65vh, 520px);
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.rise-article-featured {
  margin-bottom: 28px;
  border-radius: var(--radius-md);
}

.rise-article-body .wp-block-gallery img { max-height: 320px; }
.news-card-excerpt + .card-arrow-link { margin-top: 12px; align-self: flex-start; }

