/* ==========================================================================
   PPAr - Institut Teknologi Minaesa (ITM) Design System & Stylesheet
   Color Palette derived from logo.png:
   - Navy Blue: #010066 (Primary Brand Color)
   - Terracotta Maroon: #902f0f (Secondary Brand Color)
   - Golden Yellow: #d97706 (Accent Highlight Color)
   - Soft Ice Blue: #eaf2fc / #dce8fa (Light Backgrounds)
   - Emerald Green: #10b981 (Contact/Action Accent)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #010066;
  --color-primary-dark: #00004d;
  --color-primary-light: #0d2b5c;
  --color-secondary: #902f0f;
  --color-accent-yellow: #d97706;
  --color-accent-yellow-light: #fef3c7;
  --color-bg-light: #f4f7fb;
  --color-ice-blue: #eaf2fc;
  --color-green: #10b981;
  --color-green-hover: #059669;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-white: #ffffff;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(1, 0, 102, 0.08);
  --shadow-lg: 0 10px 25px rgba(1, 0, 102, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: relative;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  position: relative;
}

/* Hanging Shield Badge for Logo */
.badge-wrapper {
  position: relative;
  z-index: 110;
  align-self: flex-start;
}

.logo-badge {
  background: var(--color-white);
  border-radius: 0 0 20px 20px;
  padding: 1.15rem 1.5rem 1.35rem;
  box-shadow: 0 8px 20px rgba(1, 0, 102, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid var(--color-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.logo-badge:hover {
  transform: translateY(2px);
  box-shadow: 0 10px 25px rgba(1, 0, 102, 0.2);
}

.logo-badge img {
  width: 90px;
  height: auto;
  max-height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-badge .badge-title {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  text-align: center;
}

.logo-badge .badge-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: center;
}

/* Campus Name Header Title */
.header-brand {
  margin-left: 1.5rem;
}

.header-brand h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Right Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.highlight {
  font-weight: 800;
  color: var(--color-primary);
}

.dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(225deg) translateY(-2px);
}

/* Navigation Dropdown Menu */
.nav-item .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 220px;
  display: none;
  list-style: none;
  z-index: 120;
  border-top: 3px solid var(--color-primary);
}

.nav-item:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background-color: var(--color-ice-blue);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Image Container for Organizational Structure */
.org-chart-container {
  margin: 2rem 0;
  text-align: center;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.org-chart-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.org-chart-img:hover {
  transform: scale(1.015);
}

.org-chart-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch:hover {
  transform: scale(1.1);
}

.lang-switch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  background-image: url('hero_bg.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dark Navy Overlay matching logo.png primary tone */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    110deg,
    rgba(1, 0, 102, 0.88) 0%,
    rgba(13, 43, 92, 0.82) 50%,
    rgba(144, 47, 15, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 2rem;
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Right Floating Action Toolbar */
.floating-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  cursor: pointer;
}

.action-btn:hover {
  transform: translateX(-6px);
  box-shadow: -4px 6px 15px rgba(0, 0, 0, 0.25);
}

.action-btn.orange {
  background-color: var(--color-accent-yellow);
}

.action-btn.green {
  background-color: #25d366;
}

.action-btn.navy {
  background-color: var(--color-primary-light);
}

.action-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   Sub-Navigation Pill Container (Floating Tab Bar)
   ========================================================================== */

.subnav-container {
  position: relative;
  z-index: 20;
  max-width: 920px;
  margin: -35px auto 0;
  padding: 0 1.5rem;
}

.subnav-pill {
  background-color: #f1f3f7;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.subnav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-light);
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.subnav-link:hover {
  color: var(--color-secondary);
}

.subnav-link.active {
  color: var(--color-accent-yellow);
  font-weight: 700;
}

/* ==========================================================================
   Main Call To Action (CTA) Cards Section
   ========================================================================== */

.cta-section {
  max-width: 1100px;
  margin: 4rem auto 3rem;
  padding: 0 1.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cta-card {
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-card.primary {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

.cta-card.primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(1, 0, 102, 0.25);
}

.cta-card.secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid #e2e8f0;
}

.cta-card.secondary:hover {
  background-color: #fafbfc;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.cta-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ==========================================================================
   Bottom Floating Contact Button
   ========================================================================== */

.floating-contact-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-pill-text {
  background-color: #404040;
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  animation: pulsePill 3s infinite alternate;
}

@keyframes pulsePill {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.contact-circle-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.contact-circle-btn:hover {
  background-color: var(--color-green-hover);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.contact-circle-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ==========================================================================
   Generic Subpage Container & Content Styles
   ========================================================================== */

.subpage-banner {
  background: linear-gradient(110deg, var(--color-primary) 0%, var(--color-primary-light) 60%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
}

.subpage-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.subpage-banner .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
}

.subpage-banner .breadcrumb a {
  color: var(--color-white);
  text-decoration: underline;
}

.content-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.content-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border-top: 4px solid var(--color-primary);
}

.content-card h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-card p {
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.content-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.btn-back {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-back:hover {
  background-color: var(--color-secondary);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  background-color: var(--color-accent-yellow);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: var(--transition);
  margin: 1rem 0 1.5rem;
}

.btn-cta-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(144, 47, 15, 0.4);
  color: var(--color-white);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .header-brand h2 {
    font-size: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .hero-section {
    height: 380px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .subnav-pill {
    overflow-x: auto;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-pill-text {
    display: none;
  }
}
