/* ============================================================
   GMU — PT Global Mandiri USK
   Brand: Navy #022f52 + Teal #2bb8c6 + Light Blue Accent
   Design: Glassmorphism, Mobile-first, Apple-inspired
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --navy: #022f52;
  --navy-dark: #011c33;
  --navy-light: #03457a;
  --teal: #2bb8c6;
  --teal-dark: #1e99a8;
  --teal-light: #5dd4df;
  --accent: #6db3d4;
  --accent-light: #a8d5ed;
  --white: #ffffff;
  --white-soft: #f0f4f8;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dark: #022f52;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--navy-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(2, 47, 82, 0.9) 0%, var(--navy-dark) 100%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(43, 184, 198, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 30% 30% at 20% 50%, rgba(109, 179, 212, 0.06) 0%, transparent 100%);
  z-index: -1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-light);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* --- Glass Card --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.glass-card {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .glass-card { padding: 2rem; }
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(1, 28, 51, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .header-inner { padding: 0 2rem; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  z-index: 1001;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-size: 1.05rem;
  line-height: 1.1;
}

.logo-text .sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

.desktop-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--white);
  background: var(--glass-bg);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: all var(--transition);
}

.mobile-toggle:hover {
  background: var(--glass-bg-hover);
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(1, 28, 51, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all var(--transition);
  text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--white);
  background: var(--glass-bg);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(43, 184, 198, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(43, 184, 198, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(43, 184, 198, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border-hover);
  color: var(--white);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--white);
}

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--white);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: rgba(1, 28, 51, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(43, 184, 198, 0.2), rgba(109, 179, 212, 0.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 0.6rem;
}

/* --- Partners --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(6, 1fr); }
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  min-height: 100px;
}

.partner-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 2rem;
  background: rgba(1, 28, 51, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--teal);
}

/* --- Page Header (non-home) --- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Content Sections --- */
.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  margin-bottom: 1rem;
  color: var(--teal);
}

.content-block h3 {
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.content-block ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.content-block ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* --- Vision / Mission --- */
.vision-block {
  padding: 2rem;
  border-left: 3px solid var(--teal);
  margin-bottom: 2rem;
}

.vision-block p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* --- Unit Business Category --- */
.unit-category {
  margin-bottom: 3rem;
}

.unit-category h3 {
  color: var(--teal);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.unit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .unit-list { grid-template-columns: repeat(2, 1fr); }
}

.unit-item {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.unit-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.unit-item-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.unit-item-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- News Feed --- */
.news-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.news-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  background: rgba(43, 184, 198, 0.15);
  color: var(--teal);
  border-radius: 50px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-info-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* --- Map Embed --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* --- Article Placeholder (WP API) --- */
.articles-placeholder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .articles-placeholder { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .articles-placeholder { grid-template-columns: repeat(3, 1fr); }
}

.article-card-skeleton {
  padding: 1.5rem;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

.skeleton-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.short { width: 60%; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================================
   WP additions — pagination & single content
   ============================================================ */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
}

.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.single-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.single-content h2,
.single-content h3 {
  color: var(--teal);
  margin: 1.5rem 0 0.75rem;
}

.single-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.single-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.single-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
